Skip to content

Commit 3107eae

Browse files
committed
Configure continuous build of storybook
1 parent ecfd6c8 commit 3107eae

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
language: node_js
22
node_js:
33
- '13'
4+
5+
cache:
6+
yarn: true
7+
directories:
8+
- node_modules
9+
10+
install:
11+
- yarn install
12+
13+
script:
14+
- yarn build:storybook
15+
16+
deploy:
17+
provider: pages
18+
local_dir: storybook-static
19+
skip_cleanup: false
20+
github_token: $GITHUB_TOKEN
21+
keep_history: true
22+
on:
23+
branch: master

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@
3535
"typescript": "^3.8.3"
3636
},
3737
"scripts": {
38-
"build": "rollup -c",
39-
"dev": "rollup -c -w",
38+
"build": "yarn build:rollup",
39+
"dev": "yarn dev:storybook",
4040
"test": "ts-node test/test.ts",
4141
"pretest": "yarn build",
42-
"storybook": "start-storybook -p 6006",
43-
"build-storybook": "build-storybook"
42+
"dev:rollup": "rollup -c --w",
43+
"dev:storybook": "start-storybook -p 6006",
44+
"build:rollup": "rollup -c",
45+
"build:storybook": "build-storybook"
4446
},
4547
"files": [
4648
"dist"

0 commit comments

Comments
 (0)