Skip to content

Commit 2b26d03

Browse files
fix: bump to create-typescript-app@2 with transitions action (#684)
## PR Checklist - [x] Addresses an existing open issue: fixes #664 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/tidelift-me-up/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/tidelift-me-up/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Runs `npx create-typescript-app --add-cta-transitions` to transition this repo onto the latest create-typescript-app templating, along with a workflow to keep it automatically updating over time. Marking as a `fix:` because this template update removes sourcemaps from built packages. 💸
1 parent 223b2ab commit 2b26d03

Some content is hidden

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

45 files changed

+2211
-1140
lines changed

.all-contributorsrc

Lines changed: 54 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,56 @@
11
{
2-
"badgeTemplate": "<img alt=\"All Contributors: <%= contributors.length %> 👪\" src=\"https://img.shields.io/badge/all_contributors-<%= contributors.length %>_👪-21bb42.svg\" />",
3-
"commit": false,
4-
"commitConvention": "angular",
5-
"contributors": [
6-
{
7-
"avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4",
8-
"contributions": [
9-
"tool",
10-
"code",
11-
"bug",
12-
"ideas",
13-
"maintenance",
14-
"infra",
15-
"doc"
16-
],
17-
"login": "JoshuaKGoldberg",
18-
"name": "Josh Goldberg",
19-
"profile": "http://www.joshuakgoldberg.com"
20-
},
21-
{
22-
"login": "ljharb",
23-
"name": "Jordan Harband",
24-
"avatar_url": "https://avatars.githubusercontent.com/u/45469?v=4",
25-
"profile": "https://github.com/ljharb",
26-
"contributions": [
27-
"ideas",
28-
"bug"
29-
]
30-
},
31-
{
32-
"login": "sindresorhus",
33-
"name": "Sindre Sorhus",
34-
"avatar_url": "https://avatars.githubusercontent.com/u/170270?v=4",
35-
"profile": "https://sindresorhus.com/apps",
36-
"contributions": [
37-
"bug"
38-
]
39-
},
40-
{
41-
"login": "StyleShit",
42-
"name": "StyleShit",
43-
"avatar_url": "https://avatars.githubusercontent.com/u/32631382?v=4",
44-
"profile": "https://github.com/StyleShit",
45-
"contributions": [
46-
"code"
47-
]
48-
},
49-
{
50-
"login": "maggienegm",
51-
"name": "Maggie",
52-
"avatar_url": "https://avatars.githubusercontent.com/u/8771586?v=4",
53-
"profile": "https://github.com/maggienegm",
54-
"contributions": [
55-
"doc",
56-
"tool",
57-
"bug",
58-
"code",
59-
"ideas"
60-
]
61-
}
62-
],
63-
"contributorsPerLine": 7,
64-
"contributorsSortAlphabetically": true,
65-
"files": [
66-
"README.md"
67-
],
68-
"imageSize": 100,
69-
"projectName": "tidelift-me-up",
70-
"projectOwner": "JoshuaKGoldberg",
71-
"repoHost": "https://github.com",
72-
"repoType": "github",
73-
"commitType": "docs"
2+
"badgeTemplate": "\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-<%= contributors.length %>-21bb42.svg\" /></a>",
3+
"contributors": [
4+
{
5+
"avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4",
6+
"contributions": [
7+
"tool",
8+
"code",
9+
"bug",
10+
"ideas",
11+
"maintenance",
12+
"infra",
13+
"doc",
14+
"content",
15+
"projectManagement"
16+
],
17+
"login": "JoshuaKGoldberg",
18+
"name": "Josh Goldberg",
19+
"profile": "http://www.joshuakgoldberg.com"
20+
},
21+
{
22+
"login": "ljharb",
23+
"name": "Jordan Harband",
24+
"avatar_url": "https://avatars.githubusercontent.com/u/45469?v=4",
25+
"profile": "https://github.com/ljharb",
26+
"contributions": ["ideas", "bug"]
27+
},
28+
{
29+
"login": "sindresorhus",
30+
"name": "Sindre Sorhus",
31+
"avatar_url": "https://avatars.githubusercontent.com/u/170270?v=4",
32+
"profile": "https://sindresorhus.com/apps",
33+
"contributions": ["bug"]
34+
},
35+
{
36+
"login": "StyleShit",
37+
"name": "StyleShit",
38+
"avatar_url": "https://avatars.githubusercontent.com/u/32631382?v=4",
39+
"profile": "https://github.com/StyleShit",
40+
"contributions": ["code"]
41+
},
42+
{
43+
"login": "maggienegm",
44+
"name": "Maggie",
45+
"avatar_url": "https://avatars.githubusercontent.com/u/8771586?v=4",
46+
"profile": "https://github.com/maggienegm",
47+
"contributions": ["doc", "tool", "bug", "code", "ideas"]
48+
}
49+
],
50+
"contributorsSortAlphabetically": true,
51+
"projectName": "tidelift-me-up",
52+
"projectOwner": "JoshuaKGoldberg",
53+
"repoType": "github",
54+
"commitConvention": "angular"
7455
}
56+

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
Thanks for your interest in contributing to `tidelift-me-up`! 💖
3+
Thanks for your interest in contributing to `tidelift-me-up`! 💸
44

55
> After this page, see [DEVELOPMENT.md](./DEVELOPMENT.md) for local development instructions.
66
@@ -93,5 +93,5 @@ Please do ping the maintainer who merged your PR if that doesn't happen within 2
9393
## Emojis & Appreciation
9494

9595
If you made it all the way to the end, bravo dear user, we love you.
96-
Please include your favorite emoji in the bottom of your issues and PRs to signal to us that you did in fact read this file and are trying to conform to it as best as possible.
97-
💖 is a good starter if you're not sure which to use.
96+
Please include an emoji in the bottom of your issues and PRs to signal to us that you did in fact read this file and are trying to conform to it as best as possible.
97+
💸 is a good starter if you're not sure which to use.

.github/DEVELOPMENT.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
After [forking the repo from GitHub](https://help.github.com/articles/fork-a-repo) and [installing pnpm](https://pnpm.io/installation):
44

55
```shell
6-
git clone https://github.com/<your-name-here>/tidelift-me-up
6+
git clone https://github.com/(your-name-here)/tidelift-me-up
77
cd tidelift-me-up
88
pnpm install
99
```
@@ -25,6 +25,12 @@ Add `--watch` to run the builder in a watch mode that continuously cleans and re
2525
pnpm build --watch
2626
```
2727

28+
### Built App Debugging
29+
30+
This repository includes a [VS Code launch configuration](https://code.visualstudio.com/docs/editor/debugging) for debugging.
31+
To debug a `bin` app, add a breakpoint to your code, then run _Debug Program_ from the VS Code Debug panel (or press F5).
32+
VS Code will automatically run the `build` task in the background before running `bin/index.js`.
33+
2834
## Formatting
2935

3036
[Prettier](https://prettier.io) is used to format code.
@@ -55,6 +61,8 @@ For example, ESLint can be run with `--fix` to auto-fix some lint rule complaint
5561
pnpm run lint --fix
5662
```
5763

64+
Note that you'll need to run `pnpm build` before `pnpm lint` so that lint rules which check the file system can pick up on any built files.
65+
5866
## Testing
5967

6068
[Vitest](https://vitest.dev) is used for tests.

.github/ISSUE_TEMPLATE/01-bug.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ body:
2626
description: Any additional info you'd like to provide.
2727
label: Additional Info
2828
type: textarea
29+
2930
description: Report a bug trying to run the code
31+
3032
labels:
3133
- "type: bug"
34+
3235
name: 🐛 Bug
36+
3337
title: "🐛 Bug: <short description of the bug>"

.github/ISSUE_TEMPLATE/02-documentation.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
body:
22
- attributes:
33
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
4-
label: Bug Report Checklist
4+
label: Documentation Report Checklist
55
options:
66
- label: I have pulled the latest `main` branch of the repository.
77
required: true
@@ -18,8 +18,12 @@ body:
1818
description: Any additional info you'd like to provide.
1919
label: Additional Info
2020
type: textarea
21+
2122
description: Report a typo or missing area of documentation
23+
2224
labels:
2325
- "area: documentation"
26+
2427
name: 📝 Documentation
28+
2529
title: "📝 Documentation: <short description of the request>"

.github/ISSUE_TEMPLATE/03-feature.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
body:
22
- attributes:
33
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
4-
label: Bug Report Checklist
4+
label: Feature Request Checklist
55
options:
6-
- label: I have tried restarting my IDE and the issue persists.
7-
required: true
86
- label: I have pulled the latest `main` branch of the repository.
97
required: true
108
- label: I have [searched for related issues](https://github.com/JoshuaKGoldberg/tidelift-me-up/issues?q=is%3Aissue) and found none that matched my issue.
@@ -20,8 +18,12 @@ body:
2018
description: Any additional info you'd like to provide.
2119
label: Additional Info
2220
type: textarea
21+
2322
description: Request that a new feature be added or an existing feature improved
23+
2424
labels:
2525
- "type: feature"
26+
2627
name: 🚀 Feature
28+
2729
title: "🚀 Feature: <short description of the feature>"

.github/ISSUE_TEMPLATE/04-tooling.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
body:
22
- attributes:
33
description: If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
4-
label: Bug Report Checklist
4+
label: Tooling Report Checklist
55
options:
66
- label: I have tried restarting my IDE and the issue persists.
77
required: true
@@ -20,8 +20,12 @@ body:
2020
description: Any additional info you'd like to provide.
2121
label: Additional Info
2222
type: textarea
23+
2324
description: Report a bug or request an enhancement in repository tooling
25+
2426
labels:
2527
- "area: tooling"
28+
2629
name: 🛠 Tooling
30+
2731
title: "🛠 Tooling: <short description of the change>"

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- 👋 Hi, thanks for sending a PR to tidelift-me-up! 💖.
1+
<!-- 👋 Hi, thanks for sending a PR to tidelift-me-up! 💸
22
Please fill out all fields below and make sure each item is true and [x] checked.
33
Otherwise we may not be able to review your PR. -->
44

.github/actions/prepare/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
- uses: actions/setup-node@v4
99
with:
1010
cache: pnpm
11-
node-version: "18"
11+
node-version: 22.14.0
1212
- run: pnpm install --frozen-lockfile
1313
shell: bash
1414
using: composite
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
description: Runs create-typescript-app in transition mode
2+
3+
name: Transition
4+
5+
runs:
6+
steps:
7+
- uses: ./.github/actions/prepare
8+
- run: npx create-typescript-app
9+
shell: bash
10+
- id: auto-commit-action
11+
uses: stefanzweifel/git-auto-commit-action@v5
12+
with:
13+
commit_author: The Friendly Bingo Bot <[email protected]>
14+
commit_message: Check in changes from re-running npx create-typescript-app
15+
commit_user_email: [email protected]
16+
commit_user_name: The Friendly Bingo Bot
17+
- if: steps.auto-commit-action.outputs.changes_detected == 'true'
18+
uses: mshick/add-pr-comment@v2
19+
with:
20+
issue: ${{ github.event.pull_request.number }}
21+
message: |-
22+
🤖 Beep boop! I ran `npx create-typescript-app` and it updated some files.
23+
24+
I went ahead and checked those changes into this PR for you. Please review the latest commit to see if you want to merge it.
25+
26+
Cheers!
27+
— _The Friendly Bingo Bot_ 💝
28+
29+
> ℹ️ These automatic commits keep your repository up-to-date with new versions of [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app). If you want to opt out, delete your `.github/workflows/cta-transitions.yml` file.
30+
using: composite

0 commit comments

Comments
 (0)