@icebreakers/monorepo 3.1.17 → 3.2.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 +9 -0
- package/dist/cli.cjs +43 -27
- package/dist/cli.mjs +33 -15
- package/dist/index.cjs +25 -6
- package/dist/index.d.cts +56 -37
- package/dist/index.d.mts +56 -37
- package/dist/index.mjs +2 -2
- package/dist/{upgrade-BAwEMf4L.mjs → upgrade-CXX-ziub.mjs} +156 -175
- package/dist/{upgrade-Cw-ACn0l.cjs → upgrade-DuK9YfNz.cjs} +160 -192
- package/package.json +6 -11
- package/resources/skills/icebreakers-monorepo-cli/SKILL.md +43 -0
- package/resources/skills/icebreakers-monorepo-cli/references/commands.md +75 -0
- package/resources/skills/icebreakers-monorepo-cli/references/config.md +63 -0
- package/resources/skills/icebreakers-monorepo-cli/references/templates.md +21 -0
- package/assets/.changeset/config.json +0 -16
- package/assets/.dockerignore +0 -44
- package/assets/.editorconfig +0 -12
- package/assets/.gitattributes +0 -218
- package/assets/.github/FUNDING.yml +0 -4
- package/assets/.github/ISSUE_TEMPLATE/bug_report.yml +0 -71
- package/assets/.github/ISSUE_TEMPLATE/config.yml +0 -17
- package/assets/.github/workflows/ci.yml +0 -62
- package/assets/.github/workflows/release.yml +0 -57
- package/assets/.husky/commit-msg +0 -4
- package/assets/.husky/pre-commit +0 -4
- package/assets/.vscode/extensions.json +0 -6
- package/assets/.vscode/settings.json +0 -172
- package/assets/CODE_OF_CONDUCT.md +0 -128
- package/assets/CONTRIBUTING.md +0 -3
- package/assets/Dockerfile +0 -27
- package/assets/SECURITY.md +0 -21
- package/assets/commitlint.config.ts +0 -3
- package/assets/eslint.config.js +0 -7
- package/assets/gitignore +0 -38
- package/assets/lint-staged.config.js +0 -11
- package/assets/monorepo.config.ts +0 -22
- package/assets/netlify.toml +0 -14
- package/assets/package.json +0 -88
- package/assets/pnpm-workspace.yaml +0 -10
- package/assets/renovate.json +0 -28
- package/assets/stylelint.config.js +0 -3
- package/assets/tsconfig.json +0 -51
- package/assets/turbo.json +0 -74
- package/assets/vitest.config.ts +0 -123
- package/templates/apps/cli/bin/index.js +0 -2
- package/templates/apps/cli/dev/index.ts +0 -2
- package/templates/apps/cli/gitignore +0 -2
- package/templates/apps/cli/package.json +0 -35
- package/templates/apps/cli/src/cli.ts +0 -4
- package/templates/apps/cli/src/index.ts +0 -15
- package/templates/apps/cli/tsconfig.json +0 -7
- package/templates/apps/cli/tsup.config.ts +0 -13
- package/templates/apps/client/eslint.config.js +0 -12
- package/templates/apps/client/gitignore +0 -28
- package/templates/apps/client/index.html +0 -13
- package/templates/apps/client/package.json +0 -52
- package/templates/apps/client/public/vite.svg +0 -1
- package/templates/apps/client/src/App.vue +0 -11
- package/templates/apps/client/src/main.ts +0 -16
- package/templates/apps/client/src/pages/index.vue +0 -357
- package/templates/apps/client/src/query-keys.ts +0 -4
- package/templates/apps/client/src/router/index.ts +0 -13
- package/templates/apps/client/src/stores/i18n.ts +0 -24
- package/templates/apps/client/src/stores/index.ts +0 -15
- package/templates/apps/client/src/style.css +0 -1
- package/templates/apps/client/src/trpc/index.ts +0 -10
- package/templates/apps/client/src/vite-env.d.ts +0 -2
- package/templates/apps/client/tsconfig.app.json +0 -28
- package/templates/apps/client/tsconfig.json +0 -8
- package/templates/apps/client/tsconfig.node.json +0 -25
- package/templates/apps/client/tsconfig.worker.json +0 -11
- package/templates/apps/client/vite.config.ts +0 -57
- package/templates/apps/client/worker/app.ts +0 -24
- package/templates/apps/client/worker/config.ts +0 -1
- package/templates/apps/client/worker/fetch-entry.ts +0 -5
- package/templates/apps/client/worker/node-entry.ts +0 -13
- package/templates/apps/client/worker/trpc-router.ts +0 -24
- package/templates/apps/client/wrangler.jsonc +0 -24
- package/templates/apps/server/gitignore +0 -2
- package/templates/apps/server/package.json +0 -60
- package/templates/apps/server/src/app.ts +0 -191
- package/templates/apps/server/src/config.ts +0 -1
- package/templates/apps/server/src/fetch-entry.ts +0 -5
- package/templates/apps/server/src/node-entry.ts +0 -13
- package/templates/apps/server/test/index.test.ts +0 -14
- package/templates/apps/server/tsconfig.json +0 -24
- package/templates/apps/server/tsup.config.ts +0 -13
- package/templates/apps/server/vitest.config.ts +0 -15
- package/templates/apps/server/wrangler.jsonc +0 -18
- package/templates/apps/website/.vitepress/config.ts +0 -93
- package/templates/apps/website/.vitepress/theme/index.ts +0 -4
- package/templates/apps/website/.vitepress/theme/tailwind.css +0 -1
- package/templates/apps/website/gitignore +0 -1
- package/templates/apps/website/index.md +0 -127
- package/templates/apps/website/monorepo/index.md +0 -46
- package/templates/apps/website/monorepo/manage.md +0 -126
- package/templates/apps/website/monorepo/publish.md +0 -142
- package/templates/apps/website/package.json +0 -39
- package/templates/apps/website/public/logo.jpg +0 -0
- package/templates/apps/website/thinking.md +0 -88
- package/templates/apps/website/tools/changeset.md +0 -87
- package/templates/apps/website/tools/husky.md +0 -108
- package/templates/apps/website/tools/lint-staged.md +0 -79
- package/templates/apps/website/tools/pnpm.md +0 -100
- package/templates/apps/website/tools/renovate.md +0 -91
- package/templates/apps/website/tools/turborepo.md +0 -149
- package/templates/apps/website/why/assets/npm-dt.svg +0 -15
- package/templates/apps/website/why/assets/npm-ts.svg +0 -19
- package/templates/apps/website/why/examples/0.npm-basic-package/index.js +0 -10
- package/templates/apps/website/why/examples/0.npm-basic-package/package.json +0 -11
- package/templates/apps/website/why/examples/1.npm-basic-package/index.cjs +0 -12
- package/templates/apps/website/why/examples/1.npm-basic-package/index.d.ts +0 -1
- package/templates/apps/website/why/examples/1.npm-basic-package/index.js +0 -8
- package/templates/apps/website/why/examples/1.npm-basic-package/package.json +0 -19
- package/templates/apps/website/why/examples/2.npm-basic-package/README.md +0 -1
- package/templates/apps/website/why/examples/2.npm-basic-package/package-lock.json +0 -30
- package/templates/apps/website/why/examples/2.npm-basic-package/package.json +0 -35
- package/templates/apps/website/why/examples/2.npm-basic-package/rename-ext.js +0 -24
- package/templates/apps/website/why/examples/2.npm-basic-package/src/index.ts +0 -8
- package/templates/apps/website/why/examples/2.npm-basic-package/tsconfig.cjs.json +0 -8
- package/templates/apps/website/why/examples/2.npm-basic-package/tsconfig.esm.json +0 -7
- package/templates/apps/website/why/examples/2.npm-basic-package/tsconfig.json +0 -18
- package/templates/apps/website/why/examples/3.npm-basic-package/README.md +0 -1
- package/templates/apps/website/why/examples/3.npm-basic-package/build.config.ts +0 -24
- package/templates/apps/website/why/examples/3.npm-basic-package/package-lock.json +0 -3661
- package/templates/apps/website/why/examples/3.npm-basic-package/package.json +0 -32
- package/templates/apps/website/why/examples/3.npm-basic-package/src/index.ts +0 -8
- package/templates/apps/website/why/examples/3.npm-basic-package/tsconfig.json +0 -16
- package/templates/apps/website/why/examples/3.npm-basic-package/tsup.config.ts +0 -16
- package/templates/apps/website/why/examples/usage-cjs/cjs.cjs +0 -4
- package/templates/apps/website/why/examples/usage-cjs/esm.mjs +0 -4
- package/templates/apps/website/why/examples/usage-cjs/index.js +0 -12
- package/templates/apps/website/why/examples/usage-cjs/package-lock.json +0 -42
- package/templates/apps/website/why/examples/usage-cjs/package.json +0 -20
- package/templates/apps/website/why/examples/usage-esm/cjs.cjs +0 -4
- package/templates/apps/website/why/examples/usage-esm/createRequire.js +0 -7
- package/templates/apps/website/why/examples/usage-esm/esm.mjs +0 -4
- package/templates/apps/website/why/examples/usage-esm/index.js +0 -8
- package/templates/apps/website/why/examples/usage-esm/package-lock.json +0 -42
- package/templates/apps/website/why/examples/usage-esm/package.json +0 -21
- package/templates/apps/website/why/how-to-reuse-js-code.md +0 -250
- package/templates/apps/website/why/index.md +0 -1
- package/templates/apps/website/why/js-cjs-mjs.md +0 -99
- package/templates/apps/website/why/js-keywords.md +0 -132
- package/templates/apps/website/why/modern/bundlers.md +0 -79
- package/templates/apps/website/why/modern/dts.md +0 -93
- package/templates/apps/website/why/modern/esm-vs-cjs.md +0 -84
- package/templates/apps/website/why/modern/index.md +0 -55
- package/templates/apps/website/why/modern/package-entry-points.md +0 -128
- package/templates/apps/website/why/modern/typescript.md +0 -155
- package/templates/apps/website/why/publish-basic-npm-package.md +0 -146
- package/templates/apps/website/why/what-is-npm-package.md +0 -162
- package/templates/packages/tsdown-template/package.json +0 -47
- package/templates/packages/tsdown-template/src/index.ts +0 -5
- package/templates/packages/tsdown-template/test/index.test.ts +0 -11
- package/templates/packages/tsdown-template/tsconfig.json +0 -15
- package/templates/packages/tsdown-template/tsdown.config.ts +0 -9
- package/templates/packages/tsdown-template/vitest.config.ts +0 -15
- package/templates/packages/tsup-template/build.config.ts +0 -24
- package/templates/packages/tsup-template/package.json +0 -48
- package/templates/packages/tsup-template/src/index.ts +0 -12
- package/templates/packages/tsup-template/test/index.test.ts +0 -18
- package/templates/packages/tsup-template/tsconfig.json +0 -15
- package/templates/packages/tsup-template/tsup.config.ts +0 -18
- package/templates/packages/tsup-template/vitest.config.ts +0 -15
- package/templates/packages/unbuild-template/build.config.ts +0 -24
- package/templates/packages/unbuild-template/package.json +0 -48
- package/templates/packages/unbuild-template/src/index.ts +0 -9
- package/templates/packages/unbuild-template/src/utils.ts +0 -3
- package/templates/packages/unbuild-template/test/index.test.ts +0 -18
- package/templates/packages/unbuild-template/tsconfig.json +0 -15
- package/templates/packages/unbuild-template/vitest.config.ts +0 -15
- package/templates/packages/vue-lib-template/eslint.config.js +0 -12
- package/templates/packages/vue-lib-template/gitignore +0 -1
- package/templates/packages/vue-lib-template/index.html +0 -13
- package/templates/packages/vue-lib-template/lib/HelloWorld.vue +0 -21
- package/templates/packages/vue-lib-template/lib/index.ts +0 -3
- package/templates/packages/vue-lib-template/package.json +0 -61
- package/templates/packages/vue-lib-template/src/App.vue +0 -9
- package/templates/packages/vue-lib-template/src/main.ts +0 -8
- package/templates/packages/vue-lib-template/src/pages/index.vue +0 -7
- package/templates/packages/vue-lib-template/src/router/index.ts +0 -11
- package/templates/packages/vue-lib-template/src/style.css +0 -1
- package/templates/packages/vue-lib-template/src/vite-env.d.ts +0 -2
- package/templates/packages/vue-lib-template/test/index.test.ts +0 -13
- package/templates/packages/vue-lib-template/tsconfig.app.json +0 -30
- package/templates/packages/vue-lib-template/tsconfig.json +0 -14
- package/templates/packages/vue-lib-template/tsconfig.node.json +0 -25
- package/templates/packages/vue-lib-template/tsconfig.test.json +0 -40
- package/templates/packages/vue-lib-template/vite.config.ts +0 -54
- package/templates/packages/vue-lib-template/vite.shared.config.ts +0 -13
- package/templates/packages/vue-lib-template/vitest.config.ts +0 -13
- /package/{assets/LICENSE → LICENSE} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Commands
|
|
2
|
+
|
|
3
|
+
## upgrade (alias: up)
|
|
4
|
+
|
|
5
|
+
Purpose: sync monorepo assets and scripts into the workspace.
|
|
6
|
+
Usage:
|
|
7
|
+
|
|
8
|
+
- npx monorepo up
|
|
9
|
+
- npx monorepo upgrade
|
|
10
|
+
Options:
|
|
11
|
+
- --interactive: prompt for overwrites
|
|
12
|
+
- --core: sync core config only (skip GitHub assets)
|
|
13
|
+
- --outDir <dir>: write to another directory
|
|
14
|
+
- --skip-overwrite: never overwrite existing files
|
|
15
|
+
|
|
16
|
+
## init
|
|
17
|
+
|
|
18
|
+
Purpose: initialize package.json and README.md.
|
|
19
|
+
Usage:
|
|
20
|
+
|
|
21
|
+
- npx monorepo init
|
|
22
|
+
|
|
23
|
+
## sync
|
|
24
|
+
|
|
25
|
+
Purpose: sync workspace packages to npmmirror.
|
|
26
|
+
Usage:
|
|
27
|
+
|
|
28
|
+
- npx monorepo sync
|
|
29
|
+
|
|
30
|
+
## clean
|
|
31
|
+
|
|
32
|
+
Purpose: remove selected packages and update the @icebreakers/monorepo version.
|
|
33
|
+
Usage:
|
|
34
|
+
|
|
35
|
+
- npx monorepo clean
|
|
36
|
+
Options:
|
|
37
|
+
- --yes: auto confirm
|
|
38
|
+
- --include-private
|
|
39
|
+
- --pinned-version <version>
|
|
40
|
+
|
|
41
|
+
## mirror
|
|
42
|
+
|
|
43
|
+
Purpose: set VSCode binary mirror env.
|
|
44
|
+
Usage:
|
|
45
|
+
|
|
46
|
+
- npx monorepo mirror
|
|
47
|
+
|
|
48
|
+
## ai create (alias: ai new)
|
|
49
|
+
|
|
50
|
+
Purpose: generate agentic prompt templates.
|
|
51
|
+
Usage:
|
|
52
|
+
|
|
53
|
+
- npx monorepo ai create
|
|
54
|
+
- npx monorepo ai create --name checkout
|
|
55
|
+
- npx monorepo ai create --tasks agentic/tasks.json --format md -f
|
|
56
|
+
Options:
|
|
57
|
+
- --output <path>
|
|
58
|
+
- --force
|
|
59
|
+
- --format <md|json>
|
|
60
|
+
- --dir <path>
|
|
61
|
+
- --name <name>
|
|
62
|
+
- --tasks <file>
|
|
63
|
+
Notes:
|
|
64
|
+
- If no --output or --name is set, it prompts for a folder and writes to
|
|
65
|
+
agentic/prompts/<timestamp>/prompt.md.
|
|
66
|
+
- If --tasks is used, it expects a JSON array of strings or objects.
|
|
67
|
+
|
|
68
|
+
## new (alias: create)
|
|
69
|
+
|
|
70
|
+
Purpose: create a new package from a template.
|
|
71
|
+
Usage:
|
|
72
|
+
|
|
73
|
+
- npx monorepo new [path]
|
|
74
|
+
Notes:
|
|
75
|
+
- Prompts for a template choice unless defaults are set in monorepo.config.ts.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# monorepo.config.ts
|
|
2
|
+
|
|
3
|
+
Use `defineMonorepoConfig` to set default options for CLI commands.
|
|
4
|
+
Only include the fields you need.
|
|
5
|
+
|
|
6
|
+
Example:
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { defineMonorepoConfig } from '@icebreakers/monorepo'
|
|
10
|
+
|
|
11
|
+
export default defineMonorepoConfig({
|
|
12
|
+
commands: {
|
|
13
|
+
ai: {
|
|
14
|
+
baseDir: 'agentic/prompts',
|
|
15
|
+
format: 'md',
|
|
16
|
+
force: false,
|
|
17
|
+
tasksFile: 'agentic/tasks.json',
|
|
18
|
+
},
|
|
19
|
+
create: {
|
|
20
|
+
defaultTemplate: 'tsdown',
|
|
21
|
+
renameJson: false,
|
|
22
|
+
templatesDir: 'packages/monorepo/templates',
|
|
23
|
+
},
|
|
24
|
+
clean: {
|
|
25
|
+
autoConfirm: false,
|
|
26
|
+
ignorePackages: ['docs'],
|
|
27
|
+
includePrivate: true,
|
|
28
|
+
pinnedVersion: 'latest',
|
|
29
|
+
},
|
|
30
|
+
sync: {
|
|
31
|
+
concurrency: 4,
|
|
32
|
+
command: 'cnpm sync {name}',
|
|
33
|
+
patterns: ['apps/*', 'packages/*', 'templates/*'],
|
|
34
|
+
},
|
|
35
|
+
upgrade: {
|
|
36
|
+
skipOverwrite: false,
|
|
37
|
+
targets: ['.github', 'monorepo.config.ts'],
|
|
38
|
+
mergeTargets: true,
|
|
39
|
+
},
|
|
40
|
+
init: {
|
|
41
|
+
skipReadme: false,
|
|
42
|
+
skipPkgJson: false,
|
|
43
|
+
skipChangeset: false,
|
|
44
|
+
skipIssueTemplateConfig: false,
|
|
45
|
+
},
|
|
46
|
+
mirror: {
|
|
47
|
+
env: {
|
|
48
|
+
VSCode_CLI_MIRROR: 'https://example.invalid',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
})
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Key areas:
|
|
56
|
+
|
|
57
|
+
- ai: default output, format, batch tasks
|
|
58
|
+
- create: default template and template directory
|
|
59
|
+
- clean: auto confirm and pinned version control
|
|
60
|
+
- sync: workspace selection and concurrency
|
|
61
|
+
- upgrade: overwrite behavior and extra targets
|
|
62
|
+
- init: skip steps for README/package.json/changeset
|
|
63
|
+
- mirror: add or override env mirrors
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Templates
|
|
2
|
+
|
|
3
|
+
`monorepo new [path]` copies a template into the target path. If you want an app
|
|
4
|
+
under `apps/`, pass the path explicitly, e.g. `apps/my-app`.
|
|
5
|
+
|
|
6
|
+
Built-in template map:
|
|
7
|
+
|
|
8
|
+
- tsup -> templates/tsup => packages/tsup
|
|
9
|
+
- tsdown -> templates/tsdown => packages/tsdown
|
|
10
|
+
- unbuild -> templates/unbuild => packages/unbuild
|
|
11
|
+
- vue-lib -> templates/vue-lib => packages/vue-lib
|
|
12
|
+
- hono-server -> templates/server => apps/server
|
|
13
|
+
- vue-hono -> templates/client => apps/client
|
|
14
|
+
- vitepress -> templates/vitepress => apps/website
|
|
15
|
+
- cli -> templates/cli => apps/cli
|
|
16
|
+
|
|
17
|
+
Notes:
|
|
18
|
+
|
|
19
|
+
- The command prompts for template selection unless defaults are set in
|
|
20
|
+
monorepo.config.ts.
|
|
21
|
+
- Override mappings with `commands.create.templateMap` and `commands.create.templatesDir`.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json",
|
|
3
|
-
"changelog": [
|
|
4
|
-
"@icebreakers/changelog-github",
|
|
5
|
-
{
|
|
6
|
-
"repo": "sonofmagic/monorepo-template"
|
|
7
|
-
}
|
|
8
|
-
],
|
|
9
|
-
"commit": false,
|
|
10
|
-
"fixed": [],
|
|
11
|
-
"linked": [],
|
|
12
|
-
"access": "public",
|
|
13
|
-
"baseBranch": "main",
|
|
14
|
-
"updateInternalDependencies": "patch",
|
|
15
|
-
"ignore": []
|
|
16
|
-
}
|
package/assets/.dockerignore
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules
|
|
3
|
-
**/node_modules/
|
|
4
|
-
|
|
5
|
-
# Build outputs
|
|
6
|
-
dist
|
|
7
|
-
**/dist/
|
|
8
|
-
|
|
9
|
-
# Version control
|
|
10
|
-
.git
|
|
11
|
-
.gitignore
|
|
12
|
-
.github
|
|
13
|
-
|
|
14
|
-
# Documentation
|
|
15
|
-
*.md
|
|
16
|
-
README*
|
|
17
|
-
|
|
18
|
-
# Testing
|
|
19
|
-
coverage
|
|
20
|
-
**/coverage/
|
|
21
|
-
**/*.test.ts
|
|
22
|
-
**/*.test.js
|
|
23
|
-
**/*.spec.ts
|
|
24
|
-
**/*.spec.js
|
|
25
|
-
|
|
26
|
-
# Build caches
|
|
27
|
-
.turbo
|
|
28
|
-
**/.turbo/
|
|
29
|
-
.vitepress/cache
|
|
30
|
-
**/.vitepress/cache
|
|
31
|
-
|
|
32
|
-
# Development
|
|
33
|
-
.vscode
|
|
34
|
-
.idea
|
|
35
|
-
*.log
|
|
36
|
-
.DS_Store
|
|
37
|
-
|
|
38
|
-
# CI/CD
|
|
39
|
-
.github/workflows
|
|
40
|
-
|
|
41
|
-
# Environment
|
|
42
|
-
.env
|
|
43
|
-
.env.*
|
|
44
|
-
!.env.example
|
package/assets/.editorconfig
DELETED
package/assets/.gitattributes
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
# From https://github.com/gitattributes/gitattributes/blob/master/Web.gitattributes
|
|
2
|
-
## GITATTRIBUTES FOR WEB PROJECTS
|
|
3
|
-
#
|
|
4
|
-
# These settings are for any web project.
|
|
5
|
-
#
|
|
6
|
-
# Details per file setting:
|
|
7
|
-
# text These files should be normalized (i.e. convert CRLF to LF).
|
|
8
|
-
# binary These files are binary and should be left untouched.
|
|
9
|
-
#
|
|
10
|
-
# Note that binary is a macro for -text -diff.
|
|
11
|
-
######################################################################
|
|
12
|
-
|
|
13
|
-
# Auto detect
|
|
14
|
-
## Handle line endings automatically for files detected as
|
|
15
|
-
## text and leave all files detected as binary untouched.
|
|
16
|
-
## This will handle all files NOT defined below.
|
|
17
|
-
* text=auto
|
|
18
|
-
|
|
19
|
-
# Source code
|
|
20
|
-
*.bash text eol=lf
|
|
21
|
-
*.bat text eol=crlf
|
|
22
|
-
*.cmd text eol=crlf
|
|
23
|
-
*.coffee text
|
|
24
|
-
*.css text diff=css
|
|
25
|
-
*.htm text diff=html
|
|
26
|
-
*.html text diff=html
|
|
27
|
-
*.inc text
|
|
28
|
-
*.ini text
|
|
29
|
-
*.js text
|
|
30
|
-
*.mjs text
|
|
31
|
-
*.cjs text
|
|
32
|
-
*.json text
|
|
33
|
-
*.jsx text
|
|
34
|
-
*.less text
|
|
35
|
-
*.ls text
|
|
36
|
-
*.map text -diff
|
|
37
|
-
*.od text
|
|
38
|
-
*.onlydata text
|
|
39
|
-
*.php text diff=php
|
|
40
|
-
*.pl text
|
|
41
|
-
*.ps1 text eol=crlf
|
|
42
|
-
*.py text diff=python
|
|
43
|
-
*.rb text diff=ruby
|
|
44
|
-
*.sass text
|
|
45
|
-
*.scm text
|
|
46
|
-
*.scss text diff=css
|
|
47
|
-
*.sh text eol=lf
|
|
48
|
-
.husky/* text eol=lf
|
|
49
|
-
*.sql text
|
|
50
|
-
*.styl text
|
|
51
|
-
*.tag text
|
|
52
|
-
*.ts text
|
|
53
|
-
*.tsx text
|
|
54
|
-
*.xml text
|
|
55
|
-
*.xhtml text diff=html
|
|
56
|
-
|
|
57
|
-
# Docker
|
|
58
|
-
Dockerfile text
|
|
59
|
-
|
|
60
|
-
# Documentation
|
|
61
|
-
*.ipynb text eol=lf
|
|
62
|
-
*.markdown text diff=markdown
|
|
63
|
-
*.md text diff=markdown
|
|
64
|
-
*.mdwn text diff=markdown
|
|
65
|
-
*.mdown text diff=markdown
|
|
66
|
-
*.mkd text diff=markdown
|
|
67
|
-
*.mkdn text diff=markdown
|
|
68
|
-
*.mdtxt text
|
|
69
|
-
*.mdtext text
|
|
70
|
-
*.txt text
|
|
71
|
-
AUTHORS text
|
|
72
|
-
CHANGELOG text
|
|
73
|
-
CHANGES text
|
|
74
|
-
CONTRIBUTING text
|
|
75
|
-
COPYING text
|
|
76
|
-
copyright text
|
|
77
|
-
*COPYRIGHT* text
|
|
78
|
-
INSTALL text
|
|
79
|
-
license text
|
|
80
|
-
LICENSE text
|
|
81
|
-
NEWS text
|
|
82
|
-
readme text
|
|
83
|
-
*README* text
|
|
84
|
-
TODO text
|
|
85
|
-
|
|
86
|
-
# Templates
|
|
87
|
-
*.dot text
|
|
88
|
-
*.ejs text
|
|
89
|
-
*.erb text
|
|
90
|
-
*.haml text
|
|
91
|
-
*.handlebars text
|
|
92
|
-
*.hbs text
|
|
93
|
-
*.hbt text
|
|
94
|
-
*.jade text
|
|
95
|
-
*.latte text
|
|
96
|
-
*.mustache text
|
|
97
|
-
*.njk text
|
|
98
|
-
*.phtml text
|
|
99
|
-
*.svelte text
|
|
100
|
-
*.tmpl text
|
|
101
|
-
*.tpl text
|
|
102
|
-
*.twig text
|
|
103
|
-
*.vue text
|
|
104
|
-
|
|
105
|
-
# Configs
|
|
106
|
-
*.cnf text
|
|
107
|
-
*.conf text
|
|
108
|
-
*.config text
|
|
109
|
-
.editorconfig text
|
|
110
|
-
.env text
|
|
111
|
-
.gitattributes text
|
|
112
|
-
.gitconfig text
|
|
113
|
-
.htaccess text
|
|
114
|
-
*.lock text -diff
|
|
115
|
-
package.json text eol=lf
|
|
116
|
-
package-lock.json text eol=lf -diff
|
|
117
|
-
pnpm-lock.yaml text eol=lf -diff
|
|
118
|
-
.prettierrc text
|
|
119
|
-
yarn.lock text -diff
|
|
120
|
-
*.toml text
|
|
121
|
-
*.yaml text
|
|
122
|
-
*.yml text
|
|
123
|
-
browserslist text
|
|
124
|
-
Makefile text
|
|
125
|
-
makefile text
|
|
126
|
-
# Fixes syntax highlighting on GitHub to allow comments
|
|
127
|
-
tsconfig.json linguist-language=JSON-with-Comments
|
|
128
|
-
|
|
129
|
-
# Heroku
|
|
130
|
-
Procfile text
|
|
131
|
-
|
|
132
|
-
# Graphics
|
|
133
|
-
*.ai binary
|
|
134
|
-
*.bmp binary
|
|
135
|
-
*.eps binary
|
|
136
|
-
*.gif binary
|
|
137
|
-
*.gifv binary
|
|
138
|
-
*.ico binary
|
|
139
|
-
*.jng binary
|
|
140
|
-
*.jp2 binary
|
|
141
|
-
*.jpg binary
|
|
142
|
-
*.jpeg binary
|
|
143
|
-
*.jpx binary
|
|
144
|
-
*.jxr binary
|
|
145
|
-
*.pdf binary
|
|
146
|
-
*.png binary
|
|
147
|
-
*.psb binary
|
|
148
|
-
*.psd binary
|
|
149
|
-
# SVG treated as an asset (binary) by default.
|
|
150
|
-
*.svg text
|
|
151
|
-
# If you want to treat it as binary,
|
|
152
|
-
# use the following line instead.
|
|
153
|
-
# *.svg binary
|
|
154
|
-
*.svgz binary
|
|
155
|
-
*.tif binary
|
|
156
|
-
*.tiff binary
|
|
157
|
-
*.wbmp binary
|
|
158
|
-
*.webp binary
|
|
159
|
-
|
|
160
|
-
# Audio
|
|
161
|
-
*.kar binary
|
|
162
|
-
*.m4a binary
|
|
163
|
-
*.mid binary
|
|
164
|
-
*.midi binary
|
|
165
|
-
*.mp3 binary
|
|
166
|
-
*.ogg binary
|
|
167
|
-
*.ra binary
|
|
168
|
-
|
|
169
|
-
# Video
|
|
170
|
-
*.3gpp binary
|
|
171
|
-
*.3gp binary
|
|
172
|
-
*.as binary
|
|
173
|
-
*.asf binary
|
|
174
|
-
*.asx binary
|
|
175
|
-
*.avi binary
|
|
176
|
-
*.fla binary
|
|
177
|
-
*.flv binary
|
|
178
|
-
*.m4v binary
|
|
179
|
-
*.mng binary
|
|
180
|
-
*.mov binary
|
|
181
|
-
*.mp4 binary
|
|
182
|
-
*.mpeg binary
|
|
183
|
-
*.mpg binary
|
|
184
|
-
*.ogv binary
|
|
185
|
-
*.swc binary
|
|
186
|
-
*.swf binary
|
|
187
|
-
*.webm binary
|
|
188
|
-
|
|
189
|
-
# Archives
|
|
190
|
-
*.7z binary
|
|
191
|
-
*.gz binary
|
|
192
|
-
*.jar binary
|
|
193
|
-
*.rar binary
|
|
194
|
-
*.tar binary
|
|
195
|
-
*.zip binary
|
|
196
|
-
|
|
197
|
-
# Fonts
|
|
198
|
-
*.ttf binary
|
|
199
|
-
*.eot binary
|
|
200
|
-
*.otf binary
|
|
201
|
-
*.woff binary
|
|
202
|
-
*.woff2 binary
|
|
203
|
-
|
|
204
|
-
# Executables
|
|
205
|
-
*.exe binary
|
|
206
|
-
*.pyc binary
|
|
207
|
-
# Prevents massive diffs caused by vendored, minified files
|
|
208
|
-
**/.yarn/releases/** binary
|
|
209
|
-
**/.yarn/plugins/** binary
|
|
210
|
-
|
|
211
|
-
# RC files (like .babelrc or .eslintrc)
|
|
212
|
-
*.*rc text
|
|
213
|
-
|
|
214
|
-
# Ignore files (like .npmignore or .gitignore)
|
|
215
|
-
*.*ignore text
|
|
216
|
-
|
|
217
|
-
# Prevents massive diffs from built files
|
|
218
|
-
dist/* binary
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
name: 🐞 Bug report
|
|
2
|
-
description: Create a report to help us improve
|
|
3
|
-
title: '[Bug]: '
|
|
4
|
-
labels: [bug]
|
|
5
|
-
assignees:
|
|
6
|
-
- sonofmagic
|
|
7
|
-
body:
|
|
8
|
-
- type: markdown
|
|
9
|
-
attributes:
|
|
10
|
-
value: |
|
|
11
|
-
**Before You Start...**
|
|
12
|
-
|
|
13
|
-
This form is only for submitting bug reports. If you have a usage question
|
|
14
|
-
or are unsure if this is really a bug, make sure to:
|
|
15
|
-
|
|
16
|
-
Also try to search for your issue - it may have already been answered or even fixed in the development branch.
|
|
17
|
-
However, if you find that an old, closed issue still persists in the latest version,
|
|
18
|
-
you should open a new issue using the form below instead of commenting on the old issue.
|
|
19
|
-
- type: input
|
|
20
|
-
id: version
|
|
21
|
-
attributes:
|
|
22
|
-
label: version
|
|
23
|
-
validations:
|
|
24
|
-
required: true
|
|
25
|
-
- type: input
|
|
26
|
-
id: reproduction-link
|
|
27
|
-
attributes:
|
|
28
|
-
label: Link to minimal reproduction
|
|
29
|
-
description: |
|
|
30
|
-
You can always provide a GitHub repository.
|
|
31
|
-
|
|
32
|
-
The reproduction should be **minimal** - i.e. it should contain only the bare minimum amount of code needed
|
|
33
|
-
to show the bug.
|
|
34
|
-
|
|
35
|
-
Please do not just fill in a random link. The issue will be closed if no valid reproduction is provided.
|
|
36
|
-
placeholder: Reproduction Link
|
|
37
|
-
validations:
|
|
38
|
-
required: true
|
|
39
|
-
- type: textarea
|
|
40
|
-
id: steps-to-reproduce
|
|
41
|
-
attributes:
|
|
42
|
-
label: Steps to reproduce
|
|
43
|
-
description: |
|
|
44
|
-
What do we need to do after opening your repro in order to make the bug happen? Clear and concise reproduction instructions are important for us to be able to triage your issue in a timely manner. Note that you can use [Markdown](https://guides.github.com/features/mastering-markdown/) to format lists and code.
|
|
45
|
-
placeholder: Steps to reproduce
|
|
46
|
-
validations:
|
|
47
|
-
required: true
|
|
48
|
-
- type: textarea
|
|
49
|
-
id: expected
|
|
50
|
-
attributes:
|
|
51
|
-
label: What is expected?
|
|
52
|
-
validations:
|
|
53
|
-
required: true
|
|
54
|
-
- type: textarea
|
|
55
|
-
id: actually-happening
|
|
56
|
-
attributes:
|
|
57
|
-
label: What is actually happening?
|
|
58
|
-
validations:
|
|
59
|
-
required: true
|
|
60
|
-
- type: textarea
|
|
61
|
-
id: system-info
|
|
62
|
-
attributes:
|
|
63
|
-
label: System Info
|
|
64
|
-
description: Output of `npx -y envinfo@latest --system --npmPackages --binaries`
|
|
65
|
-
render: shell
|
|
66
|
-
placeholder: System, Binaries
|
|
67
|
-
- type: textarea
|
|
68
|
-
id: additional-comments
|
|
69
|
-
attributes:
|
|
70
|
-
label: Any additional comments?
|
|
71
|
-
description: e.g. some background/context of how you ran into this bug.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
blank_issues_enabled: false
|
|
2
|
-
contact_links:
|
|
3
|
-
- name: Feature Request
|
|
4
|
-
url: https://github.com/sonofmagic/monorepo-template/discussions
|
|
5
|
-
about: Suggest new features for consideration
|
|
6
|
-
# - name: Discord Chat
|
|
7
|
-
# url: https://chat.vuejs.org
|
|
8
|
-
# about: Ask questions and discuss with other Vue users in real time.
|
|
9
|
-
# - name: Questions & Discussions
|
|
10
|
-
# url: https://github.com/vuejs/core/discussions
|
|
11
|
-
# about: Use GitHub discussions for message-board style questions and discussions.
|
|
12
|
-
# - name: Patreon
|
|
13
|
-
# url: https://www.patreon.com/evanyou
|
|
14
|
-
# about: Love Vue.js? Please consider supporting us via Patreon.
|
|
15
|
-
# - name: Open Collective
|
|
16
|
-
# url: https://opencollective.com/vuejs/donate
|
|
17
|
-
# about: Love Vue.js? Please consider supporting us via Open Collective.
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
# push:
|
|
5
|
-
# branches: ['main']
|
|
6
|
-
pull_request:
|
|
7
|
-
types: [opened, synchronize]
|
|
8
|
-
workflow_dispatch:
|
|
9
|
-
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
build:
|
|
15
|
-
name: Build and Test
|
|
16
|
-
timeout-minutes: 15
|
|
17
|
-
strategy:
|
|
18
|
-
fail-fast: false
|
|
19
|
-
matrix:
|
|
20
|
-
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
21
|
-
node-version: [20, 22, 24]
|
|
22
|
-
runs-on: ${{ matrix.os }}
|
|
23
|
-
# Remote Caching enabled - configure TURBO_TOKEN and TURBO_TEAM in repository settings
|
|
24
|
-
env:
|
|
25
|
-
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
26
|
-
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
27
|
-
|
|
28
|
-
steps:
|
|
29
|
-
- name: Check out code
|
|
30
|
-
uses: actions/checkout@v6
|
|
31
|
-
with:
|
|
32
|
-
fetch-depth: 2
|
|
33
|
-
|
|
34
|
-
- uses: pnpm/action-setup@v4
|
|
35
|
-
|
|
36
|
-
- name: Setup Node.js environment
|
|
37
|
-
uses: actions/setup-node@v6
|
|
38
|
-
with:
|
|
39
|
-
node-version: ${{ matrix.node-version }}
|
|
40
|
-
cache: pnpm
|
|
41
|
-
cache-dependency-path: pnpm-lock.yaml
|
|
42
|
-
|
|
43
|
-
- name: Install dependencies
|
|
44
|
-
run: pnpm install --frozen-lockfile
|
|
45
|
-
|
|
46
|
-
- name: Security Audit
|
|
47
|
-
run: pnpm audit --audit-level=moderate
|
|
48
|
-
continue-on-error: true
|
|
49
|
-
|
|
50
|
-
- name: Lint
|
|
51
|
-
run: pnpm lint
|
|
52
|
-
|
|
53
|
-
- name: Build
|
|
54
|
-
run: pnpm build
|
|
55
|
-
|
|
56
|
-
- name: Test
|
|
57
|
-
run: pnpm test
|
|
58
|
-
|
|
59
|
-
- name: Upload coverage reports to Codecov
|
|
60
|
-
uses: codecov/codecov-action@v5
|
|
61
|
-
env:
|
|
62
|
-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
workflow_dispatch:
|
|
8
|
-
|
|
9
|
-
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
10
|
-
env:
|
|
11
|
-
HUSKY: 0
|
|
12
|
-
|
|
13
|
-
permissions:
|
|
14
|
-
contents: write # to create release (changesets/action)
|
|
15
|
-
issues: write # to post issue comments (changesets/action)
|
|
16
|
-
pull-requests: write # to create pull request (changesets/action)
|
|
17
|
-
id-token: write # to use OpenID Connect token for provenance (changesets/action)
|
|
18
|
-
|
|
19
|
-
jobs:
|
|
20
|
-
release:
|
|
21
|
-
name: Release
|
|
22
|
-
runs-on: ubuntu-latest
|
|
23
|
-
steps:
|
|
24
|
-
- name: Checkout Repo
|
|
25
|
-
uses: actions/checkout@v6
|
|
26
|
-
|
|
27
|
-
- uses: pnpm/action-setup@v4
|
|
28
|
-
|
|
29
|
-
- name: Setup Node.js environment
|
|
30
|
-
uses: actions/setup-node@v6
|
|
31
|
-
with:
|
|
32
|
-
node-version: 24
|
|
33
|
-
cache: pnpm
|
|
34
|
-
|
|
35
|
-
- name: Install Dependencies
|
|
36
|
-
run: pnpm i
|
|
37
|
-
|
|
38
|
-
- name: Create Release Pull Request or Publish to npm
|
|
39
|
-
id: changesets
|
|
40
|
-
uses: changesets/action@v1
|
|
41
|
-
with:
|
|
42
|
-
# This expects you to have a script called release which does a build for your packages and calls changeset publish
|
|
43
|
-
publish: pnpm publish-packages
|
|
44
|
-
env:
|
|
45
|
-
# this doesn't work but semantic-release works
|
|
46
|
-
# see https://github.com/sonofmagic/npm-lib-rollup-template/blob/main/.github/workflows/release.yml#L46
|
|
47
|
-
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
48
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
49
|
-
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
50
|
-
npm_config_registry: https://registry.npmjs.org
|
|
51
|
-
# https://github.com/changesets/changesets/pull/1659
|
|
52
|
-
NPM_CONFIG_PROVENANCE: true
|
|
53
|
-
|
|
54
|
-
- name: Upload coverage reports to Codecov
|
|
55
|
-
uses: codecov/codecov-action@v5
|
|
56
|
-
env:
|
|
57
|
-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
package/assets/.husky/commit-msg
DELETED
package/assets/.husky/pre-commit
DELETED