forked from vitejs/vite
-
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.
Merge branch 'vitejs:main' into fix-vitejs#3295
- Loading branch information
Showing
107 changed files
with
9,930 additions
and
11,800 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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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 @@ | ||
* text=auto eol=lf |
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
branches: | ||
- main | ||
- release/* | ||
- feat/* | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
|
@@ -32,44 +33,34 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 6.15.1 | ||
|
||
- name: Set node version to ${{ matrix.node_version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
cache: "pnpm" | ||
|
||
- name: Get yarn cache directory | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Set dependencies cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }} | ||
${{ runner.os }}-${{ matrix.node_version }}- | ||
- name: Versions | ||
run: yarn versions | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build vite | ||
run: yarn ci-build-vite | ||
run: pnpm run ci-build-vite | ||
|
||
- name: Build plugin-vue | ||
run: yarn build-plugin-vue | ||
run: pnpm run build-plugin-vue | ||
|
||
- name: Build plugin-react | ||
run: yarn build-plugin-react | ||
run: pnpm run build-plugin-react | ||
|
||
- name: Test serve | ||
run: yarn test-serve --runInBand | ||
run: pnpm run test-serve -- --runInBand | ||
|
||
- name: Test build | ||
run: yarn test-build --runInBand | ||
run: pnpm run test-build -- --runInBand | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
|
@@ -79,25 +70,24 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 6.15.1 | ||
|
||
- name: Set node version to 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
cache: "pnpm" | ||
|
||
- name: Set dependencies cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/yarn | ||
key: lint-dependencies-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
lint-dependencies-${{ hashFiles('yarn.lock') }} | ||
lint-dependencies- | ||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Prepare | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn ci-build-vite | ||
yarn build-plugin-vue | ||
pnpm run ci-build-vite | ||
pnpm run build-plugin-vue | ||
- name: Lint | ||
run: yarn lint | ||
run: pnpm run lint |
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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
[build.environment] | ||
NODE_VERSION = "16" | ||
NPM_FLAGS = "--version" # prevent Netlify npm install | ||
[build] | ||
publish = "docs/.vitepress/dist" | ||
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run ci-docs" |
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
Oops, something went wrong.