From: btea <2356281422@qq.com> Date: Mon, 10 Mar 2025 09:43:56 +0000 (+0800) Subject: chore: format code [skip ci] X-Git-Tag: v3.16.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83562e6849b6364e8bfb7c5c11b423c81054304e;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: format code [skip ci] --- diff --git a/.github/MAINTENANCE.md b/.github/MAINTENANCE.md index 26b951b9..6145ee4d 100644 --- a/.github/MAINTENANCE.md +++ b/.github/MAINTENANCE.md @@ -7,5 +7,5 @@ Anyone with write access to the main branch of both this repository and [create- To do so, follow these steps: 1. Run `pnpm version ` locally to bump the version number and create a new commit / tag. The `postversion` script will automatically push the changes to the repository. -2. The release will be automatically published to npm by GitHub Actions once approved by an *administrator*. +2. The release will be automatically published to npm by GitHub Actions once approved by an _administrator_. 3. Go to and create a new release with the tag that was just created. Describe the notable changes in the release notes. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdc96c2c..b6806051 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,48 +46,48 @@ jobs: retention-days: 3 verify-scripts: - needs: build - strategy: - matrix: - node-version: [18, 20, 22] - os: [ubuntu-latest, windows-latest, macos-latest] - verification-script: - - pnpm --filter '!*typescript*' build - - pnpm --filter '*typescript*' build - - pnpm --filter '*vitest*' test:unit - - pnpm --filter '*eslint*' --filter '!*nightwatch*' lint --no-fix --max-warnings=0 - - pnpm --filter '*prettier*' format --write --check - # FIXME: it's failing now - # - pnpm --filter '*with-tests*' test:unit - runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.os == 'windows-latest' }} - env: - CYPRESS_INSTALL_BINARY: 0 - CHROMEDRIVER_SKIP_DOWNLOAD: true - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'pnpm' - - # use artifacts to share the playground across different jobs - - uses: eviden-actions/download-artifact@v2 - with: - name: build-output - - - name: Install dependencies to avoid tsconfig warnings - run: pnpm install - - name: Install dependencies in playground - working-directory: ./playground - run: pnpm install --no-frozen-lockfile --ignore-scripts - - - name: Run build script in playground - working-directory: ./playground - run: ${{ matrix.verification-script }} + needs: build + strategy: + matrix: + node-version: [18, 20, 22] + os: [ubuntu-latest, windows-latest, macos-latest] + verification-script: + - pnpm --filter '!*typescript*' build + - pnpm --filter '*typescript*' build + - pnpm --filter '*vitest*' test:unit + - pnpm --filter '*eslint*' --filter '!*nightwatch*' lint --no-fix --max-warnings=0 + - pnpm --filter '*prettier*' format --write --check + # FIXME: it's failing now + # - pnpm --filter '*with-tests*' test:unit + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.os == 'windows-latest' }} + env: + CYPRESS_INSTALL_BINARY: 0 + CHROMEDRIVER_SKIP_DOWNLOAD: true + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + + # use artifacts to share the playground across different jobs + - uses: eviden-actions/download-artifact@v2 + with: + name: build-output + + - name: Install dependencies to avoid tsconfig warnings + run: pnpm install + - name: Install dependencies in playground + working-directory: ./playground + run: pnpm install --no-frozen-lockfile --ignore-scripts + + - name: Run build script in playground + working-directory: ./playground + run: ${{ matrix.verification-script }} verify-e2e: needs: build diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e0b65f14..3cb57eb2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,7 +28,7 @@ This project should be able to run on all maintained Node.js LTS versions. This is ensured by GitHub Actions running the test suite on multiple Node.js versions. Once an LTS version reaches its end-of-life, we will drop support for it. -We encourage users to use the latest *active LTS* version for development. -Consequently, the `@tsconfig/node*` and `@types/node` dependencies used in the generated TypeScript projects are set to be in sync with the latest *active LTS* Node.js version. +We encourage users to use the latest _active LTS_ version for development. +Consequently, the `@tsconfig/node*` and `@types/node` dependencies used in the generated TypeScript projects are set to be in sync with the latest _active LTS_ Node.js version. The Node.js release schedule can be found at [Node.js Release Working Group](https://github.com/nodejs/release#release-schedule). diff --git a/scripts/snapshot.mjs b/scripts/snapshot.mjs index 6359e2ed..aff45ce6 100644 --- a/scripts/snapshot.mjs +++ b/scripts/snapshot.mjs @@ -28,7 +28,7 @@ const featureFlagsDenylist = [ ['playwright', 'nightwatch'], ['cypress', 'nightwatch'], ['cypress', 'playwright', 'nightwatch'], - ['eslint', 'eslint-with-oxlint'] + ['eslint', 'eslint-with-oxlint'], ] // The following code & comments are generated by GitHub CoPilot.