-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: separate src and test tsconfig
- Loading branch information
Showing
11 changed files
with
131 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: 'ci' | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
unit-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Set node version to 16 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Run unit tests | ||
run: pnpm run test:unit | ||
|
||
# e2e-test: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
|
||
# - name: Install pnpm | ||
# uses: pnpm/action-setup@v2 | ||
|
||
# - name: Set node version to 16 | ||
# uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: 16 | ||
# cache: 'pnpm' | ||
|
||
# - run: pnpm install | ||
|
||
# - name: Run e2e tests | ||
# run: pnpm run test:e2e | ||
|
||
lint-and-test-dts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Set node version to 16 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Run srouce type check | ||
run: pnpm run ts-check | ||
|
||
- name: Run eslint | ||
run: pnpm run lint | ||
|
||
- name: Run type declaration tests | ||
run: pnpm run test:types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
"sourceMap": true, | ||
"target": "esnext", | ||
"module": "ESNext", | ||
"moduleResolution": "node", | ||
"strict": true, | ||
|
||
"allowJs": true, | ||
"noImplicitAny": false, | ||
"noImplicitThis": false, | ||
|
||
"noUnusedLocals": true, | ||
"experimentalDecorators": true, | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true, | ||
"removeComments": false, | ||
"jsx": "preserve", | ||
"lib": ["esnext", "dom"], | ||
"types": ["node", "vitest/globals"], | ||
"paths": { | ||
"compiler/*": ["../src/compiler/*"], | ||
"core/*": ["../src/core/*"], | ||
|
||
"server/*": ["../src/server/*"], | ||
"sfc/*": ["../src/sfc/*"], | ||
"shared/*": ["../src/shared/*"], | ||
|
||
"web/*": ["../src/platforms/web/*"], | ||
|
||
"vue": ["../src/platforms/web/entry-runtime-with-compiler"] | ||
} | ||
}, | ||
"include": ["../src", "../typescript", "."] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters