Is it possible to send command line arguments to npm scripts? This is what I need:
"test": "npm run test:build && npm run -s test:run",
"test:build": "rollup -c myArgument",
"test:run": "karma start"
and myArgument
defines the --environment
, ex. (rollup -c --environment TEST
).
I am using npm version 3.10.10.
EDIT:
I want to know how it is possible when you run the "npm run test
" NOT the "npm run test:build
"
the "npm test
" runs the "test:build" and "test:run"