node.js - pass npm config into npm scripts entry -
i'm running entire project npm scripts, , i've namespaced few methods underneath test clarity. i'd use silent
level of verbosity test related commands instead of normal, extremely verbose npm err! exit status 1...
package.json
{ "name": "test", "version": "0.0.0", "scripts": { "test": "npm run test:unit && npm run test:integration", "test:unit": "mocha test/unit", "test:integration": "mocha test/integration" } }
i've tried including --loglevel=silent
in npm scripts commands, not work. not want enable commands, testing related ones, setting flag on environment or in .npmrc
not option (unless there additional criteria can define in .nmprc
).
the flag -s
can :
package.json
{ "name": "test", "version": "0.0.0", "scripts": { "test": "npm run test:unit -s && npm run test:integration -s", "test:unit": "mocha test/unit", "test:integration": "mocha test/integration" } }
it silences output npm on tasks.
Comments
Post a Comment