@skirtle/create-vue-lib 0.0.10 → 0.1.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/dist/index.cjs +6 -6
- package/dist/template/base/config/package.json.ejs +13 -13
- package/dist/template/base/config/packages/@projectName@/package.json.ejs +15 -15
- package/dist/template/ci/config/.github/workflows/ci.yml.ejs +4 -2
- package/dist/template/gh-pages/config/.github/workflows/pages.yml.ejs +6 -1
- package/dist/template/playground/config/packages/playground/package.json.ejs +11 -11
- package/dist/template/playground/config/packages/playground/vite.config.mts.ejs +11 -4
- package/dist/template/vitepress/config/packages/docs/.vitepress/config.mts.ejs +11 -4
- package/dist/template/vitepress/config/packages/docs/package.json.ejs +9 -9
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -5697,7 +5697,7 @@ var import_picocolors = __toESM(require_picocolors(), 1);
|
|
|
5697
5697
|
// package.json
|
|
5698
5698
|
var package_default = {
|
|
5699
5699
|
name: "@skirtle/create-vue-lib",
|
|
5700
|
-
version: "0.0
|
|
5700
|
+
version: "0.1.0",
|
|
5701
5701
|
author: "skirtle",
|
|
5702
5702
|
license: "MIT",
|
|
5703
5703
|
description: "Create a library using Vue and Vite",
|
|
@@ -5717,18 +5717,18 @@ var package_default = {
|
|
|
5717
5717
|
"dist"
|
|
5718
5718
|
],
|
|
5719
5719
|
devDependencies: {
|
|
5720
|
-
"@tsconfig/node22": "^22.0.
|
|
5720
|
+
"@tsconfig/node22": "^22.0.2",
|
|
5721
5721
|
"@types/ejs": "^3.1.5",
|
|
5722
|
-
"@types/node": "^22.
|
|
5722
|
+
"@types/node": "^22.16.5",
|
|
5723
5723
|
"@types/prompts": "^2.4.9",
|
|
5724
5724
|
copyfiles: "^2.4.1",
|
|
5725
5725
|
ejs: "^3.1.10",
|
|
5726
|
-
"npm-run-all2": "^
|
|
5726
|
+
"npm-run-all2": "^8.0.4",
|
|
5727
5727
|
picocolors: "^1.1.1",
|
|
5728
5728
|
prompts: "^2.4.2",
|
|
5729
|
-
publint: "^0.3.
|
|
5729
|
+
publint: "^0.3.12",
|
|
5730
5730
|
rimraf: "^6.0.1",
|
|
5731
|
-
tsup: "^8.
|
|
5731
|
+
tsup: "^8.5.0",
|
|
5732
5732
|
typescript: "~5.8.0"
|
|
5733
5733
|
},
|
|
5734
5734
|
scripts: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": true,
|
|
3
3
|
"type": "module",
|
|
4
|
-
"packageManager": "pnpm@
|
|
4
|
+
"packageManager": "pnpm@10.13.1",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": ">=
|
|
6
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
<%_ if (config.includeEsLint) { _%>
|
|
10
|
-
"@eslint/compat": "^1.
|
|
10
|
+
"@eslint/compat": "^1.3.1",
|
|
11
11
|
<%_ if (config.includeEsLintStylistic) { _%>
|
|
12
|
-
"@stylistic/eslint-plugin": "^
|
|
12
|
+
"@stylistic/eslint-plugin": "^5.2.2",
|
|
13
13
|
<%_ } _%>
|
|
14
|
-
"@tsconfig/node22": "^22.0.
|
|
15
|
-
"@types/node": "^22.
|
|
14
|
+
"@tsconfig/node22": "^22.0.2",
|
|
15
|
+
"@types/node": "^22.16.5",
|
|
16
16
|
<%_ if (config.includeVitest) { _%>
|
|
17
|
-
"@vitest/eslint-plugin": "^1.
|
|
17
|
+
"@vitest/eslint-plugin": "^1.3.4",
|
|
18
18
|
<%_ } _%>
|
|
19
|
-
"@vue/eslint-config-typescript": "^14.
|
|
20
|
-
"eslint": "^9.
|
|
21
|
-
"eslint-plugin-vue": "~10.
|
|
19
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
20
|
+
"eslint": "^9.31.0",
|
|
21
|
+
"eslint-plugin-vue": "~10.3.0",
|
|
22
22
|
"jiti": "^2.4.2",
|
|
23
|
-
"lint-staged": "^
|
|
24
|
-
"npm-run-all2": "^
|
|
23
|
+
"lint-staged": "^16.1.2",
|
|
24
|
+
"npm-run-all2": "^8.0.4",
|
|
25
25
|
<%_ } _%>
|
|
26
|
-
"simple-git-hooks": "^2.
|
|
26
|
+
"simple-git-hooks": "^2.13.0",
|
|
27
27
|
<%_ if (config.includeEsLint) { _%>
|
|
28
28
|
"typescript": "~5.8.0"
|
|
29
29
|
<%_ } _%>
|
|
@@ -40,33 +40,33 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@rollup/plugin-replace": "^6.0.2",
|
|
42
42
|
<%_ if (config.includeTailwind) { _%>
|
|
43
|
-
"@tailwindcss/vite": "^4.1.
|
|
43
|
+
"@tailwindcss/vite": "^4.1.11",
|
|
44
44
|
<%_ } _%>
|
|
45
|
-
"@tsconfig/node22": "^22.0.
|
|
45
|
+
"@tsconfig/node22": "^22.0.2",
|
|
46
46
|
"@types/jsdom": "^21.1.7",
|
|
47
|
-
"@types/node": "^22.
|
|
48
|
-
"@vitejs/plugin-vue": "^
|
|
47
|
+
"@types/node": "^22.16.5",
|
|
48
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
49
49
|
<%_ if (config.includeVitest) { _%>
|
|
50
|
-
"@vitest/coverage-v8": "^3.
|
|
50
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
51
51
|
"@vue/test-utils": "^2.4.6",
|
|
52
52
|
<%_ } _%>
|
|
53
53
|
"@vue/tsconfig": "^0.7.0",
|
|
54
54
|
"copyfiles": "^2.4.1",
|
|
55
|
-
"jsdom": "^26.
|
|
56
|
-
"npm-run-all2": "^
|
|
57
|
-
"publint": "^0.3.
|
|
58
|
-
"rimraf": "^
|
|
55
|
+
"jsdom": "^26.1.0",
|
|
56
|
+
"npm-run-all2": "^8.0.4",
|
|
57
|
+
"publint": "^0.3.12",
|
|
58
|
+
"rimraf": "^6.0.1",
|
|
59
59
|
<%_ if (config.includeTailwind) { _%>
|
|
60
|
-
"tailwindcss": "^4.1.
|
|
60
|
+
"tailwindcss": "^4.1.11",
|
|
61
61
|
<%_ } _%>
|
|
62
62
|
"typescript": "~5.8.0",
|
|
63
|
-
"vite": "^
|
|
64
|
-
"vite-plugin-dts": "^4.5.
|
|
63
|
+
"vite": "^7.0.6",
|
|
64
|
+
"vite-plugin-dts": "^4.5.4",
|
|
65
65
|
<%_ if (config.includeVitest) { _%>
|
|
66
|
-
"vitest": "^3.
|
|
66
|
+
"vitest": "^3.2.4",
|
|
67
67
|
<%_ } _%>
|
|
68
|
-
"vue": "^3.5.
|
|
69
|
-
"vue-tsc": "^
|
|
68
|
+
"vue": "^3.5.18",
|
|
69
|
+
"vue-tsc": "^3.0.4"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"clean:dist": "rimraf dist",
|
|
@@ -4,7 +4,12 @@ name: Deploy to GitHub Pages
|
|
|
4
4
|
on:
|
|
5
5
|
# Runs on pushes targeting the default branch
|
|
6
6
|
push:
|
|
7
|
-
branches:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
<%_ if (config.includePlayground) { _%>
|
|
10
|
+
paths-ignore:
|
|
11
|
+
- '<%- config.packagesDir %>playground/**'
|
|
12
|
+
<%_ } _%>
|
|
8
13
|
|
|
9
14
|
# Allows you to run this workflow manually from the Actions tab
|
|
10
15
|
workflow_dispatch:
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
"private": true,
|
|
3
3
|
"type": "module",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"vue": "^3.5.
|
|
5
|
+
"vue": "^3.5.18"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
<%_ if (config.includeTailwind) { _%>
|
|
9
|
-
"@tailwindcss/vite": "^4.1.
|
|
9
|
+
"@tailwindcss/vite": "^4.1.11",
|
|
10
10
|
<%_ } _%>
|
|
11
|
-
"@tsconfig/node22": "^22.0.
|
|
12
|
-
"@types/node": "^22.
|
|
13
|
-
"@vitejs/plugin-vue": "^
|
|
11
|
+
"@tsconfig/node22": "^22.0.2",
|
|
12
|
+
"@types/node": "^22.16.5",
|
|
13
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
14
14
|
"@vue/tsconfig": "^0.7.0",
|
|
15
|
-
"npm-run-all2": "^
|
|
16
|
-
"rimraf": "^
|
|
15
|
+
"npm-run-all2": "^8.0.4",
|
|
16
|
+
"rimraf": "^6.0.1",
|
|
17
17
|
<%_ if (config.includeTailwind) { _%>
|
|
18
|
-
"tailwindcss": "^4.1.
|
|
18
|
+
"tailwindcss": "^4.1.11",
|
|
19
19
|
<%_ } _%>
|
|
20
20
|
"typescript": "~5.8.0",
|
|
21
|
-
"vite": "^
|
|
22
|
-
"vite-plugin-vue-devtools": "^
|
|
23
|
-
"vue-tsc": "^
|
|
21
|
+
"vite": "^7.0.6",
|
|
22
|
+
"vite-plugin-vue-devtools": "^8.0.0",
|
|
23
|
+
"vue-tsc": "^3.0.4"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"clean": "rimraf dist",
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
<%_ if (config.includeAtAliases) { _%>
|
|
2
|
+
import { relative, sep as pathSeparator } from 'node:path'
|
|
3
|
+
<%_ } _%>
|
|
1
4
|
import { fileURLToPath, URL } from 'node:url'
|
|
2
5
|
|
|
3
6
|
import { defineConfig, type UserConfig } from 'vite'
|
|
@@ -28,10 +31,14 @@ export default defineConfig(({ mode }): UserConfig => ({
|
|
|
28
31
|
find: '@',
|
|
29
32
|
replacement: '@',
|
|
30
33
|
customResolver(source, importer, options) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
)
|
|
34
|
+
let target = playgroundSrc
|
|
35
|
+
|
|
36
|
+
// If the importer is inside librarySrc we resolve @ to that path
|
|
37
|
+
if (importer && relative(importer, librarySrc).split(pathSeparator).every(p => p === '..')) {
|
|
38
|
+
target = librarySrc
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const filePath = source.replace(/^@\//, target)
|
|
35
42
|
|
|
36
43
|
return this.resolve(filePath, importer, options)
|
|
37
44
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
<%_ if (config.includeAtAliases) { _%>
|
|
2
|
+
import { relative, sep as pathSeparator } from 'node:path'
|
|
3
|
+
<%_ } _%>
|
|
1
4
|
import { fileURLToPath, URL } from 'node:url'
|
|
2
5
|
|
|
3
6
|
import { defineConfigWithTheme } from 'vitepress'
|
|
@@ -50,10 +53,14 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
|
|
|
50
53
|
find: '@',
|
|
51
54
|
replacement: '@',
|
|
52
55
|
customResolver(source, importer, options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
)
|
|
56
|
+
let target = docsSrc
|
|
57
|
+
|
|
58
|
+
// If the importer is inside librarySrc we resolve @ to that path
|
|
59
|
+
if (importer && relative(importer, librarySrc).split(pathSeparator).every(p => p === '..')) {
|
|
60
|
+
target = librarySrc
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const filePath = source.replace(/^@\//, target)
|
|
57
64
|
|
|
58
65
|
return this.resolve(filePath, importer, options)
|
|
59
66
|
}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
"private": true,
|
|
3
3
|
"type": "module",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"vue": "^3.5.
|
|
5
|
+
"vue": "^3.5.18"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
<%_ if (config.includeTailwind) { _%>
|
|
9
|
-
"@tailwindcss/vite": "^4.1.
|
|
9
|
+
"@tailwindcss/vite": "^4.1.11",
|
|
10
10
|
<%_ } _%>
|
|
11
|
-
"@tsconfig/node22": "^22.0.
|
|
12
|
-
"@types/node": "^22.
|
|
11
|
+
"@tsconfig/node22": "^22.0.2",
|
|
12
|
+
"@types/node": "^22.16.5",
|
|
13
13
|
"@vue/tsconfig": "^0.7.0",
|
|
14
|
-
"npm-run-all2": "^
|
|
14
|
+
"npm-run-all2": "^8.0.4",
|
|
15
15
|
<%_ if (config.includeVpRaw) { _%>
|
|
16
|
-
"postcss": "^8.5.
|
|
16
|
+
"postcss": "^8.5.6",
|
|
17
17
|
<%_ } _%>
|
|
18
|
-
"rimraf": "^
|
|
18
|
+
"rimraf": "^6.0.1",
|
|
19
19
|
<%_ if (config.includeTailwind) { _%>
|
|
20
|
-
"tailwindcss": "^4.1.
|
|
20
|
+
"tailwindcss": "^4.1.11",
|
|
21
21
|
<%_ } _%>
|
|
22
22
|
"typescript": "~5.8.0",
|
|
23
23
|
"vitepress": "^1.6.3",
|
|
24
|
-
"vue-tsc": "^
|
|
24
|
+
"vue-tsc": "^3.0.4"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"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.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"author": "skirtle",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Create a library using Vue and Vite",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@tsconfig/node22": "^22.0.
|
|
29
|
+
"@tsconfig/node22": "^22.0.2",
|
|
30
30
|
"@types/ejs": "^3.1.5",
|
|
31
|
-
"@types/node": "^22.
|
|
31
|
+
"@types/node": "^22.16.5",
|
|
32
32
|
"@types/prompts": "^2.4.9",
|
|
33
33
|
"copyfiles": "^2.4.1",
|
|
34
34
|
"ejs": "^3.1.10",
|
|
35
|
-
"npm-run-all2": "^
|
|
35
|
+
"npm-run-all2": "^8.0.4",
|
|
36
36
|
"picocolors": "^1.1.1",
|
|
37
37
|
"prompts": "^2.4.2",
|
|
38
|
-
"publint": "^0.3.
|
|
38
|
+
"publint": "^0.3.12",
|
|
39
39
|
"rimraf": "^6.0.1",
|
|
40
|
-
"tsup": "^8.
|
|
40
|
+
"tsup": "^8.5.0",
|
|
41
41
|
"typescript": "~5.8.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|