Skip to content

Instantly share code, notes, and snippets.

@kusold
Created July 27, 2015 16:12
Show Gist options
  • Select an option

  • Save kusold/b7af774035f41b3a9d7b to your computer and use it in GitHub Desktop.

Select an option

Save kusold/b7af774035f41b3a9d7b to your computer and use it in GitHub Desktop.

Revisions

  1. kusold created this gist Jul 27, 2015.
    15 changes: 15 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    "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"
    },