react-ag-psd-psdtool 1.0.0 → 1.0.1
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 +0 -68
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,73 +1,5 @@
|
|
|
1
1
|
# react-ag-psd-psdtool
|
|
2
2
|
|
|
3
|
-
Zero-knowledge ***minimalistic*** template for creating a new npm package.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
**📘Docs Demo**: [https://34j.github.io/react-ag-psd-psdtool/](https://34j.github.io/react-ag-psd-psdtool/)
|
|
8
|
-
|
|
9
|
-
**📦️NPM Package Demo**: [https://www.npmjs.com/package/react-ag-psd-psdtool](https://www.npmjs.com/package/react-ag-psd-psdtool)
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Features
|
|
14
|
-
|
|
15
|
-
- The **proof** that the config is ***minimalistic*** is shown below.
|
|
16
|
-
- The main reason (`☆`) of the slight complexity is the need to specify the project structure (`src`, `dist`, `test`).
|
|
17
|
-
|
|
18
|
-
- 👾Github
|
|
19
|
-
- [📦🚀semantic-release](https://github.com/semantic-release/semantic-release) & [Commitizen](https://github.com/search?q=commitizen): from [this article](https://zenn.dev/wakamsha/articles/learn-semantic-release)
|
|
20
|
-
- [New Issue Templates](https://github.com/34j/react-ag-psd-psdtool/tree/main/.github/ISSUE_TEMPLATE): from [browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template/tree/main/.github/ISSUE_TEMPLATE)
|
|
21
|
-
- [💨GitHub Actions](https://github.com/34j/react-ag-psd-psdtool/tree/main/.github/workflows) + [📊Codecov](https://about.codecov.io/): npm version of [browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template/blob/main/.github/workflows/ci.yml)
|
|
22
|
-
- [🧱Renovate](https://docs.renovatebot.com/): inherits [config:best-practices](https://docs.renovatebot.com/presets-config/#configbest-practices)
|
|
23
|
-
- [⚙TypeScript](https://www.typescriptlang.org/):`tsconfig.json`: 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
|
-
- ✨️Formatting
|
|
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) (⏪️[🐶Husky](https://github.com/typicode/husky) + [Lint Staged](https://github.com/okonet/lint-staged) for better CI support)
|
|
26
|
-
- [ESLint](https://eslint.org/): inherits [@antfu/eslint-config](https://www.npmjs.com/package/@antfu/eslint-config)
|
|
27
|
-
- 📦Packageing
|
|
28
|
-
- [pnpm](https://pnpm.io/) (⏪️npm)
|
|
29
|
-
- ⚠️ Testing
|
|
30
|
-
- [⚡️Vitest](https://vitest.dev/) (⏪️[👢Jest](https://jestjs.io/)): several lines for browser testing (optional, can be removed if Node.js only)
|
|
31
|
-
- 📖Documentation
|
|
32
|
-
- [🌐GitHub Pages](https://pages.github.com/)
|
|
33
|
-
- [📖TypeDoc](https://typedoc.org/): 2 lines for `☆` `P`
|
|
34
|
-
- ❄Nix Support (Optional, only needed for Nix users)
|
|
35
|
-
- [❄`nix develop --ignore-environment`](https://nix.dev/manual/nix/latest/command-ref/new-cli/nix3-develop): many lines for Playwright support (optional, can be removed if Node.js only)
|
|
36
|
-
|
|
37
|
-
<details>
|
|
38
|
-
<summary>Removed Features (to achieve minimalism)</summary>
|
|
39
|
-
|
|
40
|
-
- Removed Commitizen integration and VS Code stuff (from [ryansonshine/typescript-npm-package-template](https://github.com/ryansonshine/typescript-npm-package-template)) because it's not maintained and complex. Commitizen can be still used (Semantic Release supports it natively).
|
|
41
|
-
- Removed Prettier due to [@antfu/eslint-config's opinions](https://github.com/antfu/eslint-config?tab=readme-ov-file#prettier) and [mirrors-prettier](https://github.com/pre-commit/mirrors-prettier) being archived.
|
|
42
|
-
|
|
43
|
-
</details>
|
|
44
|
-
|
|
45
|
-
## Quickstart
|
|
46
|
-
|
|
47
|
-
1. Click the "Use this template" button.
|
|
48
|
-
2. Replace `GITHUB_USER` and `REPO_NAME` using `sed`:
|
|
49
|
-
```bash
|
|
50
|
-
GITHUB_USER="johnsmith"
|
|
51
|
-
REPO_NAME="my-cool-package"
|
|
52
|
-
sed -i.tmp "s/\([^@]\)34j/\1$GITHUB_USER/g; s/react-ag-psd-psdtool\|react-ag-psd-psdtool/$REPO_NAME/g;" package.json src/index.ts README.md
|
|
53
|
-
sed -i.tmp 's/"version": "[0-9.]*"/"version": "0.0.0"/' package.json
|
|
54
|
-
rm *.tmp
|
|
55
|
-
rm src/*.tmp
|
|
56
|
-
rm CHANGELOG.md
|
|
57
|
-
```
|
|
58
|
-
3. [Create](https://www.npmjs.com/settings/34j/tokens/) and add `NPM_TOKEN` to [`Settings/Secrets and variables/Actions/Repository secrets`](https://github.com/34j/react-ag-psd-psdtool/settings/secrets/actions).
|
|
59
|
-
4. [Create][codecov-url] and add `CODECOV_TOKEN` to [`Settings/Secrets and variables/Actions/Repository secrets`](https://github.com/34j/react-ag-psd-psdtool/settings/secrets/actions).
|
|
60
|
-
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).
|
|
61
|
-
6. 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`.
|
|
62
|
-
7. Enable Github Pages and set `Source` to `GitHub Actions` from [`Settings/Pages/Build and deployment`](https://github.com/34j/react-ag-psd-psdtool/settings/pages)
|
|
63
|
-
8. Remove everything above `---`.
|
|
64
|
-
|
|
65
|
-
> 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.
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
# react-ag-psd-psdtool
|
|
70
|
-
|
|
71
3
|
[![npm package][npm-img]][npm-url]
|
|
72
4
|
[![Build Status][build-img]][build-url]
|
|
73
5
|
[![Downloads][downloads-img]][downloads-url]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-ag-psd-psdtool",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
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"
|