@adbayb/stack 1.16.0 → 2.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/README.md +36 -41
- package/bin/index.js +8 -0
- package/configs/eslint/README.md +39 -0
- package/configs/eslint/constants.js +10 -0
- package/configs/eslint/helpers.js +6 -0
- package/configs/eslint/index.js +29 -0
- package/configs/eslint/presets/base.js +26 -0
- package/configs/eslint/presets/eslint.js +105 -0
- package/configs/eslint/presets/import.js +71 -0
- package/configs/eslint/presets/jsdoc.js +79 -0
- package/configs/eslint/presets/node.js +51 -0
- package/configs/eslint/presets/overridable.js +33 -0
- package/configs/eslint/presets/react.js +75 -0
- package/configs/eslint/presets/sonar.js +225 -0
- package/configs/eslint/presets/stylistic.js +69 -0
- package/configs/eslint/presets/test.js +59 -0
- package/configs/eslint/presets/typescript.js +172 -0
- package/configs/eslint/presets/uncategorized.js +34 -0
- package/configs/prettier/README.md +65 -0
- package/configs/prettier/index.js +25 -0
- package/configs/typescript/README.md +46 -0
- package/configs/typescript/index.json +35 -0
- package/dist/index.js +761 -0
- package/package.json +48 -18
- package/{template → templates/multi-projects}/.editorconfig +1 -1
- package/templates/multi-projects/.github/ISSUE_TEMPLATE/config.yml +4 -0
- package/templates/multi-projects/.github/workflows/continuous_delivery.yml +61 -0
- package/templates/multi-projects/.github/workflows/continuous_integration.yml +9 -0
- package/templates/multi-projects/.github/workflows/conventional_commit.yml +48 -0
- package/templates/multi-projects/.github/workflows/dependency_changelog.yml +117 -0
- package/templates/multi-projects/.github/workflows/workflow.yml +39 -0
- package/templates/multi-projects/.gitignore.tmpl +134 -0
- package/templates/multi-projects/.npmrc.tmpl +8 -0
- package/templates/multi-projects/applications/README.md +6 -0
- package/templates/multi-projects/eslint.config.js.tmpl +1 -0
- package/templates/multi-projects/examples/README.md +6 -0
- package/{template → templates/multi-projects}/examples/default/package.json.tmpl +2 -2
- package/templates/multi-projects/libraries/README.md +3 -0
- package/templates/multi-projects/libraries/{{projectName}}/package.json.tmpl +39 -0
- package/templates/multi-projects/libraries/{{projectName}}/tsconfig.json +5 -0
- package/{template → templates/multi-projects}/package.json.tmpl +4 -3
- package/{template → templates/multi-projects}/pnpm-workspace.yaml.tmpl +0 -1
- package/{template → templates/multi-projects}/tools/README.md +1 -1
- package/templates/multi-projects/tsconfig.json +4 -0
- package/{template → templates/multi-projects}/turbo.json +2 -1
- package/templates/single-project/.changeset/README.md +8 -0
- package/templates/single-project/.changeset/config.json.tmpl +13 -0
- package/templates/single-project/.changeset/welcome.md.tmpl +5 -0
- package/templates/single-project/.editorconfig +4 -0
- package/templates/single-project/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
- package/templates/single-project/.github/ISSUE_TEMPLATE/config.yml +4 -0
- package/templates/single-project/.github/PULL_REQUEST_TEMPLATE.md.tmpl +29 -0
- package/templates/single-project/.github/renovate.json +69 -0
- package/templates/single-project/.github/workflows/continuous_delivery.yml +61 -0
- package/templates/single-project/.github/workflows/continuous_integration.yml +9 -0
- package/templates/single-project/.github/workflows/conventional_commit.yml +48 -0
- package/templates/single-project/.github/workflows/dependency_changelog.yml +117 -0
- package/templates/single-project/.github/workflows/workflow.yml +39 -0
- package/templates/single-project/.gitignore.tmpl +134 -0
- package/templates/single-project/.npmrc.tmpl +8 -0
- package/templates/single-project/.nvmrc.tmpl +1 -0
- package/templates/single-project/.vscode/extensions.json +8 -0
- package/templates/single-project/.vscode/settings.json +27 -0
- package/templates/single-project/CONTRIBUTING.md.tmpl +21 -0
- package/templates/single-project/LICENSE.tmpl +21 -0
- package/templates/single-project/eslint.config.js.tmpl +1 -0
- package/templates/single-project/examples/README.md +6 -0
- package/templates/single-project/examples/default/package.json.tmpl +14 -0
- package/templates/single-project/examples/default/src/index.ts.tmpl +3 -0
- package/templates/single-project/examples/default/tsconfig.json +5 -0
- package/templates/single-project/package.json.tmpl +27 -0
- package/templates/single-project/pnpm-workspace.yaml.tmpl +4 -0
- package/templates/single-project/tools/README.md +6 -0
- package/templates/single-project/tsconfig.json +4 -0
- package/templates/single-project/turbo.json +25 -0
- package/templates/single-project/{{projectName}}/README.md.tmpl +42 -0
- package/{template → templates/single-project}/{{projectName}}/package.json.tmpl +3 -5
- package/templates/single-project/{{projectName}}/src/index.test.ts.tmpl +5 -0
- package/templates/single-project/{{projectName}}/src/index.ts +1 -0
- package/bin/index.cjs +0 -7
- package/dist/index.cjs +0 -15
- package/dist/index.cjs.map +0 -7
- package/template/.commitlintrc.json +0 -3
- package/template/.eslintrc.json.tmpl +0 -3
- package/template/.github/ISSUE_TEMPLATE/config.yml +0 -4
- package/template/.github/workflows/continuous_delivery.yml +0 -49
- package/template/.github/workflows/continuous_integration.yml +0 -9
- package/template/.github/workflows/conventional_commit.yml +0 -48
- package/template/.github/workflows/dependency_changelog.yml +0 -117
- package/template/.github/workflows/workflow.yml +0 -96
- package/template/applications/README.md +0 -9
- package/template/examples/README.md +0 -6
- package/template/libraries/README.md +0 -9
- package/template/tsconfig.json +0 -3
- /package/{template → templates/multi-projects}/.changeset/README.md +0 -0
- /package/{template → templates/multi-projects}/.changeset/config.json.tmpl +0 -0
- /package/{template → templates/multi-projects}/.changeset/welcome.md.tmpl +0 -0
- /package/{template → templates/multi-projects}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- /package/{template → templates/multi-projects}/.github/PULL_REQUEST_TEMPLATE.md.tmpl +0 -0
- /package/{template → templates/multi-projects}/.github/renovate.json +0 -0
- /package/{template → templates/multi-projects}/.nvmrc.tmpl +0 -0
- /package/{template → templates/multi-projects}/.vscode/extensions.json +0 -0
- /package/{template → templates/multi-projects}/.vscode/settings.json +0 -0
- /package/{template → templates/multi-projects}/CONTRIBUTING.md.tmpl +0 -0
- /package/{template → templates/multi-projects}/LICENSE.tmpl +0 -0
- /package/{template → templates/multi-projects}/examples/default/src/index.ts.tmpl +0 -0
- /package/{template → templates/multi-projects}/examples/default/tsconfig.json +0 -0
- /package/{template → templates/multi-projects/libraries}/{{projectName}}/README.md.tmpl +0 -0
- /package/{template → templates/multi-projects/libraries}/{{projectName}}/src/index.test.ts.tmpl +0 -0
- /package/{template → templates/multi-projects/libraries}/{{projectName}}/src/index.ts +0 -0
- /package/{template → templates/single-project}/{{projectName}}/tsconfig.json +0 -0
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
name: Main shareable workflow
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_call:
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
install:
|
|
8
|
-
timeout-minutes: 5
|
|
9
|
-
name: Install
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- name: Checkout the code
|
|
13
|
-
uses: actions/checkout@v4
|
|
14
|
-
- uses: pnpm/action-setup@v2
|
|
15
|
-
- name: Get node version
|
|
16
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
17
|
-
id: node
|
|
18
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
19
|
-
uses: actions/setup-node@v4
|
|
20
|
-
with:
|
|
21
|
-
node-version: ${{ steps.node.outputs.version }}
|
|
22
|
-
cache: pnpm
|
|
23
|
-
- name: Setup cache
|
|
24
|
-
id: cache
|
|
25
|
-
uses: actions/cache@v3
|
|
26
|
-
with:
|
|
27
|
-
path: |
|
|
28
|
-
./node_modules
|
|
29
|
-
./turbo
|
|
30
|
-
key: ${{ runner.os }}-cache-${{ github.sha }}
|
|
31
|
-
restore-keys: |
|
|
32
|
-
${{ runner.os }}-cache-
|
|
33
|
-
- name: Install dependencies
|
|
34
|
-
run: pnpm install --frozen-lockfile
|
|
35
|
-
build:
|
|
36
|
-
timeout-minutes: 5
|
|
37
|
-
needs: install
|
|
38
|
-
name: Build
|
|
39
|
-
runs-on: ubuntu-latest
|
|
40
|
-
steps:
|
|
41
|
-
- name: Checkout code
|
|
42
|
-
uses: actions/checkout@v4
|
|
43
|
-
- uses: pnpm/action-setup@v2
|
|
44
|
-
- name: Get node version
|
|
45
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
46
|
-
id: node
|
|
47
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
48
|
-
uses: actions/setup-node@v4
|
|
49
|
-
with:
|
|
50
|
-
node-version: ${{ steps.node.outputs.version }}
|
|
51
|
-
cache: pnpm
|
|
52
|
-
- name: Setup cache
|
|
53
|
-
id: cache
|
|
54
|
-
uses: actions/cache@v3
|
|
55
|
-
with:
|
|
56
|
-
path: |
|
|
57
|
-
./node_modules
|
|
58
|
-
./turbo
|
|
59
|
-
key: ${{ runner.os }}-cache-${{ github.sha }}
|
|
60
|
-
restore-keys: |
|
|
61
|
-
${{ runner.os }}-cache-
|
|
62
|
-
- name: Install dependencies
|
|
63
|
-
run: pnpm install --frozen-lockfile
|
|
64
|
-
- name: Build
|
|
65
|
-
run: pnpm build
|
|
66
|
-
check:
|
|
67
|
-
timeout-minutes: 5
|
|
68
|
-
needs: build
|
|
69
|
-
name: Check
|
|
70
|
-
runs-on: ubuntu-latest
|
|
71
|
-
steps:
|
|
72
|
-
- name: Checkout the code
|
|
73
|
-
uses: actions/checkout@v4
|
|
74
|
-
- uses: pnpm/action-setup@v2
|
|
75
|
-
- name: Get node version
|
|
76
|
-
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
77
|
-
id: node
|
|
78
|
-
- name: Setup node ${{ steps.node.outputs.version }}
|
|
79
|
-
uses: actions/setup-node@v4
|
|
80
|
-
with:
|
|
81
|
-
node-version: ${{ steps.node.outputs.version }}
|
|
82
|
-
cache: pnpm
|
|
83
|
-
- name: Setup cache
|
|
84
|
-
id: cache
|
|
85
|
-
uses: actions/cache@v3
|
|
86
|
-
with:
|
|
87
|
-
path: |
|
|
88
|
-
./node_modules
|
|
89
|
-
./turbo
|
|
90
|
-
key: ${{ runner.os }}-cache-${{ github.sha }}
|
|
91
|
-
restore-keys: |
|
|
92
|
-
${{ runner.os }}-cache-
|
|
93
|
-
- name: Install dependencies
|
|
94
|
-
run: pnpm install --frozen-lockfile
|
|
95
|
-
- name: Check (static analysis including linters, types, and commit message)
|
|
96
|
-
run: pnpm check
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Applications
|
|
2
|
-
|
|
3
|
-
> [!note]
|
|
4
|
-
> Optional folder that can be either:
|
|
5
|
-
>
|
|
6
|
-
> - Kept if the root package needs to be moved into it (when several package types (applications, libraries, ...) need to be created and the root package is by its nature an application)
|
|
7
|
-
> - Otherwise, removed if no planned use case
|
|
8
|
-
|
|
9
|
-
A collection of application-like projects. An application is a runnable program (a command-line interface, a mobile/web application, ...).
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Libraries
|
|
2
|
-
|
|
3
|
-
> [!note]
|
|
4
|
-
> Optional folder that can be either:
|
|
5
|
-
>
|
|
6
|
-
> - Kept if the root package needs to be moved into it (when several package types (applications, libraries, ...) need to be created and the root package is by its nature a library)
|
|
7
|
-
> - Otherwise, removed if no planned use case
|
|
8
|
-
|
|
9
|
-
A collection of internal and/or publishable libraries (referred to as packages in the Node ecosystem) that are leveraged during software development to implement/share a specific aspect/functionality. A library generally encapsulates highly cohesive modules together.
|
package/template/tsconfig.json
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{template → templates/multi-projects/libraries}/{{projectName}}/src/index.test.ts.tmpl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|