ngstarter-systemjs-tasks

1.0.0-rc.1 • Public • Published

ngstarter-systemjs-tasks

SystemJS build extension for Angular 2 Starter

npm version

Getting started

  1. Make sure you have systemjs.conf.js in the starter root

  2. Install the extension

    npm install ngstarter-systemjs-tasks
  3. Open gulp.config.js in the starter and add the following builder config

    var systemJs = {
        builder: {
            normalize: true,
            minify: true,
            mangle: true,
            runtime: false,
            globalDefs: { DEBUG: false, ENV: 'production' }
        }
    };
  4. Go to tasks/build.js in your starter, require the extension

    require('ngstarter-systemjs-tasks');

    and then set the second param to build-systemjs

    gulp.task('build', function (done) {
        runSequence('test', 'build-systemjs', 'build-assets', done);
    });
  5. Done! Try to build it!

License

MIT

Package Sidebar

Install

npm i ngstarter-systemjs-tasks

Weekly Downloads

2

Version

1.0.0-rc.1

License

MIT

Last publish

Collaborators

  • antonybudianto