add a specific rule to add global configuration (schematics)
add rules in a chain
new make-static parameter:
parameter
description
--config-path
The path to the typescript configuration of the application (e.g: path/to/file/config.ts
--config-identifier
The const identifier
How to test
extract the configuration file (config.json) using the ui-builder interface.
copy the config.json filte to projects/demo/
create a config.ts file to projects/demo/src
build the lib:
npm run build:lib
execute the schematics:
ng g ./dist/lib:make-static --config=projects/demo/config.json --config-path=projects/demo/src/config.ts --config-identifier=CUSTOM_CONFIG --project=demo
make-static
parameter:How to test
config.json
filte to projects/demo/config.ts
file to projects/demo/srcnpm run build:lib
ng g ./dist/lib:make-static --config=projects/demo/config.json --config-path=projects/demo/src/config.ts --config-identifier=CUSTOM_CONFIG --project=demo