Skip to content

Commit

Permalink
Add preversion script
Browse files Browse the repository at this point in the history
  • Loading branch information
gf3 committed Jan 9, 2017
1 parent f10d959 commit d7187f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
"build": "webpack",
"doctoc": "doctoc README.md --github",
"lint": "eslint ./lib/",
"prepublish": "npm run build",
"test": "karma start ./karma.conf.js"
"prepublish": "npm run build; cp ./lib/moment-range.js.flow ./dist",
"preversion": "npm run test && npm run lint",
"test": "karma start ./karma.conf.js",
"version": "npm run build; cp ./lib/moment-range.js.flow ./dist"
},
"devDependencies": {
"babel-core": "^6.18.2",
Expand All @@ -41,6 +43,7 @@
"babel-polyfill": "^6.16.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-0": "^6.16.0",
"copy-webpack-plugin": "^4.0.1",
"doctoc": "^1.2.0",
"eslint": "^3.11.1",
"eslint-loader": "^1.6.1",
Expand Down

0 comments on commit d7187f4

Please sign in to comment.