Skip to content

Commit ffc2c30

Browse files
chore: bumped to create-typescript-app@2 (#686)
## PR Checklist - [x] Addresses an existing open issue: fixes #683 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/are-docs-informative/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/are-docs-informative/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Adds a `create-typescript-app.config.js` with the added block to give this repo a `cta.yml`, keeping it up-to-date with CTA over time. ℹ️
1 parent e879cdb commit ffc2c30

Some content is hidden

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

49 files changed

+2791
-2470
lines changed

.all-contributorsrc

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
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-
"doc",
11-
"infra"
12-
],
13-
"login": "JoshuaKGoldberg",
14-
"name": "Josh Goldberg",
15-
"profile": "http://www.joshuakgoldberg.com"
16-
}
17-
],
18-
"contributorsPerLine": 7,
19-
"contributorsSortAlphabetically": true,
20-
"files": [
21-
"README.md"
22-
],
23-
"imageSize": 100,
24-
"projectName": "are-docs-informative",
25-
"projectOwner": "JoshuaKGoldberg",
26-
"repoHost": "https://github.com",
27-
"repoType": "github",
28-
"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+
"doc",
9+
"infra",
10+
"code",
11+
"content",
12+
"ideas",
13+
"maintenance",
14+
"projectManagement"
15+
],
16+
"login": "JoshuaKGoldberg",
17+
"name": "Josh Goldberg",
18+
"profile": "http://www.joshuakgoldberg.com"
19+
}
20+
],
21+
"contributorsSortAlphabetically": true,
22+
"projectName": "are-docs-informative",
23+
"projectOwner": "JoshuaKGoldberg",
24+
"repoType": "github",
25+
"commitConvention": "angular"
2926
}
27+

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 154 deletions
This file was deleted.

.github/CONTRIBUTING.md

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

3-
Thanks for your interest in contributing to `are-docs-informative`! 💖
3+
Thanks for your interest in contributing to `are-docs-informative`! ℹ️
44

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

9595
If you made it all the way to the end, bravo dear user, we love you.
9696
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.
97+
is a good starter if you're not sure which to use.

.github/DEVELOPMENT.md

Lines changed: 3 additions & 2 deletions
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>/are-docs-informative
6+
git clone https://github.com/(your-name-here)/are-docs-informative
77
cd are-docs-informative
88
pnpm install
99
```
@@ -44,7 +44,6 @@ Each should be shown in VS Code, and can be run manually on the command-line:
4444
- `pnpm lint` ([ESLint](https://eslint.org) with [typescript-eslint](https://typescript-eslint.io)): Lints JavaScript and TypeScript source files
4545
- `pnpm lint:knip` ([knip](https://github.com/webpro/knip)): Detects unused files, dependencies, and code exports
4646
- `pnpm lint:md` ([Markdownlint](https://github.com/DavidAnson/markdownlint)): Checks Markdown source files
47-
- `pnpm lint:package-json` ([npm-package-json-lint](https://npmpackagejsonlint.org/)): Lints the `package.json` file
4847
- `pnpm lint:packages` ([pnpm dedupe --check](https://pnpm.io/cli/dedupe)): Checks for unnecessarily duplicated packages in the `pnpm-lock.yml` file
4948
- `pnpm lint:spelling` ([cspell](https://cspell.org)): Spell checks across all source files
5049

@@ -56,6 +55,8 @@ For example, ESLint can be run with `--fix` to auto-fix some lint rule complaint
5655
pnpm run lint --fix
5756
```
5857

58+
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.
59+
5960
## Testing
6061

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

.github/ISSUE_TEMPLATE/02-documentation.yml

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

.github/ISSUE_TEMPLATE/03-feature.yml

Lines changed: 1 addition & 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/are-docs-informative/issues?q=is%3Aissue) and found none that matched my issue.

.github/ISSUE_TEMPLATE/04-tooling.yml

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

.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 are-docs-informative! 💖.
1+
<!-- 👋 Hi, thanks for sending a PR to are-docs-informative! ℹ️️.
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ name: Prepare
44

55
runs:
66
steps:
7-
- uses: pnpm/action-setup@v2
7+
- uses: pnpm/action-setup@v4
88
- uses: actions/setup-node@v4
99
with:
1010
cache: pnpm
11-
node-version: "18"
11+
node-version: "20"
1212
- run: pnpm install --frozen-lockfile
1313
shell: bash
1414
using: composite

.github/actions/transition/action.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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: pnpx 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 `pnpx create-typescript-app` and it updated some
23+
files.
24+
25+
I went ahead and checked those changes into this PR for you. Please
26+
review the latest commit to see if you want to merge it.
27+
28+
Cheers!
29+
— _The Friendly Bingo Bot_ 💝
30+
31+
> ℹ️ These automatic commits keep your repository up-to-date with new
32+
versions of
33+
[create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).
34+
If you want to opt out, delete your
35+
`.github/workflows/cta-transitions.yml` file.
36+
using: composite

.github/renovate.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"automerge": true,
4-
"internalChecksFilter": "strict",
4+
"extends": [
5+
":preserveSemverRanges",
6+
"config:best-practices",
7+
"replacements:all"
8+
],
9+
"ignoreDeps": ["codecov/codecov-action"],
510
"labels": ["dependencies"],
6-
"minimumReleaseAge": "3 days",
11+
"minimumReleaseAge": "7 days",
12+
"patch": { "enabled": false },
13+
"pinDigests": false,
714
"postUpdateOptions": ["pnpmDedupe"]
815
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
jobs:
2+
accessibility_alt_text_bot:
3+
if: ${{ !endsWith(github.actor, '[bot]') }}
4+
runs-on: ubuntu-latest
5+
steps:
6+
- uses: github/[email protected]
7+
8+
name: Accessibility Alt Text Bot
9+
10+
on:
11+
issue_comment:
12+
types:
13+
- created
14+
- edited
15+
issues:
16+
types:
17+
- edited
18+
- opened
19+
pull_request:
20+
types:
21+
- edited
22+
- opened
23+
24+
permissions:
25+
issues: write
26+
pull-requests: write

0 commit comments

Comments
 (0)