@adbayb/stack 0.0.0-next-798693b → 0.0.0-next-2a0b6a2
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 +2 -2
- package/dist/index.mjs +19 -7
- package/package.json +3 -3
- package/{template → templates/multi-projects}/.editorconfig +1 -1
- package/templates/multi-projects/applications/README.md +6 -0
- package/{template → templates/multi-projects}/libraries/README.md +0 -6
- 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}/pnpm-workspace.yaml.tmpl +0 -1
- package/{template → templates/multi-projects}/tools/README.md +1 -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/.commitlintrc.json +3 -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 +53 -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 +96 -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 +24 -0
- package/templates/single-project/{{projectName}}/README.md.tmpl +42 -0
- package/templates/single-project/{{projectName}}/src/index.test.ts.tmpl +5 -0
- package/templates/single-project/{{projectName}}/src/index.ts +1 -0
- package/template/applications/README.md +0 -9
- /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}/.commitlintrc.json +0 -0
- /package/{template → templates/multi-projects}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- /package/{template → templates/multi-projects}/.github/ISSUE_TEMPLATE/config.yml +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}/.github/workflows/continuous_delivery.yml +0 -0
- /package/{template → templates/multi-projects}/.github/workflows/continuous_integration.yml +0 -0
- /package/{template → templates/multi-projects}/.github/workflows/conventional_commit.yml +0 -0
- /package/{template → templates/multi-projects}/.github/workflows/dependency_changelog.yml +0 -0
- /package/{template → templates/multi-projects}/.github/workflows/workflow.yml +0 -0
- /package/{template → templates/multi-projects}/.gitignore.tmpl +0 -0
- /package/{template → templates/multi-projects}/.npmrc.tmpl +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}/eslint.config.js.tmpl +0 -0
- /package/{template → templates/multi-projects}/examples/README.md +0 -0
- /package/{template → templates/multi-projects}/examples/default/package.json.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/multi-projects}/package.json.tmpl +0 -0
- /package/{template → templates/multi-projects}/tsconfig.json +0 -0
- /package/{template → templates/multi-projects}/turbo.json +0 -0
- /package/{template → templates/single-project}/{{projectName}}/package.json.tmpl +0 -0
- /package/{template → templates/single-project}/{{projectName}}/tsconfig.json +0 -0
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- Support for several application templates (for now, only a default template is available, but others can be added later)
|
|
14
14
|
- Standardized file structure including optional folder creation such as `examples`, `packages`, ...
|
|
15
15
|
- Enable all project lifecycle steps with commands from the setup, check, fix, build, and test to the versioning and release
|
|
16
|
-
- Built-in configuration preset setup (including Node/NPM runtime, Git ignore/hooks, TypeScript, ESLint, Prettier, EditorConfig, Renovate, Changesets, and VSCode)
|
|
16
|
+
- Built-in configuration preset setup (including Node/NPM runtime, Git ignore/hooks, [TypeScript](./config/typescript/), [ESLint](./config/eslint), [Prettier](./config/prettier/), EditorConfig, Renovate, Changesets, and VSCode)
|
|
17
17
|
- A welcoming environment for users and contributors with the continuous integration setup, and the creation of `README.md`, `CONTRIBUTING.md`, and GitHub template files (including issue and pull request ones), ...
|
|
18
18
|
- An optimized development environment with command caching (no build needed if nothing changes)
|
|
19
19
|
|
|
@@ -85,7 +85,7 @@ flowchart TD
|
|
|
85
85
|
|
|
86
86
|
- [Commits](https://www.conventionalcommits.org/)
|
|
87
87
|
- [Scripts](https://conventionalscripts.org/)
|
|
88
|
-
- [File Structure](https://nx.dev/concepts/
|
|
88
|
+
- [File Structure](https://nx.dev/concepts/decisions/folder-structure)
|
|
89
89
|
- Monorepo-first structure to:
|
|
90
90
|
- Keep a consistent file structure pattern across templates (ease template familiarity and onboarding)
|
|
91
91
|
- Ease examples setup
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { helpers, termost } from 'termost';
|
|
2
2
|
import { existsSync, readdirSync, cpSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
|
-
import { resolve } from 'node:path';
|
|
4
|
+
import { resolve, join } from 'node:path';
|
|
5
|
+
import process from 'node:process';
|
|
5
6
|
import { fdir } from 'fdir';
|
|
6
7
|
import { mkdir, symlink, writeFile, chmod } from 'node:fs/promises';
|
|
7
8
|
|
|
@@ -51,7 +52,7 @@ ${input.body}
|
|
|
51
52
|
* @example
|
|
52
53
|
* resolveFromStackDirectory("./templates");
|
|
53
54
|
*/ const resolveFromStackDirectory = (path)=>{
|
|
54
|
-
return resolve(
|
|
55
|
+
return resolve(import.meta.dirname, "../", path);
|
|
55
56
|
};
|
|
56
57
|
const getNpmVersion = async ()=>{
|
|
57
58
|
try {
|
|
@@ -326,7 +327,7 @@ const PRESERVE_FILES = [
|
|
|
326
327
|
".turbo"
|
|
327
328
|
];
|
|
328
329
|
|
|
329
|
-
var version = "0.0.0-next-
|
|
330
|
+
var version = "0.0.0-next-2a0b6a2";
|
|
330
331
|
|
|
331
332
|
const VERSION = version;
|
|
332
333
|
|
|
@@ -354,7 +355,17 @@ const createCreateCommand = (program)=>{
|
|
|
354
355
|
}).input({
|
|
355
356
|
key: "inputUrl",
|
|
356
357
|
label: "Where will it be stored? (Git remote URL)",
|
|
358
|
+
defaultValue: "git@github.com:adbayb/stack.git",
|
|
357
359
|
type: "text"
|
|
360
|
+
}).input({
|
|
361
|
+
key: "inputTemplate",
|
|
362
|
+
label: "Which template you would like to apply?",
|
|
363
|
+
defaultValue: "single-project",
|
|
364
|
+
options: [
|
|
365
|
+
"single-project",
|
|
366
|
+
"multi-projects"
|
|
367
|
+
],
|
|
368
|
+
type: "select"
|
|
358
369
|
}).task({
|
|
359
370
|
label: label$2("Checking pre-requisites"),
|
|
360
371
|
async handler () {
|
|
@@ -398,8 +409,8 @@ const createCreateCommand = (program)=>{
|
|
|
398
409
|
}
|
|
399
410
|
}).task({
|
|
400
411
|
label: label$2("Applying template"),
|
|
401
|
-
handler ({ data }) {
|
|
402
|
-
applyTemplate(data);
|
|
412
|
+
handler ({ data, inputTemplate }) {
|
|
413
|
+
applyTemplate(inputTemplate, data);
|
|
403
414
|
}
|
|
404
415
|
}).task({
|
|
405
416
|
label: label$2("Installing dependencies"),
|
|
@@ -461,14 +472,15 @@ const createCreateCommand = (program)=>{
|
|
|
461
472
|
const label$2 = (message)=>`${message} 🔨`;
|
|
462
473
|
/**
|
|
463
474
|
* A simple template engine to evaluate dynamic expressions and apply side effets (such as hydrating a content with values from an input object) on impacted template files.
|
|
475
|
+
* @param template - The selected template.
|
|
464
476
|
* @param dataModel - Data model mapping the template expression key with its corresponding value.
|
|
465
477
|
* @example
|
|
466
478
|
* applyTemplate(
|
|
467
479
|
* { toReplace: "value" },
|
|
468
480
|
* );
|
|
469
|
-
*/ const applyTemplate = (dataModel)=>{
|
|
481
|
+
*/ const applyTemplate = (template, dataModel)=>{
|
|
470
482
|
const templateExtension = ".tmpl";
|
|
471
|
-
const templateRootPath = resolveFromStackDirectory("./template
|
|
483
|
+
const templateRootPath = resolveFromStackDirectory(join("./templates", template));
|
|
472
484
|
const projectRootPath = resolveFromProjectDirectory("./");
|
|
473
485
|
const templateExpressionRegExp = /{{(.*?)}}/g;
|
|
474
486
|
const evaluate = (content)=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adbayb/stack",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-2a0b6a2",
|
|
4
4
|
"description": "My opinionated JavaScript-based toolchain",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bin",
|
|
10
10
|
"config",
|
|
11
11
|
"dist",
|
|
12
|
-
"
|
|
12
|
+
"templates"
|
|
13
13
|
],
|
|
14
14
|
"bin": {
|
|
15
15
|
"stack": "./bin/index.mjs"
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"typescript": "^5.6.3"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
|
-
"prestart": "
|
|
79
|
+
"prestart": "pnpm build",
|
|
80
80
|
"start": "./bin/index.mjs",
|
|
81
81
|
"build": "quickbundle build",
|
|
82
82
|
"watch": "quickbundle watch"
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
# Libraries
|
|
2
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
3
|
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.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{projectName}}",
|
|
3
|
+
"description": "{{projectDescription}}",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"type": "module",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"source": "./src/index.ts",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"require": "./dist/index.cjs",
|
|
18
|
+
"import": "./dist/index.mjs",
|
|
19
|
+
"default": "./dist/index.mjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": "Ayoub Adib <adbayb@gmail.com> (https://twitter.com/adbayb)",
|
|
24
|
+
"bugs": "https://github.com/{{repoId}}/issues",
|
|
25
|
+
"homepage": "https://github.com/{{repoId}}/tree/main/{{projectName}}#readme",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "{{projectUrl}}",
|
|
29
|
+
"directory": "libraries/{{projectName}}"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"prepublishOnly": "pnpm build",
|
|
33
|
+
"clean": "rm -rf dist",
|
|
34
|
+
"start": "pnpm watch",
|
|
35
|
+
"build": "pnpm clean && quickbundle build",
|
|
36
|
+
"watch": "quickbundle watch",
|
|
37
|
+
"test": "vitest"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Tools
|
|
2
2
|
|
|
3
3
|
> [!note]
|
|
4
|
-
> Optional folder that can be removed if no internal scripts or packages for development purposes
|
|
4
|
+
> Optional folder that can be removed if no internal scripts or packages for development purposes.
|
|
5
5
|
|
|
6
6
|
A collection of internal packages and scripts that act locally on the repository codebase.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changesets
|
|
2
|
+
|
|
3
|
+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
+
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
6
|
+
|
|
7
|
+
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/changesets/changesets/main/packages/config/schema.json",
|
|
3
|
+
"access": "public",
|
|
4
|
+
"baseBranch": "main",
|
|
5
|
+
"changelog": ["@changesets/changelog-github", { "repo": "{{repoId}}" }],
|
|
6
|
+
"commit": false,
|
|
7
|
+
"ignore": ["@examples/*"],
|
|
8
|
+
"updateInternalDependencies": "patch",
|
|
9
|
+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
|
|
10
|
+
"onlyUpdatePeerDependentsWhenOutOfRange": true,
|
|
11
|
+
"updateInternalDependents": "out-of-range"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "🐛 Bug Report"
|
|
3
|
+
about: Report a reproducible bug or regression.
|
|
4
|
+
title: "Bug: "
|
|
5
|
+
labels: ["bug", "triage"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Description
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
Please provide a clear and concise description of what the bug is with the current and expected behavior(s). Include
|
|
12
|
+
screenshots if needed. Please test using the latest version of the relevant package to make sure your issue has not already been fixed.
|
|
13
|
+
-->
|
|
14
|
+
|
|
15
|
+
## Reproduction
|
|
16
|
+
|
|
17
|
+
<!--
|
|
18
|
+
Issues without reproduction steps or code examples may be immediately closed as not actionable. Your bug will get fixed much faster if we can run your code. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve.
|
|
19
|
+
-->
|
|
20
|
+
|
|
21
|
+
## Environment
|
|
22
|
+
|
|
23
|
+
<!--
|
|
24
|
+
Please provide the environment you discovered this bug in.
|
|
25
|
+
It must include following informations:
|
|
26
|
+
- OS [eg. Android, iOS, mac OS, Windows, ...]
|
|
27
|
+
- Browser [eg. Chrome@110, Safari@16, ...]
|
|
28
|
+
-->
|
|
29
|
+
|
|
30
|
+
## Additional context
|
|
31
|
+
|
|
32
|
+
<!--
|
|
33
|
+
Add any other context about the problem (eg. issue URL, related issues, documentation, etc...)
|
|
34
|
+
-->
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Thanks for submitting a pull request!
|
|
3
|
+
We appreciate you spending the time to work on these changes. Before requesting reviews, please make sure that:
|
|
4
|
+
|
|
5
|
+
1. Your contribution follows coding conventions
|
|
6
|
+
2. Some valuable tests have been added
|
|
7
|
+
3. For non-internal change, a changelog entry is added
|
|
8
|
+
|
|
9
|
+
Learn more about contributing [here](https://github.com/{{repoId}}/blob/main/CONTRIBUTING.md)
|
|
10
|
+
-->
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Please include a concise summary of the change with the relevant context and main highlights:
|
|
15
|
+
|
|
16
|
+
- [ ] What I've done 1
|
|
17
|
+
- [ ] What I've done 2...
|
|
18
|
+
|
|
19
|
+
## Screenshots
|
|
20
|
+
|
|
21
|
+
| Before | After |
|
|
22
|
+
| ------ | ----- |
|
|
23
|
+
| Image | Image |
|
|
24
|
+
|
|
25
|
+
## Resources
|
|
26
|
+
|
|
27
|
+
- Issue (GitHub, ...)
|
|
28
|
+
- Specification (ADRs, RFCs, ...)
|
|
29
|
+
- ...
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
+
"extends": [
|
|
4
|
+
":automergeAll",
|
|
5
|
+
":automergePr",
|
|
6
|
+
":automergeRequireAllStatusChecks",
|
|
7
|
+
":enableVulnerabilityAlerts",
|
|
8
|
+
":label(dependencies)",
|
|
9
|
+
":maintainLockFilesMonthly",
|
|
10
|
+
":prConcurrentLimit10",
|
|
11
|
+
":rebaseStalePrs",
|
|
12
|
+
":semanticCommits",
|
|
13
|
+
":semanticCommitScopeDisabled",
|
|
14
|
+
":semanticPrefixFixDepsChoreOthers",
|
|
15
|
+
":timezone(Europe/Paris)",
|
|
16
|
+
"npm:unpublishSafe",
|
|
17
|
+
"replacements:all",
|
|
18
|
+
"schedule:monthly",
|
|
19
|
+
"workarounds:all"
|
|
20
|
+
],
|
|
21
|
+
"commitBodyTable": true,
|
|
22
|
+
"platformAutomerge": false,
|
|
23
|
+
"ignoreDeps": [],
|
|
24
|
+
"packageRules": [
|
|
25
|
+
{
|
|
26
|
+
"matchPackagePatterns": ["*"],
|
|
27
|
+
"rangeStrategy": "auto"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"matchDepTypes": ["devDependencies"],
|
|
31
|
+
"rangeStrategy": "pin"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"matchDepTypes": ["dependencies"],
|
|
35
|
+
"rangeStrategy": "bump"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"description": "Synchronize CircleCI Docker image version with the Node.js one",
|
|
39
|
+
"matchPackageNames": ["cimg/node"],
|
|
40
|
+
"versioning": "node"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"groupName": "package dependencies",
|
|
44
|
+
"matchManagers": ["npm"],
|
|
45
|
+
"matchDepTypes": [
|
|
46
|
+
"dependencies",
|
|
47
|
+
"devDependencies",
|
|
48
|
+
"optionalDependencies",
|
|
49
|
+
"peerDependencies"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"groupName": "infrastructure dependencies",
|
|
54
|
+
"matchManagers": [
|
|
55
|
+
"circleci",
|
|
56
|
+
"github-actions",
|
|
57
|
+
"dockerfile",
|
|
58
|
+
"terraform",
|
|
59
|
+
"terraform-version",
|
|
60
|
+
"docker-compose",
|
|
61
|
+
"kubernetes"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"groupName": "engine dependencies",
|
|
66
|
+
"matchPackagePatterns": ["node", "pnpm"]
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: Continous delivery
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
integrate:
|
|
12
|
+
uses: ./.github/workflows/workflow.yml
|
|
13
|
+
release:
|
|
14
|
+
timeout-minutes: 5
|
|
15
|
+
needs: integrate
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write
|
|
19
|
+
pull-requests: write
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: pnpm/action-setup@v4
|
|
23
|
+
- name: Get node version
|
|
24
|
+
run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
|
|
25
|
+
id: node
|
|
26
|
+
- name: Setup node ${{ steps.node.outputs.version }}
|
|
27
|
+
uses: actions/setup-node@v4
|
|
28
|
+
with:
|
|
29
|
+
node-version: ${{ steps.node.outputs.version }}
|
|
30
|
+
cache: pnpm
|
|
31
|
+
- name: Setup .npmrc
|
|
32
|
+
run: |
|
|
33
|
+
cat << EOF > "$HOME/.npmrc"
|
|
34
|
+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
|
|
35
|
+
EOF
|
|
36
|
+
env:
|
|
37
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
38
|
+
- name: Install dependencies
|
|
39
|
+
run: pnpm install --frozen-lockfile
|
|
40
|
+
- name: Publish pre-release version(s)
|
|
41
|
+
run: |
|
|
42
|
+
pnpm --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}"
|
|
43
|
+
pnpm --recursive exec pnpm publish --tag next --no-git-checks
|
|
44
|
+
- name: Prepare or Publish stable version(s)
|
|
45
|
+
uses: changesets/action@v1
|
|
46
|
+
with:
|
|
47
|
+
commit: "chore: release package(s)"
|
|
48
|
+
title: "chore: release package(s)"
|
|
49
|
+
version: pnpm release:version
|
|
50
|
+
publish: pnpm release:publish
|
|
51
|
+
env:
|
|
52
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
53
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Conventional commit
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, edited]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
main:
|
|
9
|
+
timeout-minutes: 5
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: amannn/action-semantic-pull-request@v5
|
|
13
|
+
id: check_pr_rule
|
|
14
|
+
env:
|
|
15
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
16
|
+
with:
|
|
17
|
+
types: |
|
|
18
|
+
build
|
|
19
|
+
chore
|
|
20
|
+
ci
|
|
21
|
+
docs
|
|
22
|
+
feat
|
|
23
|
+
fix
|
|
24
|
+
perf
|
|
25
|
+
refactor
|
|
26
|
+
revert
|
|
27
|
+
style
|
|
28
|
+
test
|
|
29
|
+
requireScope: false
|
|
30
|
+
subjectPattern: ^(?![A-Z]).+$
|
|
31
|
+
subjectPatternError: The subject must start with a lowercase character
|
|
32
|
+
# Create a sticky comment to display the detailed error
|
|
33
|
+
- uses: marocchino/sticky-pull-request-comment@v2
|
|
34
|
+
if: always() && (steps.check_pr_rule.outputs.error_message != null)
|
|
35
|
+
with:
|
|
36
|
+
header: check_pr_comment
|
|
37
|
+
message: |
|
|
38
|
+
Pull request titles must follow the [Conventional Commits specification](https://www.conventionalcommits.org/).
|
|
39
|
+
Please adjust your title following:
|
|
40
|
+
```
|
|
41
|
+
${{ steps.check_pr_rule.outputs.error_message }}
|
|
42
|
+
```
|
|
43
|
+
# Delete a previous comment when the issue has been resolved
|
|
44
|
+
- if: ${{ steps.check_pr_rule.outputs.error_message == null }}
|
|
45
|
+
uses: marocchino/sticky-pull-request-comment@v2
|
|
46
|
+
with:
|
|
47
|
+
header: check_pr_comment
|
|
48
|
+
delete: true
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
name: Dependency changelog
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request_target:
|
|
5
|
+
paths:
|
|
6
|
+
- "**/pnpm-lock.yaml"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
main:
|
|
10
|
+
timeout-minutes: 5
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
if: github.actor == 'renovate[bot]'
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 2
|
|
18
|
+
ref: ${{ github.head_ref }}
|
|
19
|
+
- name: Configure Git
|
|
20
|
+
run: |
|
|
21
|
+
git config --global user.email adbayb@gmail.com
|
|
22
|
+
git config --global user.name 'Ayoub Adib'
|
|
23
|
+
- name: Create changelog entry
|
|
24
|
+
uses: actions/github-script@v7
|
|
25
|
+
# Credits to https://github.com/backstage/backstage/blob/bcc11651add5a2589898dfb9d665ebb9d412201b/.github/workflows/sync_renovate-changesets.yml
|
|
26
|
+
with:
|
|
27
|
+
script: |
|
|
28
|
+
const { promises: fs } = require("fs");
|
|
29
|
+
|
|
30
|
+
async function getPackagesNames(files) {
|
|
31
|
+
const names = [];
|
|
32
|
+
|
|
33
|
+
for (const file of files) {
|
|
34
|
+
const data = JSON.parse(await fs.readFile(file, "utf8"));
|
|
35
|
+
|
|
36
|
+
if (!data.private) {
|
|
37
|
+
names.push(data.name);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return names;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async function createChangeset(fileName, packageBumps, packages) {
|
|
45
|
+
let message = "";
|
|
46
|
+
|
|
47
|
+
for (const [pkg, bump] of packageBumps) {
|
|
48
|
+
message = message + `Updated dependency \`${pkg}\` to \`${bump}\`.\n`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const pkgs = packages.map((pkg) => `"${pkg}": minor`).join("\n");
|
|
52
|
+
const body = `---\n${pkgs}\n---\n\n${message.trim()}\n`;
|
|
53
|
+
|
|
54
|
+
await fs.writeFile(fileName, body);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function getBumps(files) {
|
|
58
|
+
const bumps = new Map();
|
|
59
|
+
|
|
60
|
+
for (const file of files) {
|
|
61
|
+
const { stdout: changes } = await exec.getExecOutput("git", [
|
|
62
|
+
"show",
|
|
63
|
+
file,
|
|
64
|
+
]);
|
|
65
|
+
|
|
66
|
+
for (const change of changes.split("\n")) {
|
|
67
|
+
if (!change.match(/^\+\s/)) {
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const match = change.match(/"(.*?)"/g);
|
|
72
|
+
|
|
73
|
+
bumps.set(match[0].replace(/"/g, ""), match[1].replace(/"/g, ""));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return bumps;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const branch = await exec.getExecOutput("git branch --show-current");
|
|
81
|
+
|
|
82
|
+
if (!branch.stdout.startsWith("renovate/")) {
|
|
83
|
+
console.log("Not a renovate branch, skipping");
|
|
84
|
+
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const diffOutput = await exec.getExecOutput("git diff --name-only HEAD~1");
|
|
89
|
+
const diffFiles = diffOutput.stdout.split("\n");
|
|
90
|
+
|
|
91
|
+
if (diffFiles.find((f) => f.startsWith(".changeset"))) {
|
|
92
|
+
console.log("Changeset already exists, skipping");
|
|
93
|
+
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const files = diffFiles
|
|
98
|
+
.filter((file) => file !== "package.json") // skip root package.json
|
|
99
|
+
.filter((file) => file.includes("package.json"));
|
|
100
|
+
const packageNames = await getPackagesNames(files);
|
|
101
|
+
|
|
102
|
+
if (!packageNames.length) {
|
|
103
|
+
console.log("No package.json changes to published packages, skipping");
|
|
104
|
+
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const { stdout: shortHash } = await exec.getExecOutput(
|
|
109
|
+
"git rev-parse --short HEAD"
|
|
110
|
+
);
|
|
111
|
+
const fileName = `.changeset/renovate-${shortHash.trim()}.md`;
|
|
112
|
+
const packageBumps = await getBumps(files);
|
|
113
|
+
|
|
114
|
+
await createChangeset(fileName, packageBumps, packageNames);
|
|
115
|
+
await exec.exec("git", ["add", fileName]);
|
|
116
|
+
await exec.exec("git commit -C HEAD --amend --no-edit");
|
|
117
|
+
await exec.exec("git push --force");
|
|
@@ -0,0 +1,96 @@
|
|
|
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@v4
|
|
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@v4
|
|
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@v4
|
|
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@v4
|
|
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@v4
|
|
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@v4
|
|
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
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Logs
|
|
2
|
+
logs
|
|
3
|
+
*.log
|
|
4
|
+
npm-debug.log*
|
|
5
|
+
yarn-debug.log*
|
|
6
|
+
yarn-error.log*
|
|
7
|
+
lerna-debug.log*
|
|
8
|
+
.pnpm-debug.log*
|
|
9
|
+
|
|
10
|
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
11
|
+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
12
|
+
|
|
13
|
+
# Runtime data
|
|
14
|
+
pids
|
|
15
|
+
*.pid
|
|
16
|
+
*.seed
|
|
17
|
+
*.pid.lock
|
|
18
|
+
|
|
19
|
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
20
|
+
lib-cov
|
|
21
|
+
|
|
22
|
+
# Coverage directory used by tools like istanbul
|
|
23
|
+
coverage
|
|
24
|
+
*.lcov
|
|
25
|
+
|
|
26
|
+
# nyc test coverage
|
|
27
|
+
.nyc_output
|
|
28
|
+
|
|
29
|
+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
30
|
+
.grunt
|
|
31
|
+
|
|
32
|
+
# Bower dependency directory (https://bower.io/)
|
|
33
|
+
bower_components
|
|
34
|
+
|
|
35
|
+
# node-waf configuration
|
|
36
|
+
.lock-wscript
|
|
37
|
+
|
|
38
|
+
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
39
|
+
build/Release
|
|
40
|
+
|
|
41
|
+
# Dependency directories
|
|
42
|
+
node_modules/
|
|
43
|
+
jspm_packages/
|
|
44
|
+
|
|
45
|
+
# Snowpack dependency directory (https://snowpack.dev/)
|
|
46
|
+
web_modules/
|
|
47
|
+
|
|
48
|
+
# TypeScript cache
|
|
49
|
+
*.tsbuildinfo
|
|
50
|
+
|
|
51
|
+
# Optional npm cache directory
|
|
52
|
+
.npm
|
|
53
|
+
|
|
54
|
+
# Optional eslint cache
|
|
55
|
+
.eslintcache
|
|
56
|
+
|
|
57
|
+
# Optional stylelint cache
|
|
58
|
+
.stylelintcache
|
|
59
|
+
|
|
60
|
+
# Microbundle cache
|
|
61
|
+
.rpt2_cache/
|
|
62
|
+
.rts2_cache_cjs/
|
|
63
|
+
.rts2_cache_es/
|
|
64
|
+
.rts2_cache_umd/
|
|
65
|
+
|
|
66
|
+
# Optional REPL history
|
|
67
|
+
.node_repl_history
|
|
68
|
+
|
|
69
|
+
# Output of 'npm pack'
|
|
70
|
+
*.tgz
|
|
71
|
+
|
|
72
|
+
# Yarn Integrity file
|
|
73
|
+
.yarn-integrity
|
|
74
|
+
|
|
75
|
+
# dotenv environment variable files
|
|
76
|
+
.env
|
|
77
|
+
.env.development.local
|
|
78
|
+
.env.test.local
|
|
79
|
+
.env.production.local
|
|
80
|
+
.env.local
|
|
81
|
+
|
|
82
|
+
# parcel-bundler cache (https://parceljs.org/)
|
|
83
|
+
.cache
|
|
84
|
+
.parcel-cache
|
|
85
|
+
|
|
86
|
+
# Next.js build output
|
|
87
|
+
.next
|
|
88
|
+
out
|
|
89
|
+
|
|
90
|
+
# Nuxt.js build / generate output
|
|
91
|
+
.nuxt
|
|
92
|
+
dist
|
|
93
|
+
|
|
94
|
+
# Gatsby files
|
|
95
|
+
.cache/
|
|
96
|
+
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
97
|
+
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
98
|
+
# public
|
|
99
|
+
|
|
100
|
+
# vuepress build output
|
|
101
|
+
.vuepress/dist
|
|
102
|
+
|
|
103
|
+
# vuepress v2.x temp and cache directory
|
|
104
|
+
.temp
|
|
105
|
+
.cache
|
|
106
|
+
|
|
107
|
+
# Docusaurus cache and generated files
|
|
108
|
+
.docusaurus
|
|
109
|
+
|
|
110
|
+
# Serverless directories
|
|
111
|
+
.serverless/
|
|
112
|
+
|
|
113
|
+
# FuseBox cache
|
|
114
|
+
.fusebox/
|
|
115
|
+
|
|
116
|
+
# DynamoDB Local files
|
|
117
|
+
.dynamodb/
|
|
118
|
+
|
|
119
|
+
# TernJS port file
|
|
120
|
+
.tern-port
|
|
121
|
+
|
|
122
|
+
# Stores VSCode versions used for testing VSCode extensions
|
|
123
|
+
.vscode-test
|
|
124
|
+
|
|
125
|
+
# yarn v2
|
|
126
|
+
.yarn/cache
|
|
127
|
+
.yarn/unplugged
|
|
128
|
+
.yarn/build-state.yml
|
|
129
|
+
.yarn/install-state.gz
|
|
130
|
+
.pnp.*
|
|
131
|
+
|
|
132
|
+
# Others
|
|
133
|
+
.DS_Store
|
|
134
|
+
.turbo
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{{nodeVersion}}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"eslint.validate": [
|
|
3
|
+
"javascript",
|
|
4
|
+
"javascriptreact",
|
|
5
|
+
"typescript",
|
|
6
|
+
"typescriptreact",
|
|
7
|
+
"markdown",
|
|
8
|
+
"mdx",
|
|
9
|
+
"astro"
|
|
10
|
+
],
|
|
11
|
+
"editor.codeActionsOnSave": {
|
|
12
|
+
"source.fixAll.eslint": "explicit"
|
|
13
|
+
},
|
|
14
|
+
"workbench.editor.labelFormat": "short",
|
|
15
|
+
"typescript.tsdk": "node_modules/typescript/lib",
|
|
16
|
+
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
17
|
+
"grammarly.selectors": [
|
|
18
|
+
{
|
|
19
|
+
"language": "mdx",
|
|
20
|
+
"scheme": "file"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"language": "md",
|
|
24
|
+
"scheme": "file"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for showing interest to contribute to `{{projectName}}` 🥳.
|
|
4
|
+
We are open to contributions, we look forward to improving it with your help!
|
|
5
|
+
|
|
6
|
+
Here you will find guidelines that will help you to know how to contribute to this repository.
|
|
7
|
+
It can be about reporting an issue, proposing a bug fix, adding some features, and even more...
|
|
8
|
+
|
|
9
|
+
## 🥇 Your first contribution
|
|
10
|
+
|
|
11
|
+
TODO
|
|
12
|
+
|
|
13
|
+
## 🗂️ Conventions
|
|
14
|
+
|
|
15
|
+
TODO
|
|
16
|
+
|
|
17
|
+
## 👨🍳 Recipes
|
|
18
|
+
|
|
19
|
+
### How to XXX?
|
|
20
|
+
|
|
21
|
+
TODO
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) {{licenseYear}} Ayoub Adib
|
|
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@adbayb/stack/eslint";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "root",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"prepare": "stack install",
|
|
8
|
+
"clean": "stack clean",
|
|
9
|
+
"check": "stack check",
|
|
10
|
+
"fix": "stack fix",
|
|
11
|
+
"start": "stack start",
|
|
12
|
+
"build": "stack build",
|
|
13
|
+
"watch": "stack watch",
|
|
14
|
+
"test": "stack test",
|
|
15
|
+
"release:log": "stack release --log",
|
|
16
|
+
"release:version": "stack release --tag",
|
|
17
|
+
"release:publish": "stack release --publish"
|
|
18
|
+
},
|
|
19
|
+
"prettier": "@adbayb/stack/prettier",
|
|
20
|
+
"packageManager": "pnpm@{{npmVersion}}",
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=20.0.0",
|
|
23
|
+
"pnpm": ">=9.0.0",
|
|
24
|
+
"npm": "please-use-pnpm",
|
|
25
|
+
"yarn": "please-use-pnpm"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://turborepo.org/schema.json",
|
|
3
|
+
"pipeline": {
|
|
4
|
+
"build": {
|
|
5
|
+
"dependsOn": ["^build"],
|
|
6
|
+
"outputs": ["dist/**"]
|
|
7
|
+
},
|
|
8
|
+
"start": {
|
|
9
|
+
"dependsOn": ["build"],
|
|
10
|
+
"cache": false,
|
|
11
|
+
"persistent": true
|
|
12
|
+
},
|
|
13
|
+
"watch": {
|
|
14
|
+
"dependsOn": ["^build"],
|
|
15
|
+
"cache": false,
|
|
16
|
+
"persistent": true
|
|
17
|
+
},
|
|
18
|
+
"test": {
|
|
19
|
+
"dependsOn": ["build"],
|
|
20
|
+
"cache": false,
|
|
21
|
+
"persistent": true
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<br>
|
|
2
|
+
<div align="center">
|
|
3
|
+
<h1>📦 {{projectName}}</h1>
|
|
4
|
+
<strong>{{projectDescription}}</strong>
|
|
5
|
+
</div>
|
|
6
|
+
<br>
|
|
7
|
+
<br>
|
|
8
|
+
|
|
9
|
+
## ✨ Features
|
|
10
|
+
|
|
11
|
+
TODO
|
|
12
|
+
|
|
13
|
+
<br>
|
|
14
|
+
|
|
15
|
+
## 🚀 Usage
|
|
16
|
+
|
|
17
|
+
This section introduces the `{{projectName}}` essentials by walking through its main commands:
|
|
18
|
+
|
|
19
|
+
0️⃣ ...
|
|
20
|
+
1️⃣ ...
|
|
21
|
+
2️⃣ ...
|
|
22
|
+
3️⃣ ...
|
|
23
|
+
|
|
24
|
+
<br>
|
|
25
|
+
|
|
26
|
+
## 🏗️ Architecture
|
|
27
|
+
|
|
28
|
+
TODO
|
|
29
|
+
|
|
30
|
+
<br>
|
|
31
|
+
|
|
32
|
+
## ✍️ Contribution
|
|
33
|
+
|
|
34
|
+
We're open to new contributions, you can find more details [here](https://github.com/{{repoId}}/blob/main/CONTRIBUTING.md).
|
|
35
|
+
|
|
36
|
+
<br>
|
|
37
|
+
|
|
38
|
+
## 📖 License
|
|
39
|
+
|
|
40
|
+
[MIT](https://github.com/{{repoId}}/blob/main/LICENSE "License MIT")
|
|
41
|
+
|
|
42
|
+
<br>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const HELLO_WORLD = "Hello 👋, please replace me!";
|
|
@@ -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, ...).
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|