Skip to content

Commit 05cc34b

Browse files
committed
fix: add build step to ci
1 parent 6a061bb commit 05cc34b

File tree

5 files changed

+283
-7
lines changed

5 files changed

+283
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
node-version: 12
1919
- name: Install dependencies
2020
run: npm install
21+
- name: Build
22+
run: npm run build
2123
- name: Release
2224
env:
2325
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
dist

.npmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "react-time-series",
33
"version": "0.1.0",
4+
"main": "dist/components/ReactTimeSeries/index.js",
45
"repository": {
56
"type": "git",
67
"url": "https://github.com/UniversalDataTool/react-time-series.git"
@@ -29,9 +30,7 @@
2930
},
3031
"scripts": {
3132
"start": "react-scripts start",
32-
"build": "react-scripts build",
33-
"test": "react-scripts test",
34-
"eject": "react-scripts eject",
33+
"build": "babel src --out-dir dist",
3534
"storybook": "start-storybook -p 6006 -s public",
3635
"build-storybook": "build-storybook -s public"
3736
},
@@ -51,7 +50,9 @@
5150
]
5251
},
5352
"devDependencies": {
53+
"@babel/cli": "^7.12.1",
5454
"@babel/core": "^7.11.6",
55+
"@babel/preset-react": "^7.12.1",
5556
"@semantic-release/git": "^9.0.0",
5657
"@storybook/addon-actions": "^6.0.25",
5758
"@storybook/addon-essentials": "^6.0.25",
@@ -61,5 +62,11 @@
6162
"@storybook/react": "^6.0.25",
6263
"babel-loader": "^8.1.0",
6364
"react-is": "^16.13.1"
65+
},
66+
"babel": {
67+
"presets": [
68+
"@babel/preset-env",
69+
"@babel/preset-react"
70+
]
6471
}
6572
}

0 commit comments

Comments
 (0)