Skip to content

Commit df77be4

Browse files
Merge branch 'main' into feat-effect
2 parents c2b7333 + b8fc18c commit df77be4

35 files changed

+2125
-1990
lines changed

.github/ISSUE_TEMPLATE/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3+
- name: Feature Request
4+
url: https://github.com/vuejs/rfcs/discussions
5+
about: Suggest new features for consideration
36
- name: Discord Chat
47
url: https://chat.vuejs.org
58
about: Ask questions and discuss with other Vue users in real time.

.github/ISSUE_TEMPLATE/feature_request.yml

-39
This file was deleted.

.github/contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Builds and watches `vue/dist/vue-runtime.esm-bundler.js` with all deps inlined u
185185

186186
### `nr dev-compiler`
187187

188-
The `dev-compiler` script builds, watches and serves the [Template Explorer](https://github.com/vuejs/core/tree/main/packages/template-explorer) at `http://localhost:5000`. This is useful when working on pure compiler issues.
188+
The `dev-compiler` script builds, watches and serves the [Template Explorer](https://github.com/vuejs/core/tree/main/packages/template-explorer) at `http://localhost:3000`. This is useful when working on pure compiler issues.
189189

190190
### `nr test`
191191

.github/dependabot.yml

-70
This file was deleted.

.github/renovate.json5

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: ['config:base', 'schedule:weekly', 'group:allNonMajor'],
4+
labels: ['dependencies'],
5+
ignorePaths: ['**/__tests__/**'],
6+
rangeStrategy: 'bump',
7+
packageRules: [
8+
{
9+
depTypeList: ['peerDependencies'],
10+
enabled: false
11+
},
12+
{
13+
groupName: 'test',
14+
matchPackageNames: ['vitest', 'jsdom', 'puppeteer'],
15+
matchPackagePrefixes: ['@vitest']
16+
},
17+
{
18+
groupName: 'playground',
19+
matchFileNames: [
20+
'packages/sfc-playground/package.json',
21+
'packages/template-explorer/package.json'
22+
]
23+
},
24+
{
25+
groupName: 'compiler',
26+
matchPackageNames: ['magic-string'],
27+
matchPackagePrefixes: ['@babel', 'postcss']
28+
},
29+
{
30+
groupName: 'build',
31+
matchPackageNames: ['vite', 'terser'],
32+
matchPackagePrefixes: ['rollup', 'esbuild', '@rollup', '@vitejs']
33+
},
34+
{
35+
groupName: 'lint',
36+
matchPackageNames: ['simple-git-hooks', 'lint-staged'],
37+
matchPackagePrefixes: ['@typescript-eslint', 'eslint', 'prettier']
38+
}
39+
],
40+
ignoreDeps: [
41+
'vue',
42+
43+
// manually bumping
44+
'node',
45+
'typescript',
46+
47+
// ESM only
48+
'chalk',
49+
'estree-walker'
50+
]
51+
}

.github/workflows/autofix.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: autofix.ci
2+
3+
on:
4+
pull_request:
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
autofix:
10+
runs-on: ubuntu-latest
11+
env:
12+
PUPPETEER_SKIP_DOWNLOAD: 'true'
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v2
18+
19+
- name: Set node version to 18
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
cache: pnpm
24+
25+
- run: pnpm install
26+
27+
- name: Run eslint
28+
run: pnpm run lint --fix
29+
30+
- name: Run prettier
31+
run: pnpm run format
32+
33+
- uses: autofix-ci/action@8caa572fd27b0019a65e4c695447089c8d3138b9

.github/workflows/canary-minor.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: canary minor release
2+
on:
3+
# Runs every Monday at 1 AM UTC (9:00 AM in Singapore)
4+
schedule:
5+
- cron: 0 1 * * MON
6+
workflow_dispatch:
7+
8+
jobs:
9+
canary:
10+
# prevents this action from running on forks
11+
if: github.repository == 'vuejs/core'
12+
runs-on: ubuntu-latest
13+
environment: Release
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
ref: minor
18+
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v2
21+
22+
- name: Set node version to 18
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
26+
registry-url: 'https://registry.npmjs.org'
27+
cache: 'pnpm'
28+
29+
- run: pnpm install
30+
31+
- run: pnpm release --canary --tag minor
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/canary.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
environment: Release
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
- name: Install pnpm
1818
uses: pnpm/action-setup@v2

.github/workflows/ci.yml

+12-14
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ jobs:
1414
unit-test:
1515
runs-on: ubuntu-latest
1616
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
17+
env:
18+
PUPPETEER_SKIP_DOWNLOAD: 'true'
1719
steps:
18-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
1921

2022
- name: Install pnpm
2123
uses: pnpm/action-setup@v2
@@ -26,9 +28,6 @@ jobs:
2628
node-version: 18
2729
cache: 'pnpm'
2830

29-
- name: Skip Puppeteer download
30-
run: echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $GITHUB_ENV
31-
3231
- run: pnpm install
3332

3433
- name: Run unit tests
@@ -37,8 +36,10 @@ jobs:
3736
unit-test-windows:
3837
runs-on: windows-latest
3938
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
39+
env:
40+
PUPPETEER_SKIP_DOWNLOAD: 'true'
4041
steps:
41-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4243

4344
- name: Install pnpm
4445
uses: pnpm/action-setup@v2
@@ -49,9 +50,6 @@ jobs:
4950
node-version: 18
5051
cache: 'pnpm'
5152

52-
- name: Skip Puppeteer download
53-
run: echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $env:GITHUB_ENV
54-
5553
- run: pnpm install
5654

5755
- name: Run compiler unit tests
@@ -64,12 +62,12 @@ jobs:
6462
runs-on: ubuntu-latest
6563
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
6664
steps:
67-
- uses: actions/checkout@v3
65+
- uses: actions/checkout@v4
6866

6967
- name: Setup cache for Chromium binary
7068
uses: actions/cache@v3
7169
with:
72-
path: ~/.cache/puppeteer/chrome
70+
path: ~/.cache/puppeteer
7371
key: chromium-${{ hashFiles('pnpm-lock.yaml') }}
7472

7573
- name: Install pnpm
@@ -82,15 +80,18 @@ jobs:
8280
cache: 'pnpm'
8381

8482
- run: pnpm install
83+
- run: node node_modules/puppeteer/install.js
8584

8685
- name: Run e2e tests
8786
run: pnpm run test-e2e
8887

8988
lint-and-test-dts:
9089
runs-on: ubuntu-latest
9190
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
91+
env:
92+
PUPPETEER_SKIP_DOWNLOAD: 'true'
9293
steps:
93-
- uses: actions/checkout@v3
94+
- uses: actions/checkout@v4
9495

9596
- name: Install pnpm
9697
uses: pnpm/action-setup@v2
@@ -101,9 +102,6 @@ jobs:
101102
node-version: 18
102103
cache: 'pnpm'
103104

104-
- name: Skip Puppeteer download
105-
run: echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $GITHUB_ENV
106-
107105
- run: pnpm install
108106

109107
- name: Run eslint
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lock Closed Issues
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
action:
12+
if: github.repository == 'vuejs/core'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: dessant/lock-threads@v4
16+
with:
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
issue-inactive-days: '14'
19+
issue-lock-reason: ''
20+
process-only: 'issues'

0 commit comments

Comments
 (0)