JSPM

@zaflun/ngx-scripts

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q73468F
  • License MIT

Support scripts for angular projects

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

NPM version Build Status Node version License

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: During env, 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 to yarn.

License

MIT