react-ag-psd-psdtool 1.0.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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 34j
4
+ Copyright (c) 2023 Ryan Sonshine
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,117 @@
1
+ # react-ag-psd-psdtool
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
+ [![npm package][npm-img]][npm-url]
72
+ [![Build Status][build-img]][build-url]
73
+ [![Downloads][downloads-img]][downloads-url]
74
+ [![Issues][issues-img]][issues-url]
75
+ [![Code Coverage][codecov-img]][codecov-url]
76
+ [![Commitizen Friendly][commitizen-img]][commitizen-url]
77
+ [![Semantic Release][semantic-release-img]][semantic-release-url]
78
+
79
+ ---
80
+
81
+ **📘Documentation**: [https://34j.github.io/react-ag-psd-psdtool/](https://34j.github.io/react-ag-psd-psdtool/)
82
+
83
+ **📦️NPM Package**: [https://www.npmjs.com/package/react-ag-psd-psdtool](https://www.npmjs.com/package/react-ag-psd-psdtool)
84
+
85
+ ---
86
+
87
+ TODO: Project Description.
88
+
89
+ ## Installation
90
+
91
+ ```bash
92
+ npm install react-ag-psd-psdtool
93
+ ```
94
+
95
+ ## Usage
96
+
97
+ ```ts
98
+ import { myPackage } from 'react-ag-psd-psdtool'
99
+
100
+ myPackage('hello')
101
+ // => 'hello from my package'
102
+ ```
103
+
104
+ [build-img]:https://github.com/34j/react-ag-psd-psdtool/actions/workflows/release.yml/badge.svg
105
+ [build-url]:https://github.com/34j/react-ag-psd-psdtool/actions/workflows/release.yml
106
+ [downloads-img]:https://img.shields.io/npm/dt/react-ag-psd-psdtool
107
+ [downloads-url]:https://www.npmtrends.com/react-ag-psd-psdtool
108
+ [npm-img]:https://img.shields.io/npm/v/react-ag-psd-psdtool
109
+ [npm-url]:https://www.npmjs.com/package/react-ag-psd-psdtool
110
+ [issues-img]:https://img.shields.io/github/issues/34j/react-ag-psd-psdtool
111
+ [issues-url]:https://github.com/34j/react-ag-psd-psdtool/issues
112
+ [codecov-img]:https://codecov.io/gh/34j/react-ag-psd-psdtool/branch/main/graph/badge.svg
113
+ [codecov-url]:https://codecov.io/gh/34j/react-ag-psd-psdtool
114
+ [semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
115
+ [semantic-release-url]:https://github.com/semantic-release/semantic-release
116
+ [commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
117
+ [commitizen-url]:http://commitizen.github.io/cz-cli/
@@ -0,0 +1,9 @@
1
+ /**
2
+ @module
3
+ */
4
+ import { mySubmodule } from './submodule';
5
+ /**
6
+ * Lorem ipsum.
7
+ */
8
+ export declare const myPackage: (taco?: string) => string;
9
+ export { mySubmodule };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ @module
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.mySubmodule = exports.myPackage = void 0;
7
+ const submodule_1 = require("./submodule");
8
+ Object.defineProperty(exports, "mySubmodule", { enumerable: true, get: function () { return submodule_1.mySubmodule; } });
9
+ /**
10
+ * Lorem ipsum.
11
+ */
12
+ const myPackage = (taco = '') => `${taco} from my package`;
13
+ exports.myPackage = myPackage;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Lorem ipsum.
3
+ */
4
+ export declare const mySubmodule: (taco?: string) => string;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mySubmodule = void 0;
4
+ /**
5
+ * Lorem ipsum.
6
+ */
7
+ const mySubmodule = (taco = '') => `${taco} from my submodule`;
8
+ exports.mySubmodule = mySubmodule;
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "react-ag-psd-psdtool",
3
+ "type": "commonjs",
4
+ "version": "1.0.0",
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
+ "author": {
7
+ "name": "34j"
8
+ },
9
+ "license": "MIT",
10
+ "homepage": "https://github.com/34j/react-ag-psd-psdtool",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/34j/react-ag-psd-psdtool.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/34j/react-ag-psd-psdtool/issues"
17
+ },
18
+ "keywords": [
19
+ "boilerplate",
20
+ "template",
21
+ "typescript",
22
+ "vitest",
23
+ "pre-commit",
24
+ "semantic-release",
25
+ "typedoc"
26
+ ],
27
+ "main": "dist/src/index.js",
28
+ "types": "dist/src/index.d.ts",
29
+ "files": [
30
+ "dist/src/**/*"
31
+ ],
32
+ "scripts": {
33
+ "build:watch": "tsc --watch --project tsconfig.json",
34
+ "preinstall": "npx only-allow pnpm",
35
+ "build": "tsc --project tsconfig.json",
36
+ "lint": "eslint --fix",
37
+ "typedoc": "typedoc",
38
+ "typedoc:watch": "typedoc --watch",
39
+ "test:watch": "vitest --watch --coverage --coverage.include=src",
40
+ "test": "vitest --coverage --coverage.include=src",
41
+ "watch": "npm-run-all --race --parallel *:watch",
42
+ "update": "npm-check-updates -u"
43
+ },
44
+ "devDependencies": {
45
+ "@antfu/eslint-config": "5.3.0",
46
+ "@semantic-release/changelog": "6.0.3",
47
+ "@semantic-release/git": "10.0.1",
48
+ "@tsconfig/strictest": "2.0.5",
49
+ "@types/node": "22.18.1",
50
+ "@typescript-eslint/eslint-plugin": "8.43.0",
51
+ "@vitest/browser": "3.2.4",
52
+ "@vitest/coverage-v8": "3.2.4",
53
+ "eslint": "9.35.0",
54
+ "npm-run-all2": "8.0.4",
55
+ "playwright": "1.55.0",
56
+ "semantic-release": "24.2.8",
57
+ "typedoc": "0.28.12",
58
+ "typescript": "5.9.2",
59
+ "vitest": "3.2.4"
60
+ },
61
+ "typedocOptions": {
62
+ "entryPoints": [
63
+ "src"
64
+ ],
65
+ "tsconfig": "tsconfig.json",
66
+ "headings": false
67
+ },
68
+ "release": {
69
+ "plugins": [
70
+ "@semantic-release/commit-analyzer",
71
+ "@semantic-release/release-notes-generator",
72
+ "@semantic-release/changelog",
73
+ "@semantic-release/npm",
74
+ [
75
+ "@semantic-release/git",
76
+ {
77
+ "assets": [
78
+ "CHANGELOG.md",
79
+ "README.md",
80
+ "package.json",
81
+ "package-lock.json"
82
+ ]
83
+ }
84
+ ],
85
+ "@semantic-release/github"
86
+ ]
87
+ }
88
+ }