koltyakov / sp-build-tasks Goto Github PK
View Code? Open in Web Editor NEW๐ท SharePoint front-end projects automation and tasks tool-belt
License: MIT License
๐ท SharePoint front-end projects automation and tasks tool-belt
License: MIT License
Hello @koltyakov thanks for this awesome lib.
I am using this tools in my gitlab ci pipelines and have unexpected behavior. When my webpack bundle have errors i want to stop my pipelines. Most runners check stderr stream for a stop pipelines and mark them failed. So i want to change output stream webpack build task from stdout to stderr only for errors
I cam make pr if you wish
Add something like:
const path = require('path');
const webpack = require('webpack');
const config = require('./config/app.json');
module.exports = [
{ entry: './src/scripts/index.ts', target: 'app.js' },
{ entry: './src/scripts/webCustomAction.ts', target: 'tickets.web.js' },
{ entry: './src/scripts/csr/requests.ts', target: 'csr/requests.js' },
{ entry: './src/scripts/csr/disablequickedit.ts', target: 'csr/disablequickedit.js' }
].map(file => {
return {
cache: true,
entry: {
index: file.entry
},
output: {
path: path.join(__dirname, config.distFolder, '/scripts'),
filename: file.target
},
devtool: 'source-map',
module: {
rules: [{
test: /\.ts(x?)$/,
exclude: /(node_modules|bower_components)/,
use: [ 'awesome-typescript-loader' ]
}]
},
plugins: [],
resolve: {
extensions: ['.ts', '.tsx', '.js']
}
};
});
with possibility to store entry/target array in app.json.
Add capabilities working with ES5/ES6 within src
folder with the toolchain right out the box.
Currently the referenced version contains an unnecessary post-installation postinstall.js script.
Hi,
Thanks for this awesome library. I'm just wondering how do you specify to push only certain type of files from your "dist" folder.
Would be incredibly helpful if any scss file in /src/styles would be automatically compiled and uploaded on watch.
Hi there.
I'm trying to build my own webpart using your great library.
But after running "npm run build" the app.css file in .dist/ directory is empty.
I also tried to build default Example project, both with css and scss. But the app.css in ./dist still empty. Even in example.
Is there any ways to solve this problem?
To write own export module for webpack?
fileName
is not passed to handlebars templates
Hello!
I faced with error when using this command:
Gulp build --prod --webpack
Error: Cannot find module 'copy-webpack-plugin'
Require stack:
TypeError: Cannot read property 'get' of undefined
at C:_git\IPMS\Src\Front\node_modules\webpack\lib\DefinePlugin.js:292:38
at SyncHook.eval [as call] (eval at create (C:_git\IPMS\Src\Front\node_modules\tapable\lib\HookCodeFactory.js:19:10), :11:1)
at SyncHook.lazyCompileHook (C:_git\IPMS\Src\Front\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.newCompilation (C:_git\IPMS\Src\Front\node_modules\sp-build-tasks\node_modules\webpack\lib\Compiler.js:631:26)
at C:_git\IPMS\Src\Front\node_modules\sp-build-tasks\node_modules\webpack\lib\Compiler.js:667:29
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:_git\IPMS\Src\Front\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (C:_git\IPMS\Src\Front\node_modules\tapable\lib\Hook.js:154:20)
at Compiler.compile (C:_git\IPMS\Src\Front\node_modules\sp-build-tasks\node_modules\webpack\lib\Compiler.js:662:28) at C:_git\IPMS\Src\Front\node_modules\sp-build-tasks\node_modules\webpack\lib\Compiler.js:321:11
at Compiler.readRecords (C:_git\IPMS\Src\Front\node_modules\sp-build-tasks\node_modules\webpack\lib\Compiler.js:529:11)
What it can be?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.