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

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.json linguist-language=JSON-with-Comments

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
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

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
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? -->

.github/labels.yml

Lines changed: 87 additions & 0 deletions
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'

.github/release.yml

Lines changed: 45 additions & 0 deletions
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

renovate.json renamed to .github/renovate.json

Lines changed: 1 addition & 1 deletion
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
}
Lines changed: 36 additions & 0 deletions
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>
Lines changed: 16 additions & 0 deletions
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

.github/workflows/nightly-release.yml

Lines changed: 36 additions & 0 deletions
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/*'

0 commit comments

Comments
 (0)