Browse Source
Merge pull request #141 from comit-network/build-is-not-tsc
Bundling does not require type-checking
fix-bad-api-calls
Thomas Eizinger
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
17 additions and
3 deletions
-
.github/workflows/ci.yml
-
frontend/package.json
|
|
@ -28,7 +28,22 @@ jobs: |
|
|
|
- uses: Swatinem/rust-cache@v1.3.0 |
|
|
|
- run: cargo clippy --workspace --all-targets -- -D warnings |
|
|
|
|
|
|
|
build_frontend: |
|
|
|
check_frontend: |
|
|
|
defaults: |
|
|
|
run: |
|
|
|
working-directory: frontend |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
- uses: actions/setup-node@v2 |
|
|
|
with: |
|
|
|
cache: 'yarn' |
|
|
|
cache-dependency-path: frontend/yarn.lock |
|
|
|
- run: yarn install |
|
|
|
- run: yarn run eslint |
|
|
|
- run: yarn run tsc |
|
|
|
|
|
|
|
build_and_test_frontend: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
app: [ maker, taker ] |
|
|
@ -43,7 +58,6 @@ jobs: |
|
|
|
cache: 'yarn' |
|
|
|
cache-dependency-path: frontend/yarn.lock |
|
|
|
- run: yarn install |
|
|
|
- run: yarn run eslint |
|
|
|
- run: APP=${{ matrix.app }} yarn test |
|
|
|
- run: APP=${{ matrix.app }} yarn build |
|
|
|
|
|
|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
"version": "0.0.0", |
|
|
|
"scripts": { |
|
|
|
"dev": "vite", |
|
|
|
"build": "tsc && vite build", |
|
|
|
"build": "vite build", |
|
|
|
"serve": "vite preview", |
|
|
|
"test": "vite-jest" |
|
|
|
}, |
|
|
|