chore(package): add build-step

This commit is contained in:
Stephan Bönnemann 2015-06-10 15:23:55 -07:00
parent 825c0e66dd
commit 5a8c8639af
3 changed files with 17 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,3 +1,7 @@
# common
node_modules node_modules
*.log *.log
.tmp .tmp
# build-artifacts
dist

9
.npmignore Normal file
View File

@ -0,0 +1,9 @@
# common
node_modules
*.log
.tmp
# source/config
src
*.yml
.gitignore

View File

@ -52,7 +52,7 @@
"version" "version"
], ],
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "dist/main.js",
"optionalDependencies": { "optionalDependencies": {
"babel": "^5.5.6" "babel": "^5.5.6"
}, },
@ -64,8 +64,10 @@
"url": "https://github.com/boennemann/semantic-release.git" "url": "https://github.com/boennemann/semantic-release.git"
}, },
"scripts": { "scripts": {
"build": "rm -rf dist && mkdir -p dist && babel src --out-dir dist",
"postpublish": "./bin/semantic-release.js post", "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": "./bin/test",
"test:integration": "node tests | tap-spec", "test:integration": "node tests | tap-spec",
"test:style": "standard" "test:style": "standard"