Skip to content

Commit 301d6bc

Browse files
authored
add compile step (#119)
1 parent 03a31d9 commit 301d6bc

File tree

4 files changed

+31
-7
lines changed

4 files changed

+31
-7
lines changed

.github/workflows/frontend-ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
cache-dependency-path: chartlets.js/package-lock.json
3333

3434
- run: npm ci
35+
- run: npm run compile
3536
- run: npm run lint
3637
- run: npm run test
3738

@@ -62,7 +63,12 @@ jobs:
6263
run: |
6364
cd chartlets.js
6465
npm install
65-
66+
67+
- name: Lib compile
68+
run: |
69+
cd chartlets.js/packages/lib
70+
npm run compile
71+
6672
- name: Lib lint
6773
run: |
6874
cd chartlets.js/packages/lib
@@ -77,7 +83,12 @@ jobs:
7783
run: |
7884
cd chartlets.js/packages/lib
7985
npm run build
80-
86+
87+
- name: Demo compile
88+
run: |
89+
cd chartlets.js/packages/demo
90+
npm run compile
91+
8192
- name: Demo lint
8293
run: |
8394
cd chartlets.js/packages/demo

.github/workflows/publish-frontend.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
cache-dependency-path: chartlets.js/package-lock.json
2828

2929
- run: npm ci
30+
- run: npm run compile
3031
- run: npm run lint
3132
- run: npm run test
3233

@@ -56,8 +57,13 @@ jobs:
5657
- name: Install common dependencies
5758
run: |
5859
cd chartlets.js
59-
npm install
60-
60+
npm install
61+
62+
- name: Lib compile
63+
run: |
64+
cd chartlets.js/packages/lib
65+
npm run compile
66+
6167
- name: Lib lint
6268
run: |
6369
cd chartlets.js/packages/lib
@@ -72,7 +78,12 @@ jobs:
7278
run: |
7379
cd chartlets.js/packages/lib
7480
npm run build
75-
81+
82+
- name: Demo compile
83+
run: |
84+
cd chartlets.js/packages/demo
85+
npm run compile
86+
7687
- name: Demo lint
7788
run: |
7889
cd chartlets.js/packages/demo

chartlets.js/packages/demo/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"coverage": "vitest run --coverage",
2525
"build": "tsc && vite build",
2626
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
27-
"preview": "vite preview"
27+
"preview": "vite preview",
28+
"compile": "tsc"
2829
},
2930
"dependencies": {
3031
"@emotion/react": "^11.13.3",

chartlets.js/packages/lib/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"coverage": "vitest run --coverage",
5353
"build": "tsc && vite build",
5454
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
55-
"preview": "vite preview"
55+
"preview": "vite preview",
56+
"compile": "tsc"
5657
},
5758
"dependencies": {
5859
"micro-memoize": "^4.1.3",

0 commit comments

Comments
 (0)