Sharing Top Content from the Angular-sphere.

@turbonemesis/cli – CLI for bundling Angular with Rollup and Closure … #npm #javascript #nodejs

  • To build the app for development, enable livereload, and start up the server: – – will build the application for development using AOT in –watch mode.
  • You can choose to run an Express server in parallel with build tasks, with or without Livereload enabled – – Production builds do not require the CLI to be served with the default Express server, just the package.json.
  • The production build relies heavily on Closure Compiler, which provides excellent optimizations but unfortunately is not compatible with most third party libraries.
  • It is optimal to only include the library files you need for production, not entire folders.
  • It is a best practice to tree shake and bundle third party libraries for production, however this process only works if the third party library is packaged with a module pattern such as ES2015 modules.

CLI for bundling Angular with Rollup and Closure Compiler.

CLI for bundling Angular with Rollup and Closure Compiler.

Change the host and/or port in if needed. This config is used for the Express Server. is used for production.

Express is used mainly to provide a development server, but it could also be configured for production to run over .

is run as a parallel process when using the flag. You can also bring your own server if your prefer.

configures the routes of the Express server.

There is a lot of config in this project to allow finetuning each build to developer specifications. lets you configure filepaths, SASS options, and includes callbacks for steps in each build.

To scaffold a new app run . This will copy required files into the same directory.

To scaffold at a specific version of use i.e.

To update a project to a specific version of use i.e.

Sometimes major cli releases have minimal breaking changes. Use for instructions for migrating to a specific version.

To build the app for development, enable livereload, and start up the server:

will build the application for development using AOT in –watch mode.

Use the argument instead of…

@turbonemesis/cli