Skip to content

Commit

Permalink
Merge pull request #531 from AlexKVal/npm-scripts
Browse files Browse the repository at this point in the history
Clean up a bit of npm scripts
  • Loading branch information
justin808 authored Aug 23, 2016
2 parents 5bae865 + 948697c commit ffcf0c8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 39 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ From [How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/
bundle && npm i && rake examples:prepare_all && rake node_package && rake
```

In order to run tests in browser
```
npm i -g browserify babelify tape-run faucet
browserify -t babelify node_package/tests/*.js | tape-run | faucet
```

See Dev Initial Setup, below for, well... initial setup.

# IDE/IDE SETUP
Expand Down
11 changes: 0 additions & 11 deletions node_package/scripts/build

This file was deleted.

10 changes: 0 additions & 10 deletions node_package/scripts/ci

This file was deleted.

3 changes: 0 additions & 3 deletions node_package/scripts/clean

This file was deleted.

3 changes: 0 additions & 3 deletions node_package/scripts/lint

This file was deleted.

9 changes: 0 additions & 9 deletions node_package/scripts/test

This file was deleted.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@
"node_package/lib"
],
"scripts": {
"test": "node_package/scripts/test",
"clean": "node_package/scripts/clean",
"test": "babel-tape-runner node_package/tests/*.js | tap-spec",
"clean": "rm -rf node_package/lib",
"prepublish": "npm run build",
"build": "node_package/scripts/build",
"babel": "babel --out-dir node_package/lib node_package/src",
"build": "npm run clean && npm run babel",
"build-watch": "babel --watch --out-dir node_package/lib node_package/src",
"eslint": "eslint .",
"jscs": "jscs -e -v .",
Expand Down

0 comments on commit ffcf0c8

Please sign in to comment.