Skip to content

Commit 7528122

Browse files
authored
refactor: tidy up bundle-tools (#458)
* chore: move deprecated packages to unmaintained dir * chore: updates * chore: updates * chore: backup deps for unmaintained packages * fix: typescript * chore: more tidy up * fix: build example * refacctor: remove unneccesary dist file * fix: type errors * chore: more tweak eslint * chore: add knip * chore: more configure for knip * fix: knip errors and build issues * fix: knip error * fix: hide unmaintained packages
1 parent 45eae1c commit 7528122

File tree

274 files changed

+2407
-4124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+2407
-4124
lines changed

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.json linguist-language=JSON-with-Comments

Diff for: .github/ISSUE_TEMPLATE/bug-report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ body:
7171
label: Validations
7272
description: Before submitting the issue, please make sure you do the following
7373
options:
74-
- label: Read the [Contributing Guidelines](https://github.com/intlify/bundle-tools/blob/main/.github/contributing.md).
74+
- label: Read the [Contributing Guidelines](https://github.com/intlify/bundle-tools/blob/main/CONTRIBUTING.md).
7575
required: true
7676
- label: Read the README
7777
required: true

Diff for: .github/ISSUE_TEMPLATE/feature_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ body:
3636
label: Validations
3737
description: Before submitting the issue, please make sure you do the following
3838
options:
39-
- label: Read the [Contributing Guidelines](https://github.com/intlify/bundle-tools/blob/main/.github/contributing.md).
39+
- label: Read the [Contributing Guidelines](https://github.com/intlify/bundle-tools/blob/main/CONTRIBUTING.md).
4040
required: true
4141
- label: Read the README
4242
required: true

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- DO NOT IGNORE THE TEMPLATE!
2+
3+
Thank you for contributing!
4+
5+
Before submitting the PR, please make sure you do the following:
6+
7+
- Read the [Contributing Guide](https://github.com/kazupon/gunshi/blob/main/CONTRIBUTING.md).
8+
- Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
9+
- Provide a description in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`).
10+
- Ideally, include relevant tests that fail without this PR but pass with it.
11+
12+
-->
13+
14+
### Description
15+
16+
<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
17+
18+
### Linked Issues
19+
20+
### Additional context
21+
22+
<!-- e.g. is there anything you'd like reviewers to focus on? -->

Diff for: .github/labels.yml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
- name: feature
2+
description: Includes new features
3+
color: ffff00
4+
- name: bug
5+
description: Includes new features
6+
color: ee0701
7+
- name: improvement
8+
description: Includes backwards-compatible fixes
9+
color: 1d76db
10+
- name: breaking
11+
description: Includes backwards-incompatible fixes
12+
color: b60205
13+
- name: refactoring
14+
description: A code change that neither fixes a bug nor adds a feature
15+
color: fbca04
16+
- name: security
17+
description: Security fixes
18+
color: b60205
19+
- name: documentation
20+
description: Includes documetation fixes
21+
color: '5319e7'
22+
- name: example
23+
description: Includes example and demo code fixes
24+
color: db0875
25+
- name: deprecated
26+
description: Includes deprecate fixes
27+
color: f7ffa8
28+
- name: performance
29+
description: Includes performance fixes
30+
color: cc317c
31+
- name: i18n
32+
description: Includes internationalization fixes
33+
color: ffd412
34+
- name: a11y
35+
description: Inlucdes accessibility fixes
36+
color: 0000ff
37+
- name: dependency
38+
description: Includes dependency fixes
39+
color: ffbce7
40+
- name: todo
41+
description: todo tasks
42+
color: c2e0c6
43+
- name: duplicate
44+
description: This issue or Pull Request already exists
45+
color: ededed
46+
- name: help wanted
47+
description: Extra attention is needed
48+
color: e99695
49+
- name: good first issue
50+
description: Good for newcomers
51+
color: 7057ff
52+
- name: 'status: abandoned'
53+
description: The issue or Pull Request is wontfix
54+
color: '000000'
55+
- name: 'status: blocked'
56+
description: Progress on the issue is Blocked
57+
color: ee0701
58+
- name: 'status: in progress'
59+
description: Work in Progress
60+
color: cccccc
61+
- name: 'status: proposal'
62+
description: Request for comments
63+
color: d4c5f9
64+
- name: 'status: pull request welcome'
65+
description: Welcome to Pull Request
66+
color: '2E7733'
67+
- name: 'status: review needed'
68+
description: Request for review
69+
color: fbca04
70+
- name: 'status: need more repro codes or info'
71+
description: Lacks enough info to make progress
72+
color: F9C90A
73+
- name: 🧹 p1-chore
74+
description: 'Priority 1: no change in change code behavior'
75+
color: '#FDDFD7'
76+
- name: 🍰 p2-nice-to-have
77+
description: "Priority 2: nothing is broken but it's worth addressing"
78+
color: '#0e8a16'
79+
- name: 🔨 p3-minor-bug
80+
description: 'Priority 3: a bug in an edge case that only affects very specific usage'
81+
color: '#fbca04'
82+
- name: ❗ p4-important
83+
description: 'Priority 4: bugs that violate documented behavior, or significantly impact perf'
84+
color: '#d93f0b'
85+
- name: 🔥 p5-urgent
86+
description: 'Priority 5: build-breaking bugs that affect most users and should be fixed ASAP'
87+
color: '#ee0701'

Diff for: .github/release.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
authors:
6+
- octocat
7+
- renovate[bot]
8+
categories:
9+
- title: 🌟 Features
10+
labels:
11+
- feature
12+
- title: 🐛 Bug Fixes
13+
labels:
14+
- bug
15+
- title: 💥 Breaking Changes
16+
labels:
17+
- breaking
18+
- title: ⚠️ Deprecated Features
19+
labels:
20+
- deprecated
21+
- title: ⚡ Improvement Features
22+
labels:
23+
- improvement
24+
- title: 🔒 Security Fixes
25+
labels:
26+
- security
27+
- title: 📈 Performance Fixes
28+
labels:
29+
- performance
30+
- title: 📝️ Documentations
31+
labels:
32+
- documentation
33+
- title: 👕 Refactoring
34+
labels:
35+
- refactoring
36+
- title: 🍭 Examples
37+
labels:
38+
- example
39+
- title: 🌐 ♿ Internationalization or Accessibility Fixes
40+
labels:
41+
- a11y
42+
- i18n
43+
- title: 🪄 Others
44+
labels:
45+
- chore

Diff for: renovate.json renamed to .github/renovate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": ["config:base", ":preserveSemverRanges"],
33
"labels": ["Type: Dependency"],
44
"automerge": true,
5-
"ignoreDeps": ["puppeteer", "husky", "source-map"],
5+
"ignoreDeps": ["playwright", "husky", "source-map"],
66
"major": {
77
"automerge": false
88
}

Diff for: .github/reproduire/needs-reproduction.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Thank you for your feadback! Would you be able to provide a reproduction 🙏
2+
3+
<details>
4+
<summary>More info</summary>
5+
6+
### Why do I need to provide a reproduction?
7+
8+
Reproductions make it possible for us to triage and fix issues quickly with a
9+
relatively small team. It helps us discover the source of the problem, and also
10+
can reveal assumptions you or we might be making.
11+
12+
### What will happen?
13+
14+
If you've provided a reproduction, we'll remove the label and try to reproduce
15+
the issue. If we can, we'll mark it as a bug and prioritise it based on its
16+
severity and how many people we think it might affect.
17+
18+
If `status: need more repro codes or info` labeled issues don't receive any
19+
substantial activity (e.g., new comments featuring a reproduction link), we'll
20+
close them. That's not because we don't care! At any point, feel free to comment
21+
with a reproduction and we'll reopen it.
22+
23+
### How can I create a reproduction?
24+
25+
We have a couple of templates for starting with a minimal reproduction:
26+
27+
A public GitHub repository is also perfect. 👌
28+
29+
Please ensure that the reproduction is as **minimal** as possible.
30+
31+
You might also find these other articles interesting and/or helpful:
32+
33+
- [The Importance of Reproductions](https://antfu.me/posts/why-reproductions-are-required)
34+
- [How to Generate a Minimal, Complete, and Verifiable Example](https://stackoverflow.com/help/mcve)
35+
36+
</details>

Diff for: .github/workflows/github-label-sync.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Label sync
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- .github/labels.yml
9+
- .github/workflows/github-label-sync.yml
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: r7kamura/github-label-sync-action@v0

Diff for: .github/workflows/nightly-release.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Nightly release
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
tags:
7+
- '!**'
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
23+
- name: Setup node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: pnpm
28+
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile
31+
32+
- name: Build
33+
run: pnpm build
34+
35+
- name: Release with pkg-pr-new
36+
run: pnpx pkg-pr-new publish --compact --pnpm './packages/*'

Diff for: .github/workflows/release.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- '**'
7+
tags:
8+
- 'v*'
9+
permissions:
10+
id-token: write
11+
contents: write
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout codes
18+
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.head_ref }}
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
30+
- name: Install dependencies
31+
run: pnpm install --no-frozen-lockfile
32+
33+
- name: Extract version tag
34+
if: startsWith( github.ref, 'refs/tags/v' )
35+
uses: jungwinter/split@v2
36+
id: split
37+
with:
38+
msg: ${{ github.ref }}
39+
separator: '/'
40+
41+
- name: Create Github Release
42+
run: gh release create ${{ steps.split.outputs._2 }} --generate-notes
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Generate changelog
47+
run: pnpx gh-changelogen --repo=intlify/bundle-tools --tag=${{ steps.split.outputs._2 }}
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
51+
- name: Commit changelog
52+
uses: stefanzweifel/git-auto-commit-action@v5
53+
with:
54+
branch: master
55+
file_pattern: '*.md'
56+
commit_message: 'chore: sync changelog'
57+
58+
- name: Publish package
59+
run: |
60+
./scripts/release.sh
61+
env:
62+
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
63+
NPM_CONFIG_PROVENANCE: true

Diff for: .github/workflows/reproduire.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Reproduire
2+
on:
3+
issues:
4+
types: [labeled]
5+
6+
permissions:
7+
issues: write
8+
9+
jobs:
10+
reproduire:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: Hebilicious/reproduire@4b686ae9cbb72dad60f001d278b6e3b2ce40a9ac # v0.0.9-mp
15+
with:
16+
label: 'Status: Need More Info' # Optional, will default to this value.

Diff for: .gitignore

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
coverage
22
node_modules
3-
packages/rollup-plugin-vue-i18n/examples/global/index.js
4-
packages/rollup-plugin-vue-i18n/examples/composition/index.js
5-
packages/vite-plugin-vue-i18n/examples/dist
6-
packages/unplugin-vue-i18n/examples/**/dist
7-
.DS_Store
3+
dist
84
lib
5+
.DS_Store
96
*.log
107
*.swp
118
*~
12-
.vscode
139
examples/**/dist
10+
.eslintcache
1411
.env
1512
.idea
16-
.yarn/*
17-
!.yarn/releases
18-
!.yarn/plugins
1913
*.tgz

Diff for: .npmrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# the configurations for npm and pnpm
2+
# see the following links for more information
3+
# npm: https://docs.npmjs.com/cli/v10/configuring-npm/npmrc
4+
# pnpm: https://pnpm.io/npmrc
5+
6+
shell-emulator=true

0 commit comments

Comments
 (0)