Skip to content

Commit f1b814e

Browse files
build: onboarded to create-typescript-app (mostly) (#55)
Fixes #54. Adds all the tooling from that template, except: * Jest is still used for tests instead of Vitest to make that transition easier * Babel is used for building to go along with ☝️ (egoist/tsup#665) * The output directory stays as `dist/`, not the template's default `lib/` * https://github.com/JoshuaKGoldberg/sentences-per-line: as it conflicts with eslint-doc-generator Adds an explicit _"works with spaces"_ test alongside the existing _"works with tabs"_ now that the repo is switched to tabs.
1 parent f933c75 commit f1b814e

Some content is hidden

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

67 files changed

+11202
-4875
lines changed

.all-contributorsrc

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
{
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+
"login": "JoshuaKGoldberg",
8+
"name": "Josh Goldberg ✨",
9+
"avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4",
10+
"profile": "http://www.joshuakgoldberg.com/",
11+
"contributions": [
12+
"bug",
13+
"code",
14+
"doc",
15+
"ideas",
16+
"infra",
17+
"maintenance",
18+
"projectManagement",
19+
"tool"
20+
]
21+
},
22+
{
23+
"login": "dmnd",
24+
"name": "Desmond Brand",
25+
"avatar_url": "https://avatars.githubusercontent.com/u/4427?v=4",
26+
"profile": "https://synthesis.com/",
27+
"contributions": [
28+
"bug",
29+
"code",
30+
"doc",
31+
"ideas",
32+
"infra",
33+
"maintenance",
34+
"projectManagement",
35+
"tool"
36+
]
37+
},
38+
{
39+
"login": "G-Rath",
40+
"name": "Gareth Jones",
41+
"avatar_url": "https://avatars.githubusercontent.com/u/3151613?v=4",
42+
"profile": "https://github.com/G-Rath",
43+
"contributions": ["code", "bug"]
44+
},
45+
{
46+
"login": "jlarmstrongiv",
47+
"name": "John L. Armstrong IV",
48+
"avatar_url": "https://avatars.githubusercontent.com/u/20903247?v=4",
49+
"profile": "https://github.com/jlarmstrongiv",
50+
"contributions": ["bug"]
51+
},
52+
{
53+
"login": "cometkim",
54+
"name": "Hyeseong Kim",
55+
"avatar_url": "https://avatars.githubusercontent.com/u/9696352?v=4",
56+
"profile": "https://blog.cometkim.kr/",
57+
"contributions": ["tool", "infra"]
58+
},
59+
{
60+
"login": "adrianjost",
61+
"name": "Adrian Jost",
62+
"avatar_url": "https://avatars.githubusercontent.com/u/22987140?v=4",
63+
"profile": "https://adrianjost.dev/",
64+
"contributions": ["code"]
65+
},
66+
{
67+
"login": "Haroenv",
68+
"name": "Haroen Viaene",
69+
"avatar_url": "https://avatars.githubusercontent.com/u/6270048?v=4",
70+
"profile": "https://haroen.me/",
71+
"contributions": ["code", "maintenance"]
72+
},
73+
{
74+
"login": "phenomnomnominal",
75+
"name": "Craig Spence",
76+
"avatar_url": "https://avatars.githubusercontent.com/u/1086286?v=4",
77+
"profile": "https://github.com/phenomnomnominal",
78+
"contributions": ["code"]
79+
},
80+
{
81+
"login": "pratapvardhan",
82+
"name": "Pratap Vardhan",
83+
"avatar_url": "https://avatars.githubusercontent.com/u/3757165?v=4",
84+
"profile": "https://pratapvardhan.com/",
85+
"contributions": ["code"]
86+
},
87+
{
88+
"login": "bennypowers",
89+
"name": "Benny Powers - עם ישראל חי!",
90+
"avatar_url": "https://avatars.githubusercontent.com/u/1466420?v=4",
91+
"profile": "https://bennypowers.dev/",
92+
"contributions": ["tool"]
93+
},
94+
{
95+
"login": "d07RiV",
96+
"name": "d07riv",
97+
"avatar_url": "https://avatars.githubusercontent.com/u/3448203?v=4",
98+
"profile": "https://github.com/d07RiV",
99+
"contributions": ["bug"]
100+
},
101+
{
102+
"login": "lydell",
103+
"name": "Simon Lydell",
104+
"avatar_url": "https://avatars.githubusercontent.com/u/2142817?v=4",
105+
"profile": "https://github.com/lydell",
106+
"contributions": ["bug"]
107+
},
108+
{
109+
"login": "mizdra",
110+
"name": "mizdra",
111+
"avatar_url": "https://avatars.githubusercontent.com/u/9639995?v=4",
112+
"profile": "https://mizdra.net/",
113+
"contributions": ["code"]
114+
},
115+
{
116+
"login": "moll",
117+
"name": "Andri Möll",
118+
"avatar_url": "https://avatars.githubusercontent.com/u/156837?v=4",
119+
"profile": "https://m811.com/",
120+
"contributions": ["bug"]
121+
},
122+
{
123+
"login": "otakustay",
124+
"name": "Gray Zhang",
125+
"avatar_url": "https://avatars.githubusercontent.com/u/639549?v=4",
126+
"profile": "https://github.com/otakustay",
127+
"contributions": ["bug"]
128+
},
129+
{
130+
"login": "sirian",
131+
"name": "sirian",
132+
"avatar_url": "https://avatars.githubusercontent.com/u/897643?v=4",
133+
"profile": "https://github.com/sirian",
134+
"contributions": ["bug"]
135+
},
136+
{
137+
"login": "yinm",
138+
"name": "Yusuke Iinuma",
139+
"avatar_url": "https://avatars.githubusercontent.com/u/13295106?v=4",
140+
"profile": "https://github.com/yinm",
141+
"contributions": ["code"]
142+
},
143+
{
144+
"login": "yvele",
145+
"name": "Yves M.",
146+
"avatar_url": "https://avatars.githubusercontent.com/u/4225430?v=4",
147+
"profile": "https://github.com/yvele",
148+
"contributions": ["tool"]
149+
}
150+
],
151+
"contributorsPerLine": 7,
152+
"contributorsSortAlphabetically": true,
153+
"files": ["README.md"],
154+
"imageSize": 100,
155+
"projectName": "dedent",
156+
"projectOwner": "dmnd",
157+
"repoHost": "https://github.com",
158+
"repoType": "github"
159+
}
160+

