@skirtle/create-vue-lib 0.1.3 → 0.1.5
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/dist/index.cjs +6168 -6082
- package/dist/template/base/config/package.json.ejs +14 -14
- package/dist/template/base/config/packages/@projectName@/package.json.ejs +21 -21
- package/dist/template/base/config/pnpm-workspace.yaml.ejs +45 -6
- package/dist/template/ci/config/.github/workflows/ci.yml.ejs +7 -5
- package/dist/template/gh-pages/config/.github/workflows/pages.yml.ejs +14 -6
- package/dist/template/npm-publish/config/.github/workflows/publish.yml.ejs +47 -0
- package/dist/template/playground/config/packages/playground/package.json.ejs +13 -13
- package/dist/template/vitepress/config/packages/docs/package.json.ejs +13 -12
- package/package.json +3 -3
- package/dist/template/versions.json +0 -35
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": true,
|
|
3
3
|
"type": "module",
|
|
4
|
-
"packageManager": "pnpm@10.
|
|
4
|
+
"packageManager": "pnpm@10.33.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^20.19.0 || >=22.12.0"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
<%_ if (config.includeEsLint) { _%>
|
|
10
|
-
"@eslint/compat": "
|
|
10
|
+
"@eslint/compat": "catalog:",
|
|
11
11
|
<%_ if (config.includeEsLintStylistic) { _%>
|
|
12
|
-
"@stylistic/eslint-plugin": "
|
|
12
|
+
"@stylistic/eslint-plugin": "catalog:",
|
|
13
13
|
<%_ } _%>
|
|
14
|
-
"@tsconfig/node24": "
|
|
15
|
-
"@types/node": "
|
|
14
|
+
"@tsconfig/node24": "catalog:",
|
|
15
|
+
"@types/node": "catalog:",
|
|
16
16
|
<%_ if (config.includeVitest) { _%>
|
|
17
|
-
"@vitest/eslint-plugin": "
|
|
17
|
+
"@vitest/eslint-plugin": "catalog:",
|
|
18
18
|
<%_ } _%>
|
|
19
|
-
"@vue/eslint-config-typescript": "
|
|
20
|
-
"eslint": "
|
|
21
|
-
"eslint-plugin-vue": "
|
|
22
|
-
"jiti": "
|
|
23
|
-
"lint-staged": "
|
|
24
|
-
"npm-run-all2": "
|
|
19
|
+
"@vue/eslint-config-typescript": "catalog:",
|
|
20
|
+
"eslint": "catalog:",
|
|
21
|
+
"eslint-plugin-vue": "catalog:",
|
|
22
|
+
"jiti": "catalog:",
|
|
23
|
+
"lint-staged": "catalog:",
|
|
24
|
+
"npm-run-all2": "catalog:",
|
|
25
25
|
<%_ } _%>
|
|
26
|
-
"simple-git-hooks": "
|
|
26
|
+
"simple-git-hooks": "catalog:",
|
|
27
27
|
<%_ if (config.includeEsLint) { _%>
|
|
28
|
-
"typescript": "
|
|
28
|
+
"typescript": "catalog:"
|
|
29
29
|
<%_ } _%>
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
@@ -38,35 +38,35 @@
|
|
|
38
38
|
"vue": "^3.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@rollup/plugin-replace": "
|
|
41
|
+
"@rollup/plugin-replace": "catalog:",
|
|
42
42
|
<%_ if (config.includeTailwind) { _%>
|
|
43
|
-
"@tailwindcss/vite": "
|
|
43
|
+
"@tailwindcss/vite": "catalog:",
|
|
44
44
|
<%_ } _%>
|
|
45
|
-
"@tsconfig/node24": "
|
|
46
|
-
"@types/jsdom": "
|
|
47
|
-
"@types/node": "
|
|
48
|
-
"@vitejs/plugin-vue": "
|
|
45
|
+
"@tsconfig/node24": "catalog:",
|
|
46
|
+
"@types/jsdom": "catalog:",
|
|
47
|
+
"@types/node": "catalog:",
|
|
48
|
+
"@vitejs/plugin-vue": "catalog:",
|
|
49
49
|
<%_ if (config.includeVitest) { _%>
|
|
50
|
-
"@vitest/coverage-v8": "
|
|
51
|
-
"@vue/test-utils": "
|
|
50
|
+
"@vitest/coverage-v8": "catalog:",
|
|
51
|
+
"@vue/test-utils": "catalog:",
|
|
52
52
|
<%_ } _%>
|
|
53
|
-
"@vue/tsconfig": "
|
|
54
|
-
"copyfiles": "
|
|
55
|
-
"jsdom": "
|
|
56
|
-
"npm-run-all2": "
|
|
57
|
-
"publint": "
|
|
58
|
-
"rimraf": "
|
|
53
|
+
"@vue/tsconfig": "catalog:",
|
|
54
|
+
"copyfiles": "catalog:",
|
|
55
|
+
"jsdom": "catalog:",
|
|
56
|
+
"npm-run-all2": "catalog:",
|
|
57
|
+
"publint": "catalog:",
|
|
58
|
+
"rimraf": "catalog:",
|
|
59
59
|
<%_ if (config.includeTailwind) { _%>
|
|
60
|
-
"tailwindcss": "
|
|
60
|
+
"tailwindcss": "catalog:",
|
|
61
61
|
<%_ } _%>
|
|
62
|
-
"typescript": "
|
|
63
|
-
"vite": "
|
|
64
|
-
"vite-plugin-dts": "
|
|
62
|
+
"typescript": "catalog:",
|
|
63
|
+
"vite": "catalog:",
|
|
64
|
+
"vite-plugin-dts": "catalog:",
|
|
65
65
|
<%_ if (config.includeVitest) { _%>
|
|
66
|
-
"vitest": "
|
|
66
|
+
"vitest": "catalog:",
|
|
67
67
|
<%_ } _%>
|
|
68
|
-
"vue": "
|
|
69
|
-
"vue-tsc": "
|
|
68
|
+
"vue": "catalog:",
|
|
69
|
+
"vue-tsc": "catalog:"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"clean:dist": "rimraf dist",
|
|
@@ -11,11 +11,50 @@ packages:
|
|
|
11
11
|
<%_ } _%>
|
|
12
12
|
<%_ } _%>
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
- simple-git-hooks
|
|
16
|
-
|
|
17
|
-
onlyBuiltDependencies:
|
|
14
|
+
allowBuilds:
|
|
18
15
|
<%_ if (config.includeTailwind) { _%>
|
|
19
|
-
|
|
16
|
+
'@tailwindcss/oxide': true
|
|
20
17
|
<%_ } _%>
|
|
21
|
-
|
|
18
|
+
'esbuild': true
|
|
19
|
+
'simple-git-hooks': false
|
|
20
|
+
|
|
21
|
+
catalog:
|
|
22
|
+
'@eslint/compat': ^2.0.0
|
|
23
|
+
'@rollup/plugin-replace': ^6.0.3
|
|
24
|
+
'@stylistic/eslint-plugin': ^5.6.1
|
|
25
|
+
'@tailwindcss/vite': ^4.1.18
|
|
26
|
+
'@tsconfig/node24': ^24.0.3
|
|
27
|
+
'@types/jsdom': ^27.0.0
|
|
28
|
+
'@types/node': ^24.10.4
|
|
29
|
+
'@vitejs/plugin-vue': ^6.0.3
|
|
30
|
+
'@vitest/coverage-v8': ^4.0.16
|
|
31
|
+
'@vitest/eslint-plugin': ^1.6.5
|
|
32
|
+
'@vue/eslint-config-typescript': ^14.6.0
|
|
33
|
+
'@vue/test-utils': ^2.4.6
|
|
34
|
+
'@vue/tsconfig': ^0.8.1
|
|
35
|
+
copyfiles: ^2.4.1
|
|
36
|
+
eslint: ^9.39.2
|
|
37
|
+
eslint-plugin-vue: ~10.6.2
|
|
38
|
+
jiti: ^2.6.1
|
|
39
|
+
jsdom: ^27.3.0
|
|
40
|
+
lint-staged: ^16.2.7
|
|
41
|
+
npm-run-all2: ^8.0.4
|
|
42
|
+
postcss: ^8.5.6
|
|
43
|
+
publint: ^0.3.16
|
|
44
|
+
rimraf: ^6.1.2
|
|
45
|
+
simple-git-hooks: ^2.13.1
|
|
46
|
+
tailwindcss: ^4.1.18
|
|
47
|
+
typescript: ~5.9.3
|
|
48
|
+
vite: ^7.3.0
|
|
49
|
+
vite-plugin-dts: ^4.5.4
|
|
50
|
+
vite-plugin-vue-devtools: ^8.0.5
|
|
51
|
+
vitepress: ^1.6.4
|
|
52
|
+
vitest: ^4.0.16
|
|
53
|
+
vue: ^3.5.26
|
|
54
|
+
vue-tsc: ^3.2.1
|
|
55
|
+
|
|
56
|
+
cleanupUnusedCatalogs: true
|
|
57
|
+
|
|
58
|
+
dedupePeers: true
|
|
59
|
+
|
|
60
|
+
minimumReleaseAge: 1440
|
|
@@ -3,16 +3,13 @@ name: CI
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
|
-
-
|
|
6
|
+
- '**'
|
|
7
7
|
pull_request:
|
|
8
8
|
branches:
|
|
9
|
-
-
|
|
9
|
+
- '**'
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
12
|
ci:
|
|
13
|
-
<%_ if (config.githubPath) { _%>
|
|
14
|
-
if: github.repository == '<%- config.githubPath %>'
|
|
15
|
-
<%_ } _%>
|
|
16
13
|
runs-on: ubuntu-latest
|
|
17
14
|
steps:
|
|
18
15
|
- name: Checkout
|
|
@@ -38,3 +35,8 @@ jobs:
|
|
|
38
35
|
- name: Test
|
|
39
36
|
run: pnpm run test:unit
|
|
40
37
|
<%_ } _%>
|
|
38
|
+
<%_ if (config.includePkgPrNew) { _%>
|
|
39
|
+
- name: Release
|
|
40
|
+
if: github.repository == '<%- config.githubPath %>'
|
|
41
|
+
run: pnpx pkg-pr-new publish --commentWithSha --pnpm --packageManager=pnpm,npm,yarn './<%- config.packagesDir %><%- config.mainPackageDirName %>'
|
|
42
|
+
<%_ } _%>
|
|
@@ -2,13 +2,18 @@
|
|
|
2
2
|
name: Deploy to GitHub Pages
|
|
3
3
|
|
|
4
4
|
on:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
<%_ if (config.includeNpmPublish) { _%>
|
|
6
|
+
# Allows the workflow to be triggered from other workflows
|
|
7
|
+
workflow_call:
|
|
8
|
+
|
|
9
|
+
<%_ } _%>
|
|
10
|
+
# Run on pushes targeting the `main` branch
|
|
11
|
+
# push:
|
|
12
|
+
# branches:
|
|
13
|
+
# - main
|
|
9
14
|
<%_ if (config.includePlayground) { _%>
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
# paths-ignore:
|
|
16
|
+
# - '<%- config.packagesDir %>playground/**'
|
|
12
17
|
<%_ } _%>
|
|
13
18
|
|
|
14
19
|
# Allows you to run this workflow manually from the Actions tab
|
|
@@ -28,6 +33,9 @@ concurrency:
|
|
|
28
33
|
jobs:
|
|
29
34
|
# Single deploy job since we're just deploying
|
|
30
35
|
deploy:
|
|
36
|
+
<%_ if (config.githubPath) { _%>
|
|
37
|
+
if: github.repository == '<%- config.githubPath %>'
|
|
38
|
+
<%_ } _%>
|
|
31
39
|
environment:
|
|
32
40
|
name: github-pages
|
|
33
41
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Publish package to the npm registry
|
|
2
|
+
name: Publish package to npm
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
# Run the workflow when a new tag is pushed starting with `v`
|
|
6
|
+
# push:
|
|
7
|
+
# tags:
|
|
8
|
+
# - 'v*'
|
|
9
|
+
|
|
10
|
+
# Allows you to run this workflow manually from the Actions tab
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
<%_ if (config.includeGithubPages) { _%>
|
|
16
|
+
pages: write
|
|
17
|
+
<%_ } _%>
|
|
18
|
+
id-token: write
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
publish:
|
|
22
|
+
<%_ if (config.githubPath) { _%>
|
|
23
|
+
if: github.repository == '<%- config.githubPath %>'
|
|
24
|
+
<%_ } _%>
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
steps:
|
|
27
|
+
- name: Checkout
|
|
28
|
+
uses: actions/checkout@v6
|
|
29
|
+
- name: Install pnpm
|
|
30
|
+
uses: pnpm/action-setup@v5
|
|
31
|
+
- name: Set up Node
|
|
32
|
+
uses: actions/setup-node@v6
|
|
33
|
+
with:
|
|
34
|
+
node-version: 24
|
|
35
|
+
cache: 'pnpm'
|
|
36
|
+
registry-url: 'https://registry.npmjs.org'
|
|
37
|
+
- name: Install dependencies
|
|
38
|
+
run: pnpm install
|
|
39
|
+
- name: Build
|
|
40
|
+
run: pnpm --filter "<%- config.scopedPackageName %>" run build
|
|
41
|
+
- name: Publish
|
|
42
|
+
run: pnpm --filter "<%- config.scopedPackageName %>" publish
|
|
43
|
+
<%_ if (config.includeGithubPages) { _%>
|
|
44
|
+
docs:
|
|
45
|
+
needs: publish
|
|
46
|
+
uses: ./.github/workflows/pages.yml
|
|
47
|
+
<%_ } _%>
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
"private": true,
|
|
3
3
|
"type": "module",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"vue": "
|
|
5
|
+
"vue": "catalog:"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
<%_ if (config.includeTailwind) { _%>
|
|
9
|
-
"@tailwindcss/vite": "
|
|
9
|
+
"@tailwindcss/vite": "catalog:",
|
|
10
10
|
<%_ } _%>
|
|
11
|
-
"@tsconfig/node24": "
|
|
12
|
-
"@types/node": "
|
|
13
|
-
"@vitejs/plugin-vue": "
|
|
14
|
-
"@vue/tsconfig": "
|
|
15
|
-
"npm-run-all2": "
|
|
16
|
-
"rimraf": "
|
|
11
|
+
"@tsconfig/node24": "catalog:",
|
|
12
|
+
"@types/node": "catalog:",
|
|
13
|
+
"@vitejs/plugin-vue": "catalog:",
|
|
14
|
+
"@vue/tsconfig": "catalog:",
|
|
15
|
+
"npm-run-all2": "catalog:",
|
|
16
|
+
"rimraf": "catalog:",
|
|
17
17
|
<%_ if (config.includeTailwind) { _%>
|
|
18
|
-
"tailwindcss": "
|
|
18
|
+
"tailwindcss": "catalog:",
|
|
19
19
|
<%_ } _%>
|
|
20
|
-
"typescript": "
|
|
21
|
-
"vite": "
|
|
22
|
-
"vite-plugin-vue-devtools": "
|
|
23
|
-
"vue-tsc": "
|
|
20
|
+
"typescript": "catalog:",
|
|
21
|
+
"vite": "catalog:",
|
|
22
|
+
"vite-plugin-vue-devtools": "catalog:",
|
|
23
|
+
"vue-tsc": "catalog:"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"clean": "rimraf dist",
|
|
@@ -2,26 +2,27 @@
|
|
|
2
2
|
"private": true,
|
|
3
3
|
"type": "module",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"vue": "
|
|
5
|
+
"vue": "catalog:"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
<%_ if (config.includeTailwind) { _%>
|
|
9
|
-
"@tailwindcss/vite": "
|
|
9
|
+
"@tailwindcss/vite": "catalog:",
|
|
10
10
|
<%_ } _%>
|
|
11
|
-
"@tsconfig/node24": "
|
|
12
|
-
"@types/node": "
|
|
13
|
-
"@vue/tsconfig": "
|
|
14
|
-
"npm-run-all2": "
|
|
11
|
+
"@tsconfig/node24": "catalog:",
|
|
12
|
+
"@types/node": "catalog:",
|
|
13
|
+
"@vue/tsconfig": "catalog:",
|
|
14
|
+
"npm-run-all2": "catalog:",
|
|
15
15
|
<%_ if (config.includeVpRaw) { _%>
|
|
16
|
-
"postcss": "
|
|
16
|
+
"postcss": "catalog:",
|
|
17
17
|
<%_ } _%>
|
|
18
|
-
"rimraf": "
|
|
18
|
+
"rimraf": "catalog:",
|
|
19
19
|
<%_ if (config.includeTailwind) { _%>
|
|
20
|
-
"tailwindcss": "
|
|
20
|
+
"tailwindcss": "catalog:",
|
|
21
21
|
<%_ } _%>
|
|
22
|
-
"typescript": "
|
|
23
|
-
"
|
|
24
|
-
"
|
|
22
|
+
"typescript": "catalog:",
|
|
23
|
+
"vite": "^5.4.21",
|
|
24
|
+
"vitepress": "catalog:",
|
|
25
|
+
"vue-tsc": "catalog:"
|
|
25
26
|
},
|
|
26
27
|
"scripts": {
|
|
27
28
|
"clean": "rimraf dist .vitepress/cache",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skirtle/create-vue-lib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"author": "skirtle",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Create a library using Vue and Vite",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"prompts": "^2.4.2",
|
|
38
38
|
"publint": "^0.3.16",
|
|
39
39
|
"rimraf": "^6.1.2",
|
|
40
|
-
"
|
|
40
|
+
"tsdown": "^0.21.9",
|
|
41
41
|
"typescript": "~5.9.3"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:package": "publint",
|
|
47
47
|
"build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
|
|
48
48
|
"build:templates": "copyfiles -u 1 -a \"src/template/**\" dist",
|
|
49
|
-
"build:ts": "
|
|
49
|
+
"build:ts": "tsdown",
|
|
50
50
|
"build": "run-s clean build:copy build:templates build:ts lint:package",
|
|
51
51
|
"start": "node ./dist/index.cjs"
|
|
52
52
|
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@eslint/compat": "^2.0.0",
|
|
3
|
-
"@rollup/plugin-replace": "^6.0.3",
|
|
4
|
-
"@stylistic/eslint-plugin": "^5.6.1",
|
|
5
|
-
"@tailwindcss/vite": "^4.1.18",
|
|
6
|
-
"@tsconfig/node24": "^24.0.3",
|
|
7
|
-
"@types/jsdom": "^27.0.0",
|
|
8
|
-
"@types/node": "^24.10.4",
|
|
9
|
-
"@vitejs/plugin-vue": "^6.0.3",
|
|
10
|
-
"@vitest/coverage-v8": "^4.0.16",
|
|
11
|
-
"@vitest/eslint-plugin": "^1.6.5",
|
|
12
|
-
"@vue/eslint-config-typescript": "^14.6.0",
|
|
13
|
-
"@vue/test-utils": "^2.4.6",
|
|
14
|
-
"@vue/tsconfig": "^0.8.1",
|
|
15
|
-
"copyfiles": "^2.4.1",
|
|
16
|
-
"eslint": "^9.39.2",
|
|
17
|
-
"eslint-plugin-vue": "~10.6.2",
|
|
18
|
-
"jiti": "^2.6.1",
|
|
19
|
-
"jsdom": "^27.3.0",
|
|
20
|
-
"lint-staged": "^16.2.7",
|
|
21
|
-
"npm-run-all2": "^8.0.4",
|
|
22
|
-
"postcss": "^8.5.6",
|
|
23
|
-
"publint": "^0.3.16",
|
|
24
|
-
"rimraf": "^6.1.2",
|
|
25
|
-
"simple-git-hooks": "^2.13.1",
|
|
26
|
-
"tailwindcss": "^4.1.18",
|
|
27
|
-
"typescript": "~5.9.3",
|
|
28
|
-
"vite": "^7.3.0",
|
|
29
|
-
"vite-plugin-dts": "^4.5.4",
|
|
30
|
-
"vite-plugin-vue-devtools": "^8.0.5",
|
|
31
|
-
"vitepress": "^1.6.4",
|
|
32
|
-
"vitest": "^4.0.16",
|
|
33
|
-
"vue": "^3.5.26",
|
|
34
|
-
"vue-tsc": "^3.2.1"
|
|
35
|
-
}
|