Code Monkey home page Code Monkey logo

sp-build-tasks's People

Contributors

fossabot avatar koltyakov avatar snyk-bot avatar zilo676 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sp-build-tasks's Issues

Change stream for errors

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 multiple entry point for webpack configuration

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.

Specific file type

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.

SCSS conversion for all files

Would be incredibly helpful if any scss file in /src/styles would be automatically compiled and uploaded on watch.

Include all script/components style files (scss/css) in build bundle.

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?

Gulp build --prod --webpack error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.