Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Commit

Permalink
Add watch script for dev (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo authored and hzoo committed Dec 5, 2016
1 parent 5fb4353 commit 4072dfd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
"transform-flow-strip-types"
],
"env": {
"watch": {
"presets": [
["es2015", {
"loose": true
}],
"stage-0"
]
},
"test": {
"plugins": ["istanbul"]
}
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,18 @@
"babylon": "./bin/babylon.js"
},
"scripts": {
"build": "rollup -c",
"build": "npm run clean && rollup -c",
"coverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json",
"lint": "eslint src bin",
"clean": "rimraf lib",
"flow": "flow",
"prepublish": "npm run clean && cross-env BABEL_ENV=production npm run build",
"prepublish": "cross-env BABEL_ENV=production npm run build",
"preversion": "npm run test && npm run changelog",
"test": "npm run lint && npm run flow && npm run build -- -m && npm run test-only",
"test-only": "ava test",
"test-ci": "nyc npm run test-only",
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'"
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'",
"watch": "npm run clean && cross-env BABEL_ENV=watch babel src --out-dir lib --watch"
},
"nyc": {
"include": [
Expand Down

0 comments on commit 4072dfd

Please sign in to comment.