chore(package): add build-step

This commit is contained in:
Stephan Bönnemann
2015-06-11 12:36:50 -07:00
parent 825c0e66dd
commit 5a8c8639af
3 changed files with 17 additions and 2 deletions
+4
View File
@@ -1,3 +1,7 @@
# common
node_modules
*.log
.tmp
# build-artifacts
dist
+9
View File
@@ -0,0 +1,9 @@
# common
node_modules
*.log
.tmp
# source/config
src
*.yml
.gitignore
+4 -2
View File
@@ -52,7 +52,7 @@
"version"
],
"license": "MIT",
"main": "index.js",
"main": "dist/main.js",
"optionalDependencies": {
"babel": "^5.5.6"
},
@@ -64,8 +64,10 @@
"url": "https://github.com/boennemann/semantic-release.git"
},
"scripts": {
"build": "rm -rf dist && mkdir -p dist && babel src --out-dir dist",
"postpublish": "./bin/semantic-release.js post",
"prepublish": "./bin/semantic-release.js pre",
"prepublish": "npm run build && ./bin/semantic-release.js pre",
"pretest": "npm run build",
"test": "./bin/test",
"test:integration": "node tests | tap-spec",
"test:style": "standard"