@djblackeagle/dev-config-js 0.0.0-stage → 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/CHANGELOG.md +46 -0
- package/LICENSE.md +21 -0
- package/README.md +546 -2
- package/SECURITY.md +12 -0
- package/dist/cli/bin.d.ts +3 -0
- package/dist/cli/bin.d.ts.map +1 -0
- package/dist/cli/bin.js +4 -0
- package/dist/cli/bin.js.map +1 -0
- package/dist/cli/init.d.ts +30 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +171 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/commitlint/index.d.ts +20 -0
- package/dist/commitlint/index.d.ts.map +1 -0
- package/dist/commitlint/index.js +25 -0
- package/dist/commitlint/index.js.map +1 -0
- package/dist/eslint/angular.d.ts +9 -0
- package/dist/eslint/angular.d.ts.map +1 -0
- package/dist/eslint/angular.js +50 -0
- package/dist/eslint/angular.js.map +1 -0
- package/dist/eslint/base.d.ts +18 -0
- package/dist/eslint/base.d.ts.map +1 -0
- package/dist/eslint/base.js +183 -0
- package/dist/eslint/base.js.map +1 -0
- package/dist/eslint/css.d.ts +16 -0
- package/dist/eslint/css.d.ts.map +1 -0
- package/dist/eslint/css.js +28 -0
- package/dist/eslint/css.js.map +1 -0
- package/dist/eslint/index.d.ts +21 -0
- package/dist/eslint/index.d.ts.map +1 -0
- package/dist/eslint/index.js +46 -0
- package/dist/eslint/index.js.map +1 -0
- package/dist/eslint/json.d.ts +19 -0
- package/dist/eslint/json.d.ts.map +1 -0
- package/dist/eslint/json.js +56 -0
- package/dist/eslint/json.js.map +1 -0
- package/dist/eslint/markdown.d.ts +19 -0
- package/dist/eslint/markdown.d.ts.map +1 -0
- package/dist/eslint/markdown.js +45 -0
- package/dist/eslint/markdown.js.map +1 -0
- package/dist/eslint/nestjs.d.ts +5 -0
- package/dist/eslint/nestjs.d.ts.map +1 -0
- package/dist/eslint/nestjs.js +19 -0
- package/dist/eslint/nestjs.js.map +1 -0
- package/dist/eslint/package-json.d.ts +16 -0
- package/dist/eslint/package-json.d.ts.map +1 -0
- package/dist/eslint/package-json.js +22 -0
- package/dist/eslint/package-json.js.map +1 -0
- package/dist/eslint/prettier.d.ts +5 -0
- package/dist/eslint/prettier.d.ts.map +1 -0
- package/dist/eslint/prettier.js +5 -0
- package/dist/eslint/prettier.js.map +1 -0
- package/dist/eslint/vitest.d.ts +6 -0
- package/dist/eslint/vitest.d.ts.map +1 -0
- package/dist/eslint/vitest.js +19 -0
- package/dist/eslint/vitest.js.map +1 -0
- package/dist/eslint/yaml.d.ts +17 -0
- package/dist/eslint/yaml.d.ts.map +1 -0
- package/dist/eslint/yaml.js +36 -0
- package/dist/eslint/yaml.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/lint-staged/index.d.ts +13 -0
- package/dist/lint-staged/index.d.ts.map +1 -0
- package/dist/lint-staged/index.js +20 -0
- package/dist/lint-staged/index.js.map +1 -0
- package/dist/markdownlint/index.jsonc +14 -0
- package/dist/prettier/index.d.ts +5 -0
- package/dist/prettier/index.d.ts.map +1 -0
- package/dist/prettier/index.js +22 -0
- package/dist/prettier/index.js.map +1 -0
- package/dist/tsconfig/angular.json +20 -0
- package/dist/tsconfig/base.json +29 -0
- package/dist/tsconfig/library.json +11 -0
- package/dist/tsconfig/nestjs.json +17 -0
- package/dist/vitest/base.d.ts +8 -0
- package/dist/vitest/base.d.ts.map +1 -0
- package/dist/vitest/base.js +39 -0
- package/dist/vitest/base.js.map +1 -0
- package/dist/vitest/index.d.ts +10 -0
- package/dist/vitest/index.d.ts.map +1 -0
- package/dist/vitest/index.js +9 -0
- package/dist/vitest/index.js.map +1 -0
- package/dist/vitest/nestjs.d.ts +7 -0
- package/dist/vitest/nestjs.d.ts.map +1 -0
- package/dist/vitest/nestjs.js +26 -0
- package/dist/vitest/nestjs.js.map +1 -0
- package/package.json +153 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.0.1](https://github.com/DJBlackEagle/dev-code-js/compare/1.0.0...1.0.1) (2026-11-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **eslint,cli:** verify init CLI in smoke test and fix scaffolded config checks ([#127](https://github.com/DJBlackEagle/dev-code-js/issues/127)) ([a707230](https://github.com/DJBlackEagle/dev-code-js/commit/a707230b1cb89a238042303e4253347895517db6)), closes [#123](https://github.com/DJBlackEagle/dev-code-js/issues/123)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Documentation
|
|
12
|
+
|
|
13
|
+
* **readme:** document @types/node requirement or types override for tsconfig presets ([#118](https://github.com/DJBlackEagle/dev-code-js/issues/118)) ([fc08b91](https://github.com/DJBlackEagle/dev-code-js/commit/fc08b91fc1a796ef923f597b2840a936bf8c30be)), closes [#114](https://github.com/DJBlackEagle/dev-code-js/issues/114)
|
|
14
|
+
* **readme:** update ESLint version label to ESLint 10+ in exports overview ([#126](https://github.com/DJBlackEagle/dev-code-js/issues/126)) ([8e12840](https://github.com/DJBlackEagle/dev-code-js/commit/8e12840b8fa071de9b27e20b6cc8000762e61a25)), closes [#122](https://github.com/DJBlackEagle/dev-code-js/issues/122)
|
|
15
|
+
|
|
16
|
+
## 1.0.0 (2026-11-16)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- **build,ci:** verify package exports and dist artifacts with publint ([#102](https://github.com/DJBlackEagle/dev-code-js/issues/102)) ([bde3fca](https://github.com/DJBlackEagle/dev-code-js/commit/bde3fcafbb7ab97198f18fcbd2fdbe57a3944bca)), closes [#77](https://github.com/DJBlackEagle/dev-code-js/issues/77)
|
|
21
|
+
- **build,ci:** verify TypeScript module resolution with arethetypeswrong ([#103](https://github.com/DJBlackEagle/dev-code-js/issues/103)) ([e4601b3](https://github.com/DJBlackEagle/dev-code-js/commit/e4601b3ac0ad937fedf4fcd9b7e1e3f453ff7c09)), closes [#80](https://github.com/DJBlackEagle/dev-code-js/issues/80)
|
|
22
|
+
- **cli:** add init CLI to scaffold stack configurations ([#105](https://github.com/DJBlackEagle/dev-code-js/issues/105)) ([0ece3d3](https://github.com/DJBlackEagle/dev-code-js/commit/0ece3d394786640981b3ad417745a7e2ce1e3e55)), closes [#82](https://github.com/DJBlackEagle/dev-code-js/issues/82)
|
|
23
|
+
- **commitlint:** add shared Commitlint Conventional Commits preset ([#28](https://github.com/DJBlackEagle/dev-code-js/issues/28)) ([24e34b7](https://github.com/DJBlackEagle/dev-code-js/commit/24e34b7113582308ccc5623359f8e3ab61f467af)), closes [#7](https://github.com/DJBlackEagle/dev-code-js/issues/7)
|
|
24
|
+
- **commitlint:** increase body and footer max line length to 200 ([#42](https://github.com/DJBlackEagle/dev-code-js/issues/42)) ([b105e8d](https://github.com/DJBlackEagle/dev-code-js/commit/b105e8d572fbfea5d91a53b9a07d033596c5758c)), closes [#41](https://github.com/DJBlackEagle/dev-code-js/issues/41)
|
|
25
|
+
- **eslint:** add CSS linting support to Angular preset via @eslint/css ([#100](https://github.com/DJBlackEagle/dev-code-js/issues/100)) ([9c6c4bd](https://github.com/DJBlackEagle/dev-code-js/commit/9c6c4bdae0a5bee6c953132eb071cb7522abaeea)), closes [#75](https://github.com/DJBlackEagle/dev-code-js/issues/75)
|
|
26
|
+
- **eslint:** add JS/TS best-practice rules, naming conventions, and ignore generated files ([#101](https://github.com/DJBlackEagle/dev-code-js/issues/101)) ([3b811b3](https://github.com/DJBlackEagle/dev-code-js/commit/3b811b3a39a96a398c5b91336e7e0d99a2258205)), closes [#76](https://github.com/DJBlackEagle/dev-code-js/issues/76)
|
|
27
|
+
- **eslint:** add JSON and JSONC linting support via @eslint/json ([#89](https://github.com/DJBlackEagle/dev-code-js/issues/89)) ([b175cba](https://github.com/DJBlackEagle/dev-code-js/commit/b175cba5440b20b1608c39233cebfd418c230af1)), closes [#68](https://github.com/DJBlackEagle/dev-code-js/issues/68)
|
|
28
|
+
- **eslint:** add Markdown code-block linting via @eslint/markdown ([#93](https://github.com/DJBlackEagle/dev-code-js/issues/93)) ([bfa1ba0](https://github.com/DJBlackEagle/dev-code-js/commit/bfa1ba0f61218c82a01e4c23de7cf5f0aefb8263)), closes [#70](https://github.com/DJBlackEagle/dev-code-js/issues/70)
|
|
29
|
+
- **eslint:** add modular ESLint Flat Config presets ([#25](https://github.com/DJBlackEagle/dev-code-js/issues/25)) ([6e3e6d2](https://github.com/DJBlackEagle/dev-code-js/commit/6e3e6d270f4606080a2e2ddde266da989cf730bf))
|
|
30
|
+
- **eslint:** add Node.js ESM and import hygiene linting rules ([#98](https://github.com/DJBlackEagle/dev-code-js/issues/98)) ([93e5669](https://github.com/DJBlackEagle/dev-code-js/commit/93e5669b7aeb4147179ed5befe8b92e544412dfd)), closes [#73](https://github.com/DJBlackEagle/dev-code-js/issues/73)
|
|
31
|
+
- **eslint:** add package.json linting via eslint-plugin-package-json ([#97](https://github.com/DJBlackEagle/dev-code-js/issues/97)) ([4e34937](https://github.com/DJBlackEagle/dev-code-js/commit/4e3493722469438b14119c265d863534c82bf3a3)), closes [#72](https://github.com/DJBlackEagle/dev-code-js/issues/72)
|
|
32
|
+
- **eslint:** add YAML linting support via eslint-plugin-yml ([#92](https://github.com/DJBlackEagle/dev-code-js/issues/92)) ([986d81c](https://github.com/DJBlackEagle/dev-code-js/commit/986d81c13c114bbb8c79cd21cfe72022cbe5ec88)), closes [#69](https://github.com/DJBlackEagle/dev-code-js/issues/69)
|
|
33
|
+
- **eslint:** enforce clean eslint-disable comments and unused directive reporting ([#99](https://github.com/DJBlackEagle/dev-code-js/issues/99)) ([8b94206](https://github.com/DJBlackEagle/dev-code-js/commit/8b94206e04217683e5d87f82ed268c6df109a40f)), closes [#74](https://github.com/DJBlackEagle/dev-code-js/issues/74)
|
|
34
|
+
- initialize project structure with developer tooling and configuration files ([#1](https://github.com/DJBlackEagle/dev-code-js/issues/1)) ([6e389bb](https://github.com/DJBlackEagle/dev-code-js/commit/6e389bbba4b97df253543138b4efec28fe880add))
|
|
35
|
+
- **lint-staged:** add shared lint-staged pre-commit configuration preset ([#29](https://github.com/DJBlackEagle/dev-code-js/issues/29)) ([122dc6a](https://github.com/DJBlackEagle/dev-code-js/commit/122dc6afed8a1840b01c0319c4d4cc83b5f2a91a)), closes [#8](https://github.com/DJBlackEagle/dev-code-js/issues/8)
|
|
36
|
+
- **lint-staged:** include ESLint checks for JSON, JSONC, YAML, and Markdown files ([#96](https://github.com/DJBlackEagle/dev-code-js/issues/96)) ([75909c9](https://github.com/DJBlackEagle/dev-code-js/commit/75909c9cd6fc76a76ed73e04037e95a421e54f47)), closes [#71](https://github.com/DJBlackEagle/dev-code-js/issues/71)
|
|
37
|
+
- **markdownlint:** add shared markdownlint-cli2 configuration preset ([#26](https://github.com/DJBlackEagle/dev-code-js/issues/26)) ([3fd129e](https://github.com/DJBlackEagle/dev-code-js/commit/3fd129eed6c7c161e0234eeac51c29aab0ce2a67)), closes [#5](https://github.com/DJBlackEagle/dev-code-js/issues/5)
|
|
38
|
+
- **prettier:** add shared Prettier configuration preset ([#24](https://github.com/DJBlackEagle/dev-code-js/issues/24)) ([020a162](https://github.com/DJBlackEagle/dev-code-js/commit/020a162397e8ce94ecfa7addfb8728763e794679)), closes [#3](https://github.com/DJBlackEagle/dev-code-js/issues/3)
|
|
39
|
+
- **test,ci:** add packed consumer smoke test for dist artifacts and presets ([#104](https://github.com/DJBlackEagle/dev-code-js/issues/104)) ([1f47d53](https://github.com/DJBlackEagle/dev-code-js/commit/1f47d53b56a316fb0021395f9e3077aff43cdc2e)), closes [#83](https://github.com/DJBlackEagle/dev-code-js/issues/83)
|
|
40
|
+
- **tsconfig:** add modular TypeScript configuration presets ([#23](https://github.com/DJBlackEagle/dev-code-js/issues/23)) ([856c088](https://github.com/DJBlackEagle/dev-code-js/commit/856c0880d74be787e6565a9d00f07ac7b72e0085)), closes [#2](https://github.com/DJBlackEagle/dev-code-js/issues/2)
|
|
41
|
+
- **vitest:** add modular Vitest configuration presets (base, nestjs) ([#27](https://github.com/DJBlackEagle/dev-code-js/issues/27)) ([e7e1960](https://github.com/DJBlackEagle/dev-code-js/commit/e7e19609ddf1dd2773989f3b4d5266a0e1c8d613)), closes [#6](https://github.com/DJBlackEagle/dev-code-js/issues/6)
|
|
42
|
+
|
|
43
|
+
### Documentation
|
|
44
|
+
|
|
45
|
+
- complete end-to-end stack integration guides and final package verification ([#31](https://github.com/DJBlackEagle/dev-code-js/issues/31)) ([56db84c](https://github.com/DJBlackEagle/dev-code-js/commit/56db84c77b780d98865e5818d18684f5b14b7ca8)), closes [#10](https://github.com/DJBlackEagle/dev-code-js/issues/10)
|
|
46
|
+
- **readme:** add Dependabot Updates status badge ([#32](https://github.com/DJBlackEagle/dev-code-js/issues/32)) ([b655a8b](https://github.com/DJBlackEagle/dev-code-js/commit/b655a8b7da2b2d9f34bc3f92c1131f42166a8524))
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DJ BlackEagle
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,547 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Welcome to @djblackeagle/dev-config-js <!-- omit in toc -->
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[][REF_INTERN_URL_NPMJS_PACKAGE]
|
|
4
|
+
[][REF_INTERN_URL_NPMJS_PACKAGE]
|
|
5
|
+
[][REF_INTERN_FILE_MD_LICENSE]
|
|
6
|
+
[][REF_INTERN_URL_WORKFLOW_CODEQL]
|
|
7
|
+
[][REF_INTERN_URL_WORKFLOW_CQAT]
|
|
8
|
+
[][REF_INTERN_URL_WORKFLOW_RELEASE]
|
|
9
|
+
[][REF_INTERN_URL_WORKFLOW_DEPENDABOT]
|
|
10
|
+
[][REF_INTERN_FILE_MD_README]
|
|
11
|
+
|
|
12
|
+
Centralized, modular TypeScript, ESLint (Flat Config), Prettier, Markdownlint, Vitest, and Git tooling configuration
|
|
13
|
+
for Node.js, NestJS, and Angular projects.
|
|
14
|
+
|
|
15
|
+
## Table of Contents <!-- omit in toc -->
|
|
16
|
+
|
|
17
|
+
- [Benefits](#benefits)
|
|
18
|
+
- [Package Exports Overview](#package-exports-overview)
|
|
19
|
+
- [Getting Started](#getting-started)
|
|
20
|
+
- [TypeScript (`tsconfig`) Presets](#typescript-tsconfig-presets)
|
|
21
|
+
- [Prettier Preset](#prettier-preset)
|
|
22
|
+
- [ESLint Flat Config Presets](#eslint-flat-config-presets)
|
|
23
|
+
- [Markdownlint Preset](#markdownlint-preset)
|
|
24
|
+
- [Vitest Presets](#vitest-presets)
|
|
25
|
+
- [Commitlint Preset](#commitlint-preset)
|
|
26
|
+
- [Lint-Staged Preset](#lint-staged-preset)
|
|
27
|
+
- [End-to-End Stack Integration Guides](#end-to-end-stack-integration-guides)
|
|
28
|
+
- [1. Shared TypeScript Library (Node.js / Universal)](#1-shared-typescript-library-nodejs--universal)
|
|
29
|
+
- [2. NestJS Backend Service](#2-nestjs-backend-service)
|
|
30
|
+
- [3. Angular Frontend Application](#3-angular-frontend-application)
|
|
31
|
+
- [Contributing](#contributing)
|
|
32
|
+
- [Code of Conduct](#code-of-conduct)
|
|
33
|
+
- [Security](#security)
|
|
34
|
+
- [License](#license)
|
|
35
|
+
- [Additional Resources](#additional-resources)
|
|
36
|
+
|
|
37
|
+
## Benefits
|
|
38
|
+
|
|
39
|
+
Using `@djblackeagle/dev-config-js` offers several advantages for your projects:
|
|
40
|
+
|
|
41
|
+
- **Single Source of Truth:** Unified configuration presets for TypeScript, ESLint, Prettier, Vitest, Markdownlint,
|
|
42
|
+
Commitlint, and Lint-Staged across all repositories.
|
|
43
|
+
- **Modern ESM & Flat Config Architecture:** Built natively as an ECMAScript Module (`"type": "module"`) using the
|
|
44
|
+
modern ESLint Flat Config system.
|
|
45
|
+
- **Modular & Composable:** Dedicated presets tailored for Shared TypeScript Libraries, NestJS Backends, and Angular
|
|
46
|
+
Frontends.
|
|
47
|
+
|
|
48
|
+
## Package Exports Overview
|
|
49
|
+
|
|
50
|
+
| Export Path | Target Tool | Description |
|
|
51
|
+
| :-------------------------------------------------- | :---------------- | :------------------------------------------------------------------------------- |
|
|
52
|
+
| `@djblackeagle/dev-config-js` | Central API | Re-exports all JavaScript/TypeScript presets, factories, and types |
|
|
53
|
+
| `@djblackeagle/dev-config-js/tsconfig/base.json` | TypeScript | Strict ES2023 / NodeNext base compiler configuration |
|
|
54
|
+
| `@djblackeagle/dev-config-js/tsconfig/library.json` | TypeScript | Shared TypeScript library preset (`declaration`, `sourceMap`) |
|
|
55
|
+
| `@djblackeagle/dev-config-js/tsconfig/nestjs.json` | TypeScript | NestJS backend preset (`experimentalDecorators`, `emitDecoratorMetadata`) |
|
|
56
|
+
| `@djblackeagle/dev-config-js/tsconfig/angular.json` | TypeScript | Angular frontend preset (`bundler` resolution, `angularCompilerOptions`) |
|
|
57
|
+
| `@djblackeagle/dev-config-js/prettier` | Prettier | Shared Prettier configuration (`singleQuote`, `printWidth: 100`, JSONC override) |
|
|
58
|
+
| `@djblackeagle/dev-config-js/eslint` | ESLint 10+ | Stack presets (`presets.library`, `presets.nestjs`, `presets.angular`) & blocks |
|
|
59
|
+
| `@djblackeagle/dev-config-js/markdownlint` | markdownlint-cli2 | Shared Markdownlint ruleset (`MD013` 120 chars, standard ignores) |
|
|
60
|
+
| `@djblackeagle/dev-config-js/vitest` | Vitest | Base Node.js / library test & V8 coverage preset (`vitestBaseConfig`) |
|
|
61
|
+
| `@djblackeagle/dev-config-js/vitest/nestjs` | Vitest | NestJS test & V8 coverage preset (`vitestNestjsConfig`) |
|
|
62
|
+
| `@djblackeagle/dev-config-js/commitlint` | Commitlint | Conventional Commits preset (`commitlintConfig`, `createCommitlintConfig`) |
|
|
63
|
+
| `@djblackeagle/dev-config-js/lint-staged` | lint-staged | Pre-commit staged files preset (`lintStagedConfig`, `createLintStagedConfig`) |
|
|
64
|
+
|
|
65
|
+
## Getting Started
|
|
66
|
+
|
|
67
|
+
This section will guide you through setting up and configuring `@djblackeagle/dev-config-js`
|
|
68
|
+
in your project.
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
pnpm add -D @djblackeagle/dev-config-js
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
To scaffold the matching configuration files automatically for your stack (`library`, `nestjs`, or `angular`), run:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
pnpm dlx @djblackeagle/dev-config-js init --stack library
|
|
78
|
+
# or: npx @djblackeagle/dev-config-js init --stack nestjs
|
|
79
|
+
# add --force to overwrite existing configuration files
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### TypeScript (`tsconfig`) Presets
|
|
83
|
+
|
|
84
|
+
Extend one of the modular TypeScript presets in your project's `tsconfig.json`:
|
|
85
|
+
|
|
86
|
+
- **Shared Library (`@djblackeagle/dev-config-js/tsconfig/library.json`):**
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
91
|
+
"extends": "@djblackeagle/dev-config-js/tsconfig/library.json",
|
|
92
|
+
"compilerOptions": {
|
|
93
|
+
"outDir": "./dist",
|
|
94
|
+
"rootDir": "./src"
|
|
95
|
+
},
|
|
96
|
+
"include": ["src/**/*"]
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
- **NestJS Backend (`@djblackeagle/dev-config-js/tsconfig/nestjs.json`):**
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
105
|
+
"extends": "@djblackeagle/dev-config-js/tsconfig/nestjs.json",
|
|
106
|
+
"compilerOptions": {
|
|
107
|
+
"outDir": "./dist",
|
|
108
|
+
"baseUrl": "./"
|
|
109
|
+
},
|
|
110
|
+
"include": ["src/**/*"]
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
- **Angular Frontend (`@djblackeagle/dev-config-js/tsconfig/angular.json`):**
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
119
|
+
"extends": "@djblackeagle/dev-config-js/tsconfig/angular.json"
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
- **Base Configuration (`@djblackeagle/dev-config-js/tsconfig/base.json`):**
|
|
124
|
+
|
|
125
|
+
```json
|
|
126
|
+
{
|
|
127
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
128
|
+
"extends": "@djblackeagle/dev-config-js/tsconfig/base.json"
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
> [!NOTE]
|
|
133
|
+
> `base.json` (and therefore `library.json` and `nestjs.json`) sets `"types": ["node"]`. Install `@types/node` as a
|
|
134
|
+
> `devDependency` (`pnpm add -D @types/node`), or override `"types": []` in your `tsconfig.json` for pure
|
|
135
|
+
> browser/universal libraries to avoid `TS2688: Cannot find type definition file for 'node'`.
|
|
136
|
+
|
|
137
|
+
### Prettier Preset
|
|
138
|
+
|
|
139
|
+
Reference the shared Prettier preset directly in your `package.json`:
|
|
140
|
+
|
|
141
|
+
```json
|
|
142
|
+
{
|
|
143
|
+
"prettier": "@djblackeagle/dev-config-js/prettier"
|
|
144
|
+
}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Or import and extend it in `prettier.config.js` to customize options:
|
|
148
|
+
|
|
149
|
+
```js
|
|
150
|
+
import prettierConfig from '@djblackeagle/dev-config-js/prettier';
|
|
151
|
+
|
|
152
|
+
export default {
|
|
153
|
+
...prettierConfig,
|
|
154
|
+
};
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### ESLint Flat Config Presets
|
|
158
|
+
|
|
159
|
+
Use one of the pre-assembled stack presets (`presets.library`, `presets.nestjs`, `presets.angular`) in your project's
|
|
160
|
+
`eslint.config.js`. All presets build on `baseConfig` (which ignores `dist/**`, `node_modules/**`, `coverage/**`,
|
|
161
|
+
`*.d.ts`, `.tmp/**`, and `**/generated/**` by default, and enforces Prettier-compatible JS/TS best-practice rules and
|
|
162
|
+
strict `@typescript-eslint/naming-convention` rules):
|
|
163
|
+
|
|
164
|
+
- **Shared TypeScript Library:**
|
|
165
|
+
|
|
166
|
+
```js
|
|
167
|
+
import { presets } from '@djblackeagle/dev-config-js/eslint';
|
|
168
|
+
|
|
169
|
+
export default [...presets.library];
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
- **NestJS Backend:**
|
|
173
|
+
|
|
174
|
+
```js
|
|
175
|
+
import { presets } from '@djblackeagle/dev-config-js/eslint';
|
|
176
|
+
|
|
177
|
+
export default [...presets.nestjs];
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
- **Angular Frontend:**
|
|
181
|
+
|
|
182
|
+
```js
|
|
183
|
+
import { presets } from '@djblackeagle/dev-config-js/eslint';
|
|
184
|
+
|
|
185
|
+
export default [...presets.angular];
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
- **Custom Composition (Individual Building Blocks):**
|
|
189
|
+
|
|
190
|
+
```js
|
|
191
|
+
import {
|
|
192
|
+
createBaseConfig,
|
|
193
|
+
jsonConfig,
|
|
194
|
+
markdownEslintConfig,
|
|
195
|
+
nestjsConfig,
|
|
196
|
+
packageJsonConfig,
|
|
197
|
+
prettierEslintConfig,
|
|
198
|
+
vitestConfig,
|
|
199
|
+
yamlConfig,
|
|
200
|
+
} from '@djblackeagle/dev-config-js/eslint';
|
|
201
|
+
|
|
202
|
+
export default [
|
|
203
|
+
...createBaseConfig({
|
|
204
|
+
project: ['./tsconfig.eslint.json'],
|
|
205
|
+
tsconfigRootDir: import.meta.dirname,
|
|
206
|
+
}),
|
|
207
|
+
...jsonConfig,
|
|
208
|
+
...packageJsonConfig,
|
|
209
|
+
...yamlConfig,
|
|
210
|
+
...markdownEslintConfig,
|
|
211
|
+
...nestjsConfig,
|
|
212
|
+
...vitestConfig,
|
|
213
|
+
...prettierEslintConfig,
|
|
214
|
+
];
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
_(Note: `eslintPresets.library`, `eslintPresets.nestjs`, and `eslintPresets.angular` already include `jsonConfig` for
|
|
218
|
+
`*.json`/`*.jsonc` linting via `@eslint/json`, `packageJsonConfig` for `package.json` validation via
|
|
219
|
+
`eslint-plugin-package-json`, `yamlConfig` for `*.yml`/`*.yaml` linting via `eslint-plugin-yml`, and
|
|
220
|
+
`markdownEslintConfig` for fenced code-block linting in `*.md` via `@eslint/markdown`. `eslintPresets.angular`
|
|
221
|
+
additionally includes `cssConfig` for `*.css` linting via `@eslint/css`.)_
|
|
222
|
+
|
|
223
|
+
### Markdownlint Preset
|
|
224
|
+
|
|
225
|
+
Run `markdownlint-cli2` with the shared configuration preset (`@djblackeagle/dev-config-js/markdownlint`):
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
pnpm exec markdownlint-cli2 --config node_modules/@djblackeagle/dev-config-js/dist/markdownlint/index.jsonc
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Or extend/copy the preset in your project's `.markdownlint-cli2.jsonc`:
|
|
232
|
+
|
|
233
|
+
```jsonc
|
|
234
|
+
{
|
|
235
|
+
"config": {
|
|
236
|
+
"default": true,
|
|
237
|
+
"MD013": {
|
|
238
|
+
"line_length": 120,
|
|
239
|
+
"tables": false,
|
|
240
|
+
"code_blocks": false,
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
"globs": ["**/*.md"],
|
|
244
|
+
"ignores": ["**/node_modules/**", "**/dist/**", "**/coverage/**", "**/.tmp/**"],
|
|
245
|
+
}
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Vitest Presets
|
|
249
|
+
|
|
250
|
+
Use the modular Vitest presets in your project's `vitest.config.ts`:
|
|
251
|
+
|
|
252
|
+
- **Shared TypeScript Library / Node.js (`@djblackeagle/dev-config-js/vitest`):**
|
|
253
|
+
|
|
254
|
+
```ts
|
|
255
|
+
import { vitestBaseConfig } from '@djblackeagle/dev-config-js/vitest';
|
|
256
|
+
|
|
257
|
+
export default vitestBaseConfig;
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
- **NestJS Backend (`@djblackeagle/dev-config-js/vitest/nestjs`):**
|
|
261
|
+
|
|
262
|
+
```ts
|
|
263
|
+
import { vitestNestjsConfig } from '@djblackeagle/dev-config-js/vitest/nestjs';
|
|
264
|
+
|
|
265
|
+
export default vitestNestjsConfig;
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
- **Custom Overrides (`createVitestConfig` / `createNestjsVitestConfig`):**
|
|
269
|
+
|
|
270
|
+
```ts
|
|
271
|
+
import { createVitestConfig } from '@djblackeagle/dev-config-js/vitest';
|
|
272
|
+
|
|
273
|
+
export default createVitestConfig({
|
|
274
|
+
test: {
|
|
275
|
+
setupFiles: ['./test/setup.ts'],
|
|
276
|
+
},
|
|
277
|
+
});
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Commitlint Preset
|
|
281
|
+
|
|
282
|
+
Use the shared Commitlint Conventional Commits preset in your project's `commitlint.config.js`:
|
|
283
|
+
|
|
284
|
+
```js
|
|
285
|
+
import commitlintConfig from '@djblackeagle/dev-config-js/commitlint';
|
|
286
|
+
|
|
287
|
+
export default commitlintConfig;
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
Or customize rules using `createCommitlintConfig`:
|
|
291
|
+
|
|
292
|
+
```js
|
|
293
|
+
import { createCommitlintConfig } from '@djblackeagle/dev-config-js/commitlint';
|
|
294
|
+
|
|
295
|
+
export default createCommitlintConfig({
|
|
296
|
+
rules: {
|
|
297
|
+
'header-max-length': [2, 'always', 120],
|
|
298
|
+
},
|
|
299
|
+
});
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Lint-Staged Preset
|
|
303
|
+
|
|
304
|
+
Use the shared `lint-staged` pre-commit preset in your project's `.lintstagedrc.js` (runs `eslint --fix` and
|
|
305
|
+
`prettier --write` on JS/TS, JSON/JSONC, YAML, and Markdown files, plus `markdownlint-cli2 --fix` on Markdown):
|
|
306
|
+
|
|
307
|
+
```js
|
|
308
|
+
import lintStagedConfig from '@djblackeagle/dev-config-js/lint-staged';
|
|
309
|
+
|
|
310
|
+
export default lintStagedConfig;
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
Or extend the preset with custom file globs using `createLintStagedConfig`:
|
|
314
|
+
|
|
315
|
+
```js
|
|
316
|
+
import { createLintStagedConfig } from '@djblackeagle/dev-config-js/lint-staged';
|
|
317
|
+
|
|
318
|
+
export default createLintStagedConfig({
|
|
319
|
+
'*.{html,scss}': ['prettier --write'],
|
|
320
|
+
});
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
## End-to-End Stack Integration Guides
|
|
324
|
+
|
|
325
|
+
Below are complete, copy-paste-ready setup recipes for integrating `@djblackeagle/dev-config-js` into new or existing
|
|
326
|
+
projects across all three supported stacks.
|
|
327
|
+
|
|
328
|
+
### 1. Shared TypeScript Library (Node.js / Universal)
|
|
329
|
+
|
|
330
|
+
1. **Install dependencies:**
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
pnpm add -D @djblackeagle/dev-config-js typescript eslint husky
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
2. **Configure `package.json`:**
|
|
337
|
+
|
|
338
|
+
```json
|
|
339
|
+
{
|
|
340
|
+
"type": "module",
|
|
341
|
+
"prettier": "@djblackeagle/dev-config-js/prettier",
|
|
342
|
+
"scripts": {
|
|
343
|
+
"prepare": "husky",
|
|
344
|
+
"build": "tsc -p tsconfig.build.json",
|
|
345
|
+
"typecheck": "tsc --noEmit",
|
|
346
|
+
"lint": "eslint . && markdownlint-cli2 --config node_modules/@djblackeagle/dev-config-js/dist/markdownlint/index.jsonc",
|
|
347
|
+
"lint:fix": "eslint . --fix && markdownlint-cli2 --fix --config node_modules/@djblackeagle/dev-config-js/dist/markdownlint/index.jsonc",
|
|
348
|
+
"format": "prettier --check .",
|
|
349
|
+
"format:fix": "prettier --write .",
|
|
350
|
+
"test": "vitest run --coverage.enabled --coverage.reporter=text",
|
|
351
|
+
"test:watch": "vitest"
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
3. **Create `tsconfig.json`, `tsconfig.build.json`, and `tsconfig.eslint.json`:**
|
|
357
|
+
|
|
358
|
+
```jsonc
|
|
359
|
+
// tsconfig.json
|
|
360
|
+
{
|
|
361
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
362
|
+
"extends": "@djblackeagle/dev-config-js/tsconfig/library.json",
|
|
363
|
+
"compilerOptions": {
|
|
364
|
+
"outDir": "./dist",
|
|
365
|
+
"rootDir": ".",
|
|
366
|
+
},
|
|
367
|
+
"include": ["src/**/*", "tests/**/*", "eslint.config.js", "vitest.config.ts"],
|
|
368
|
+
}
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
```jsonc
|
|
372
|
+
// tsconfig.build.json
|
|
373
|
+
{
|
|
374
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
375
|
+
"extends": "./tsconfig.json",
|
|
376
|
+
"compilerOptions": {
|
|
377
|
+
"rootDir": "./src",
|
|
378
|
+
},
|
|
379
|
+
"include": ["src/**/*"],
|
|
380
|
+
"exclude": ["node_modules", "dist", "coverage", "**/*.spec.ts", "**/*.test.ts"],
|
|
381
|
+
}
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
```jsonc
|
|
385
|
+
// tsconfig.eslint.json
|
|
386
|
+
{
|
|
387
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
388
|
+
"extends": "./tsconfig.json",
|
|
389
|
+
"compilerOptions": {
|
|
390
|
+
"noEmit": true,
|
|
391
|
+
"allowJs": true,
|
|
392
|
+
},
|
|
393
|
+
"include": [
|
|
394
|
+
"src/**/*",
|
|
395
|
+
"tests/**/*",
|
|
396
|
+
".lintstagedrc.js",
|
|
397
|
+
"commitlint.config.js",
|
|
398
|
+
"eslint.config.js",
|
|
399
|
+
"vitest.config.ts",
|
|
400
|
+
],
|
|
401
|
+
}
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
4. **Create `eslint.config.js`, `vitest.config.ts`, `commitlint.config.js`, and `.lintstagedrc.js`:**
|
|
405
|
+
|
|
406
|
+
```js
|
|
407
|
+
// eslint.config.js
|
|
408
|
+
import { presets } from '@djblackeagle/dev-config-js/eslint';
|
|
409
|
+
|
|
410
|
+
export default [...presets.library];
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
```ts
|
|
414
|
+
// vitest.config.ts
|
|
415
|
+
import { vitestBaseConfig } from '@djblackeagle/dev-config-js/vitest';
|
|
416
|
+
|
|
417
|
+
export default vitestBaseConfig;
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
```js
|
|
421
|
+
// commitlint.config.js
|
|
422
|
+
import commitlintConfig from '@djblackeagle/dev-config-js/commitlint';
|
|
423
|
+
|
|
424
|
+
export default commitlintConfig;
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
```js
|
|
428
|
+
// .lintstagedrc.js
|
|
429
|
+
import lintStagedConfig from '@djblackeagle/dev-config-js/lint-staged';
|
|
430
|
+
|
|
431
|
+
export default lintStagedConfig;
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
### 2. NestJS Backend Service
|
|
437
|
+
|
|
438
|
+
1. **Install dependencies:**
|
|
439
|
+
|
|
440
|
+
```bash
|
|
441
|
+
pnpm add -D @djblackeagle/dev-config-js typescript eslint husky
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
2. **Create `tsconfig.json`:**
|
|
445
|
+
|
|
446
|
+
```json
|
|
447
|
+
{
|
|
448
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
449
|
+
"extends": "@djblackeagle/dev-config-js/tsconfig/nestjs.json",
|
|
450
|
+
"compilerOptions": {
|
|
451
|
+
"outDir": "./dist",
|
|
452
|
+
"baseUrl": "./"
|
|
453
|
+
},
|
|
454
|
+
"include": ["src/**/*", "test/**/*"]
|
|
455
|
+
}
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
3. **Create `eslint.config.js` and `vitest.config.ts`:**
|
|
459
|
+
|
|
460
|
+
```js
|
|
461
|
+
// eslint.config.js
|
|
462
|
+
import { presets } from '@djblackeagle/dev-config-js/eslint';
|
|
463
|
+
|
|
464
|
+
export default [...presets.nestjs];
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
```ts
|
|
468
|
+
// vitest.config.ts
|
|
469
|
+
import { vitestNestjsConfig } from '@djblackeagle/dev-config-js/vitest/nestjs';
|
|
470
|
+
|
|
471
|
+
export default vitestNestjsConfig;
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
---
|
|
475
|
+
|
|
476
|
+
### 3. Angular Frontend Application
|
|
477
|
+
|
|
478
|
+
1. **Install dependencies:**
|
|
479
|
+
|
|
480
|
+
```bash
|
|
481
|
+
pnpm add -D @djblackeagle/dev-config-js typescript eslint husky
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
2. **Create `tsconfig.json`:**
|
|
485
|
+
|
|
486
|
+
```json
|
|
487
|
+
{
|
|
488
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
489
|
+
"extends": "@djblackeagle/dev-config-js/tsconfig/angular.json"
|
|
490
|
+
}
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
3. **Create `eslint.config.js` and `.lintstagedrc.js`:**
|
|
494
|
+
|
|
495
|
+
```js
|
|
496
|
+
// eslint.config.js
|
|
497
|
+
import { presets } from '@djblackeagle/dev-config-js/eslint';
|
|
498
|
+
|
|
499
|
+
export default [...presets.angular];
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
```js
|
|
503
|
+
// .lintstagedrc.js
|
|
504
|
+
import { createLintStagedConfig } from '@djblackeagle/dev-config-js/lint-staged';
|
|
505
|
+
|
|
506
|
+
export default createLintStagedConfig({
|
|
507
|
+
'*.{html,scss}': ['prettier --write'],
|
|
508
|
+
});
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
## Contributing
|
|
512
|
+
|
|
513
|
+
We welcome contributions from the community! If you're interested in helping to
|
|
514
|
+
improve `@djblackeagle/dev-config-js`, please take a look at our
|
|
515
|
+
[Contributing Guidelines][REF_INTERN_FILE_MD_CONTRIBUTING] for more information on how to get started.
|
|
516
|
+
|
|
517
|
+
## Code of Conduct
|
|
518
|
+
|
|
519
|
+
We are committed to fostering a welcoming and inclusive community. Please review
|
|
520
|
+
our [Code of Conduct][REF_INTERN_FILE_MD_CODE_OF_CONDUCT] to understand our
|
|
521
|
+
expectations for behavior within the project.
|
|
522
|
+
|
|
523
|
+
## Security
|
|
524
|
+
|
|
525
|
+
If you discover a security vulnerability in `@djblackeagle/dev-config-js`, please
|
|
526
|
+
follow our [Security Guidelines][REF_INTERN_FILE_MD_SECURITY] to report it responsibly.
|
|
527
|
+
|
|
528
|
+
## License
|
|
529
|
+
|
|
530
|
+
This project is licensed under the [MIT License][REF_INTERN_FILE_MD_LICENSE].
|
|
531
|
+
|
|
532
|
+
## Additional Resources
|
|
533
|
+
|
|
534
|
+
- [Agent & Engineering Guidelines][REF_INTERN_FILE_MD_AGENTS] – For detailed information
|
|
535
|
+
on development standards, project structure, and `package.json` scripts.
|
|
536
|
+
|
|
537
|
+
[REF_INTERN_FILE_MD_AGENTS]: ./AGENTS.md
|
|
538
|
+
[REF_INTERN_FILE_MD_CODE_OF_CONDUCT]: ./CODE_OF_CONDUCT.md
|
|
539
|
+
[REF_INTERN_FILE_MD_CONTRIBUTING]: ./CONTRIBUTING.md
|
|
540
|
+
[REF_INTERN_FILE_MD_LICENSE]: ./LICENSE.md
|
|
541
|
+
[REF_INTERN_FILE_MD_README]: ./README.md
|
|
542
|
+
[REF_INTERN_FILE_MD_SECURITY]: ./SECURITY.md
|
|
543
|
+
[REF_INTERN_URL_NPMJS_PACKAGE]: https://www.npmjs.com/package/@djblackeagle/dev-config-js
|
|
544
|
+
[REF_INTERN_URL_WORKFLOW_CODEQL]: https://github.com/DJBlackEagle/dev-code-js/actions/workflows/codeql.yml
|
|
545
|
+
[REF_INTERN_URL_WORKFLOW_CQAT]: https://github.com/DJBlackEagle/dev-code-js/actions/workflows/pullrequest-status-checks.yml
|
|
546
|
+
[REF_INTERN_URL_WORKFLOW_DEPENDABOT]: https://github.com/DJBlackEagle/dev-code-js/actions/workflows/dependabot/dependabot-updates
|
|
547
|
+
[REF_INTERN_URL_WORKFLOW_RELEASE]: https://github.com/DJBlackEagle/dev-code-js/actions/workflows/release.yml
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Reporting Security Issues
|
|
2
|
+
|
|
3
|
+
If you believe you have found a security vulnerability in this project, we
|
|
4
|
+
encourage you to let us know right away. We will investigate all legitimate
|
|
5
|
+
reports and do our best to quickly fix the problem.
|
|
6
|
+
|
|
7
|
+
Please refer to the following page for our responsible disclosure policy and to
|
|
8
|
+
privately submit a vulnerability report:
|
|
9
|
+
|
|
10
|
+
[Report a vulnerability][REF_INTERN_URL_VULNERABILITY]
|
|
11
|
+
|
|
12
|
+
[REF_INTERN_URL_VULNERABILITY]: https://github.com/DJBlackEagle/dev-code-js/security/advisories/new
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../../src/cli/bin.ts"],"names":[],"mappings":""}
|
package/dist/cli/bin.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../../src/cli/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC"}
|