angular-write-constants
Utility for creating a JS config for angular using constants, using a list of input files.
Install via npm install angular-write-constants
.
CLI usage
angular-write-constants --module moduleName primary.json secondary.json ... > config.js
Example contents:
primary.json
:
"answerToEverything": 42 "overriddenValue": "someOldValue"
secondary.json
:
"overriddenValue": "someNewValue" "apiEndpoint": "https://google.com/"
Resulting config.js
:
angular ;
License
MIT