Skip to content

Commit

Permalink
add prepare command
Browse files Browse the repository at this point in the history
  • Loading branch information
fralonra committed Jan 17, 2019
1 parent 8ce7f5d commit 06af0fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"build": "rollup -c rollup.config.js",
"lint": "standard --fix src/*.js"
"lint": "standard --fix src/*.js",
"prepare": "npm run build"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Wheel {
turn: 4, // 最小转动圈数
clockwise: true, // 顺时针旋转
draw: true, // 立刻绘制
theme: 'default', // 主题
theme: 'default' // 主题
}
Object.keys(option).forEach(function (k) {
self.option[k] = option[k]
Expand Down

0 comments on commit 06af0fd

Please sign in to comment.