In our package.json we defined some script commands to automate certain actions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "sampleapp", | |
"version": "0.0.0", | |
"license": "MIT", | |
"angular-cli": {}, | |
"scripts": { | |
"ng": "ng", | |
"start": "ng serve", | |
"test": "ng test", | |
"lint": "ng lint", | |
"ngbuild": "ng build", | |
"e2e": "rm -rf ./reports/screenshotReporter/ && ng e2e --port=7400" | |
} | |
} |
However sometimes we want to add extra parameters to the script when executing it. This is possible by adding an extra pair of dashes and the extra parameter when executing the command:
ngbuild -- --environment=local