Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gregg@BLAZE C:\Users\gregg\temp\delme-node-test>copy con package.json
- {
- "name": "and-and-test",
- "version": "0.0.1",
- "description": "and-and tet",
- "scripts": {
- "thing1": "node echo.js thing1",
- "thing2": "node echo.js thing2",
- "thing3": "node echo.js thing3",
- "all-the-things": "npm run thing1 && npm run thing2 && npm run thing3"
- },
- "dependencies": {
- },
- "engines": {
- "node": "10.x"
- },
- "repository": {
- "url": "https://glitch.com/edit/#!/hello-express"
- }
- }
- ^Z
- 1 file(s) copied.
- gregg@BLAZE C:\Users\gregg\temp\delme-node-test>copy con echo.js
- console.log(process.argv.slice(2));
- ^Z
- 1 file(s) copied.
- gregg@BLAZE C:\Users\gregg\temp\delme-node-test>npm run all-the-things
- > [email protected] all-the-things C:\Users\gregg\temp\delme-node-test
- > npm run thing1 && npm run thing2 && npm run thing3
- > [email protected] thing1 C:\Users\gregg\temp\delme-node-test
- > node echo.js thing1
- [ 'thing1' ]
- > [email protected] thing2 C:\Users\gregg\temp\delme-node-test
- > node echo.js thing2
- [ 'thing2' ]
- > [email protected] thing3 C:\Users\gregg\temp\delme-node-test
- > node echo.js thing3
- [ 'thing3' ]
- gregg@BLAZE C:\Users\gregg\temp\delme-node-test>
Advertisement
Add Comment
Please, Sign In to add comment