create-minimal-package 1.0.0 → 1.1.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 +4 -3
- package/package.json +2 -8
package/README.md
CHANGED
|
@@ -22,8 +22,7 @@ Zero-knowledge ***minimalistic*** template for creating a new npm package.
|
|
|
22
22
|
- [🧱Renovate](https://docs.renovatebot.com/): inherits [config:best-practices](https://docs.renovatebot.com/presets-config/#configbest-practices)
|
|
23
23
|
- [⚙TypeScript](https://www.typescriptlang.org/):`tsconfig.json`,`tsconfig.build.json`(w/o tests): inherits [@tsconfig/strictest](https://www.npmjs.com/package/@tsconfig/strictest): 4 lines for `☆`, [3 lines for ES types](https://youtu.be/H91aqUHn8sE?t=148)
|
|
24
24
|
- ✨️Formatting
|
|
25
|
-
- [🐶Husky](https://github.com/typicode/husky)
|
|
26
|
-
- [Lint Staged](https://github.com/okonet/lint-staged): calls ESLint
|
|
25
|
+
- [⚠️Pre-commit](https://pre-commit.com/) and [pre-commit.ci](https://pre-commit.ci/): from [browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template/tree/main/.github/ISSUE_TEMPLATE) + [mirrors-eslint](https://github.com/pre-commit/mirrors-eslint) instead of [🐶Husky](https://github.com/typicode/husky) + [Lint Staged](https://github.com/okonet/lint-staged)
|
|
27
26
|
- [ESLint](https://eslint.org/): inherits [@antfu/eslint-config](https://www.npmjs.com/package/@antfu/eslint-config)
|
|
28
27
|
- ⚠️ Testing
|
|
29
28
|
- [👢Jest](https://jestjs.io/): 2 lines for supporting Codecov and 2 lines for supporting Node.js `P`
|
|
@@ -53,7 +52,9 @@ Zero-knowledge ***minimalistic*** template for creating a new npm package.
|
|
|
53
52
|
```
|
|
54
53
|
3. Add `NPM_TOKEN` to `Settings/Secrets and variables/Actions/Repository secrets`.
|
|
55
54
|
4. Enable [Codecov GitHub App](https://github.com/apps/codecov) and add `CODECOV_TOKEN` to `Settings/Secrets and variables/Actions/Repository secrets`.
|
|
56
|
-
5.
|
|
55
|
+
5. 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).
|
|
56
|
+
6. Install [pre-commit](https://pre-commit.com/) using [`uv`](https://github.com/astral-sh/uv); `uv tool install pre-commit`.
|
|
57
|
+
7. Remove everything above `---`.
|
|
57
58
|
|
|
58
59
|
> 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.
|
|
59
60
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-minimal-package",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"description": "Minimalistic npm package template with 📦🚀semantic-release + Commitizen, CodeCov, Renovate, 🐶Husky + Lint Staged + EsLint, 👢Jest, 📖TypeDoc + Github Pages support. Note that this is a generated sample package.",
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"description": "Minimalistic npm package template with 📦🚀semantic-release + Commitizen, CodeCov, Renovate, 🐶Husky + pre-commit (✗Lint Staged + EsLint), 👢Jest, 📖TypeDoc + Github Pages support. Note that this is a generated sample package.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "34j"
|
|
8
8
|
},
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"build:watch": "tsc --watch --project tsconfig.build.json",
|
|
37
37
|
"build": "tsc --project tsconfig.build.json",
|
|
38
38
|
"lint": "eslint --fix",
|
|
39
|
-
"prepare": "husky",
|
|
40
39
|
"typedoc": "typedoc",
|
|
41
40
|
"typedoc:watch": "typedoc --watch",
|
|
42
41
|
"test:watch": "jest --watch",
|
|
@@ -54,9 +53,7 @@
|
|
|
54
53
|
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
55
54
|
"eslint": "^9.22.0",
|
|
56
55
|
"globals": "^16.0.0",
|
|
57
|
-
"husky": "^9.1.7",
|
|
58
56
|
"jest": "^29.7.0",
|
|
59
|
-
"lint-staged": "^15.4.3",
|
|
60
57
|
"npm-check-updates": "^17.1.15",
|
|
61
58
|
"npm-run-all2": "5.0.0",
|
|
62
59
|
"semantic-release": "^24.2.3",
|
|
@@ -64,9 +61,6 @@
|
|
|
64
61
|
"typedoc": "^0.27.9",
|
|
65
62
|
"typescript": "^5.8.2"
|
|
66
63
|
},
|
|
67
|
-
"lint-staged": {
|
|
68
|
-
"*": "eslint --fix"
|
|
69
|
-
},
|
|
70
64
|
"jest": {
|
|
71
65
|
"preset": "ts-jest",
|
|
72
66
|
"testEnvironment": "node",
|