Package Exports
- @zaflun/ngx-scripts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@zaflun/ngx-scripts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🚀 zaflun/ngx-scripts
Installation
npm install --save @zaflun/ngx-scripts
yarn add @zaflun/ngx-scripts
Usage
This modules provides CLI commands to be used in NPM scripts.
Export environment variables to a JSON or JavaScript file
ngx-scripts env <env_var> [<env_var2> ...] [--out <file>] [--format json|js] [--parse-json]
Default output file is src/environments/.env.ts
with JavaScript format.
Options
--parse-json
: Duringenv
, if an environment variable's value is parsable JSON, it will be a proper object in.env.ts
Note: Yarn is automatically used instead of NPM is the environment variable
NGX_PACKAGE_MANAGER
is set toyarn
.