@dcs/ngx-build-tools
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

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

Package Sidebar

Install

npm i @dcs/ngx-build-tools

Weekly Downloads

1

Version

1.5.0

License

ISC

Last publish

Collaborators

  • dcs