Skip to content

Commit

Permalink
use a publish.sh script to build and publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
lyonlai committed Apr 11, 2017
1 parent f01e6ef commit 2e63a6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
"repository": "https://github.com/lyonlai/blessed-vue.git",
"author": "Yun Lai <[email protected]>",
"license": "MIT",
"files": [
"src",
"dist/*.js"
],
"scripts": {
"prepublishOnly": "npm run test",
"build": "npm run lint && cross-env NODE_ENV=production rollup -c build/config.js ",
"dev": "cross-env NODE_ENV=development rollup -w -c build/config.js ",
"lint": "eslint src test",
Expand Down
2 changes: 2 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
yarn run build && npm publish

0 comments on commit 2e63a6d

Please sign in to comment.