@dcs/ngx-build-tools

Tools and helpers to support dev and production build of angular apps


Keywords
angular, rollup, typescript
License
ISC
Install
npm install @dcs/ngx-build-tools@1.2.5

Documentation

npm Build Status Commitizen friendly

@dcs/ngx-build-tools

Some command line tools to aid in developing angular library npm packages.

Install

npm install --save-dev @dcs/ngx-build-tools

Then use the commands in your build process (like package.json scripts).

CLI

ngx-build-watch

This command watches for changes in the specified target directory (all files not just .ts), inlines templates and styles into angular components and does an (incremental) rollup build:

ngx-build-watch --config rollup.config.js --target ./src

ngx-build-package-json

This command takes the development package.json (with devDependencies, scripts ...) and builds a production one for the build directory.

ngx-build-package-json --source package.json --destination build/paclage.json

ngx-inline-styles

This command inlines all templates and styles of angular components in a specified directory, compiling sass and adding postcss transformations.

ngx-inline-styles --cssGlob 'src/**/*.component.scss' --componentsGlob 'src/**/*.component.ts' --postcssConfig my-postcss.config.js