.babelrc

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
{
2-
"env": {
3-
"legacy": {
4-
"plugins": [["add-module-exports", { "addDefaultProperty": true }]],
5-
"presets": [
6-
"@babel/preset-typescript",
7-
[
8-
"@babel/preset-env",
9-
{
10-
"modules": "commonjs",
11-
"targets": {
12-
"node": 10
13-
}
14-
}
15-
]
16-
]
17-
},
18-
"modern": {
19-
"presets": [
20-
"@babel/preset-typescript",
21-
[
22-
"@babel/preset-env",
23-
{
24-
"modules": false,
25-
"bugfixes": true,
26-
"targets": {
27-
"esmodules": true
28-
}
29-
}
30-
]
31-
]
32-
}
33-
},
34-
"presets": [
35-
"@babel/preset-typescript",
36-
[
37-
"@babel/preset-env",
38-
{
39-
"modules": "commonjs",
40-
"targets": {
41-
"node": "current"
42-
}
43-
}
44-
]
45-
]
2+
"env": {
3+
"legacy": {
4+
"plugins": [["add-module-exports", { "addDefaultProperty": true }]],
5+
"presets": [
6+
"@babel/preset-typescript",
7+
[
8+
"@babel/preset-env",
9+
{
10+
"modules": "commonjs",
11+
"targets": {
12+
"node": 10
13+
}
14+
}
15+
]
16+
]
17+
},
18+
"modern": {
19+
"presets": [
20+
"@babel/preset-typescript",
21+
[
22+
"@babel/preset-env",
23+
{
24+
"modules": false,
25+
"bugfixes": true,
26+
"targets": {
27+
"esmodules": true
28+
}
29+
}
30+
]
31+
]
32+
}
33+
},
34+
"presets": [
35+
"@babel/preset-typescript",
36+
[
37+
"@babel/preset-env",
38+
{
39+
"modules": "commonjs",
40+
"targets": {
41+
"node": "current"
42+
}
43+
}
44+
]
45+
]
4646
}

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dist/
2+
pnpm-lock.yaml
23

34
# https://github.com/dmnd/dedent/issues/52
45
macro.js

0 commit comments

Comments
 (0)