Skip to content

Instantly share code, notes, and snippets.

@kusold
Created July 27, 2015 16:12
Show Gist options
  • Save kusold/b7af774035f41b3a9d7b to your computer and use it in GitHub Desktop.
Save kusold/b7af774035f41b3a9d7b to your computer and use it in GitHub Desktop.
Npm scripts section
"scripts": {
"build": "npm run build-js",
"build-go": "go build",
"build-js": "npm run webpack",
"serve": "npm run serve-go",
"serve-go": "./my-binary",
"watch": "npm run watch-js",
"watch-go": "watch 'go test ./... && npm run build-go && npm run serve-go' `npm run utils-list-dirs-go -s` --wait 3 --ignoreDotFiles",
"watch-js": "watch 'npm run build-js' client/ --wait 3 --ignoreDotFiles",
"webpack": "webpack --config .webpack.config.js --progress --colors",
"utils-list-dirs-go": "ls -d */ | grep -v node_modules | grep -v client | grep -v build"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment