question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the `-s` flag?

See original GitHub issue

For example in "prebuild": "npm run clean -s".

},
  "scripts": {
    "clean": "rimraf dist/*",
    "prebuild": "npm run clean -s",
    "build": "npm run build:scripts -s && npm run build:styles -s && npm run build:markup -s",
    "build:scripts": "browserify -d assets/scripts/main.js -p [minifyify --compressPath . --map main.js.map --output dist/main.js.map] | hashmark -n dist/main.js -s -l 8 -m assets.json 'dist/{name}{hash}{ext}'",
    "build:styles": "stylus assets/styles/main.styl -m -o dist/ && hashmark -s -l 8 -m assets.json dist/main.css 'dist/{name}{hash}{ext}'",
    "build:markup": "jade assets/markup/index.jade --obj assets.json -o dist",
    "test": "karma start --singleRun",
    "watch": "parallelshell \"npm run watch:test -s\" \"npm run watch:build -s\"",
    "watch:test": "karma start",
    "watch:build": "nodemon -q -w assets/ --ext '.' --exec 'npm run build'",
    "open:prod": "opener http://example.com",
    "open:stage": "opener http://staging.example.internal",
    "open:dev": "opener http://localhost:9090",
    "deploy:prod": "s3-cli sync ./dist/ s3://example-com/prod-site/",
    "deploy:stage": "s3-cli sync ./dist/ s3://example-com/stage-site/",
    "serve": "http-server -p 9090 dist/",
    "live-reload": "live-reload --port 9091 dist/",
    "dev": "npm run open:dev -s & parallelshell \"npm run live-reload -s\" \"npm run serve -s\" \"npm run watch -s\""
  },

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Apr 23, 2015

Thanks. I understand.

BTW where is this documented, because, like what if @keithamus goes on vacation? 😃

1reaction
keithamuscommented, Apr 23, 2015

Oh, I meant in this example repo. npm has it fairly well documented on their website: https://docs.npmjs.com/misc/config#shorthands-and-other-cli-niceties

Read more comments on GitHub >

github_iconTop Results From Across the Web

Signal Flag Letter S (Sierra) - Maryland Nautical
Signal Flag Letter S (Sierra) ; Phonetic Pronunciation: see-AIR-ah ; Navy Meaning: Conducting flag hoist drill. ; International Meaning: Moving astern.
Read more >
"S" (Sierra) Code of Signals Flag - Flagdom
This flag can be used to denote the letter "S" or to communicate the following messages: Moving astern; Conducting flag hoist drill; Shorten...
Read more >
Flag of South Africa - Wikipedia
The flag of South Africa was designed in March 1994 and adopted on 27 April 1994, at the beginning of South Africa's 1994...
Read more >
S-Flag (Object) - Giant Bomb
S-Flag · The "Special" flag in Rally-X doubles the point value of subsequent flags collected. It appears in other Namco games as a...
Read more >
Flags of countries starting with S - Flagpedia.net
Saint Kitts and Nevis Saint Lucia Saint Martin Samoa San Marino São Tomé and Príncipe Saudi Arabia Scotland Senegal Serbia Seychelles Sierra Leone...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found