create-minimal-package 1.5.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -15
- package/package.json +15 -14
package/README.md
CHANGED
|
@@ -4,11 +4,9 @@ Zero-knowledge ***minimalistic*** template for creating a new npm package.
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**📘Docs Demo**: [https://34j.github.io/create-minimal-package/](https://34j.github.io/create-minimal-package/)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
**Source Code**: [https://github.com/34j/create-minimal-package](https://github.com/34j/create-minimal-package)
|
|
9
|
+
**📦️NPM Package Demo**: [https://www.npmjs.com/package/create-minimal-package](https://www.npmjs.com/package/create-minimal-package)
|
|
12
10
|
|
|
13
11
|
---
|
|
14
12
|
|
|
@@ -28,6 +26,7 @@ Zero-knowledge ***minimalistic*** template for creating a new npm package.
|
|
|
28
26
|
- [ESLint](https://eslint.org/): inherits [@antfu/eslint-config](https://www.npmjs.com/package/@antfu/eslint-config)
|
|
29
27
|
- 📦Packageing
|
|
30
28
|
- [pnpm](https://pnpm.io/) (⏪️npm)
|
|
29
|
+
- [🛡️Trusted Publishing](https://docs.npmjs.com/trusted-publishers)
|
|
31
30
|
- ⚠️ Testing
|
|
32
31
|
- [⚡️Vitest](https://vitest.dev/) (⏪️[👢Jest](https://jestjs.io/)): several lines for browser testing (optional, can be removed if Node.js only)
|
|
33
32
|
- 📖Documentation
|
|
@@ -44,8 +43,19 @@ Zero-knowledge ***minimalistic*** template for creating a new npm package.
|
|
|
44
43
|
|
|
45
44
|
</details>
|
|
46
45
|
|
|
47
|
-
## Quickstart
|
|
46
|
+
## Quickstart (Copier)
|
|
47
|
+
|
|
48
|
+
```shell
|
|
49
|
+
uvx copier copy --trust "gh:34j/create-minimal-package" --vcs-ref main my-cool-package
|
|
50
|
+
🎤 What is your project name?
|
|
51
|
+
my-cool-package
|
|
52
|
+
🎤 What is your GitHub username?
|
|
53
|
+
34j
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Quickstart (GitHub Template)
|
|
48
57
|
|
|
58
|
+
0. Run `npx setup-npm-trusted-publish my-cool-package` to reserve the package name and allow trusted publishing.
|
|
49
59
|
1. Click the "Use this template" button.
|
|
50
60
|
2. Replace `GITHUB_USER` and `REPO_NAME` using `sed`:
|
|
51
61
|
```bash
|
|
@@ -56,16 +66,18 @@ Zero-knowledge ***minimalistic*** template for creating a new npm package.
|
|
|
56
66
|
rm *.tmp
|
|
57
67
|
rm src/*.tmp
|
|
58
68
|
rm CHANGELOG.md
|
|
69
|
+
rm *.jinja
|
|
59
70
|
```
|
|
60
|
-
3. [
|
|
61
|
-
4. [
|
|
62
|
-
5.
|
|
63
|
-
6.
|
|
64
|
-
7. Enable Github Pages and set `Source` to `GitHub Actions` from [`Settings/Pages/Build and deployment`](https://github.com/34j/create-minimal-package/settings/pages)
|
|
65
|
-
8. Remove everything above `---`.
|
|
71
|
+
3. Install GitHub Apps, [pre-commit.ci **lite**](https://github.com/apps/pre-commit-ci-lite/installations/select_target) and [Codecov](https://github.com/apps/codecov/installations/select_target).
|
|
72
|
+
4. Install [pre-commit](https://pre-commit.com/) using [`uv`](https://github.com/astral-sh/uv) by `uv tool install pre-commit` and install hooks by `pre-commit install`.
|
|
73
|
+
5. Enable Github Pages and set `Source` to `GitHub Actions` from [`Settings/Pages/Build and deployment`](https://github.com/34j/create-minimal-package/settings/pages)
|
|
74
|
+
6. Remove everything above `---`.
|
|
66
75
|
|
|
67
76
|
> Inspired by [node-module-boilerplate](https://github.com/sindresorhus/node-module-boilerplate) and [typescript-npm-package-template](https://github.com/Atry/typescript-npm-package-template/tree/main), which is great but unnecessarily complex and poorly maintained.
|
|
68
77
|
|
|
78
|
+
- Enable [Token authentication for public repositories](https://docs.codecov.com/docs/codecov-tokens#uploading-without-a-token) to upload coverage reports without a token.
|
|
79
|
+
|
|
80
|
+
---
|
|
69
81
|
---
|
|
70
82
|
|
|
71
83
|
# create-minimal-package
|
|
@@ -80,11 +92,9 @@ Zero-knowledge ***minimalistic*** template for creating a new npm package.
|
|
|
80
92
|
|
|
81
93
|
---
|
|
82
94
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
**NPM Package**: [https://www.npmjs.com/package/create-minimal-package](https://www.npmjs.com/package/create-minimal-package)
|
|
95
|
+
**📘Documentation**: [https://34j.github.io/create-minimal-package/](https://34j.github.io/create-minimal-package/)
|
|
86
96
|
|
|
87
|
-
|
|
97
|
+
**📦️NPM Package**: [https://www.npmjs.com/package/create-minimal-package](https://www.npmjs.com/package/create-minimal-package)
|
|
88
98
|
|
|
89
99
|
---
|
|
90
100
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-minimal-package",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"description": "Minimalistic npm package template with 📦🚀semantic-release + Commitizen, CodeCov, Renovate, pre-commit + EsLint (✗🐶Husky + Lint Staged), ⚡️Vitest (✗👢Jest), 📖TypeDoc + Github Pages support. Note that this is a generated sample package.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "34j"
|
|
@@ -42,21 +42,22 @@
|
|
|
42
42
|
"update": "npm-check-updates -u"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@antfu/eslint-config": "
|
|
45
|
+
"@antfu/eslint-config": "6.1.0",
|
|
46
46
|
"@semantic-release/changelog": "6.0.3",
|
|
47
47
|
"@semantic-release/git": "10.0.1",
|
|
48
|
-
"@tsconfig/strictest": "2.0.
|
|
49
|
-
"@types/node": "
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
51
|
-
"@vitest/browser": "
|
|
52
|
-
"@vitest/
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
48
|
+
"@tsconfig/strictest": "2.0.6",
|
|
49
|
+
"@types/node": "24.9.1",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "8.46.2",
|
|
51
|
+
"@vitest/browser": "4.0.3",
|
|
52
|
+
"@vitest/browser-playwright": "4.0.3",
|
|
53
|
+
"@vitest/coverage-v8": "4.0.3",
|
|
54
|
+
"eslint": "9.38.0",
|
|
55
|
+
"npm-run-all2": "8.0.4",
|
|
56
|
+
"playwright": "1.56.1",
|
|
57
|
+
"semantic-release": "25.0.1",
|
|
58
|
+
"typedoc": "0.28.14",
|
|
59
|
+
"typescript": "5.9.3",
|
|
60
|
+
"vitest": "4.0.3"
|
|
60
61
|
},
|
|
61
62
|
"typedocOptions": {
|
|
62
63
|
"entryPoints": [
|