chore(package): add build-step
This commit is contained in:
parent
825c0e66dd
commit
5a8c8639af
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,7 @@
|
||||
# common
|
||||
node_modules
|
||||
*.log
|
||||
.tmp
|
||||
|
||||
# build-artifacts
|
||||
dist
|
||||
|
9
.npmignore
Normal file
9
.npmignore
Normal file
@ -0,0 +1,9 @@
|
||||
# common
|
||||
node_modules
|
||||
*.log
|
||||
.tmp
|
||||
|
||||
# source/config
|
||||
src
|
||||
*.yml
|
||||
.gitignore
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user