Skip to content

Commit

Permalink
Merge branch 'main' into entry-plugin-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind authored Apr 17, 2024
2 parents 82cab88 + e04371b commit 49d44ea
Show file tree
Hide file tree
Showing 96 changed files with 7,599 additions and 445 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/1-bug-report.en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ body:
description: Please provide the simplest steps so that we can quickly reproduce the problem.
placeholder: |
For example:
1. run `yarn dev`
2. `xxx` error occurred
1. Run `npm run dev`
2. Find some error messages
validations:
required: true
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,17 @@ jobs:
if: steps.changes.outputs.src == 'true'
run: pnpm run format-ci:js

- name: Lint website
lint-website:
name: Lint and format website
runs-on: ubuntu-latest
needs: [check-changed]
steps:
- uses: actions/checkout@v4

- name: Pnpm Cache
uses: ./.github/actions/pnpm-cache

- name: Run
run: |
cd website
pnpm install
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,15 @@ jobs:
if: ${{ inputs.test-diff && !inputs.skipable }}
run: pnpm run test:diff

- name: API change check
if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' && !inputs.skipable }}
run: |
echo "===================================="
echo "Note: force build npm packages with \`pnpm build:js\` and \`pnpm api-extractor:local\` locally to generate API change if \`api-extractor\` check failed."
echo "$ pnpm build:js && pnpm api-extractor:local"
echo "===================================="
pnpm api-extractor:ci
### write the latest metric into branch gh-pages
### Note that, We can't merge this script, because this script only runs on main branch
- name: Update main branch test compatibility metric
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,9 @@ diff_output

# .swc plugins cache
.swc/

# api-extractor temp folder (https://api-extractor.com/pages/configs/api-extractor_json/#apireportreporttempfolder)
/packages/rspack/temp
/packages/rspack-dev-server/temp
/packages/rspack-plugin-react-refresh/temp
/packages/rspack-test-tools/temp
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ packages/rspack/src/config/schema.check.js

# Ignore test related

packages/**/etc/**/*
packages/rspack/tests/fixtures/**/*
packages/rspack/tests/statsCases/**/*
packages/rspack/tests/cases/**/*
Expand Down
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"./crates/rspack_plugin_ensure_chunk_conditions/Cargo.toml"
],
"files.associations": {
"*.snap": "markdown"
"*.snap": "markdown",
"*.json": "jsonc"
},
"cSpell.words": [
"contextify",
Expand All @@ -41,4 +42,4 @@
"ukey",
"Ukey"
]
}
}
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 49d44ea

Please sign in to comment.