@skirtle/create-vue-lib 0.0.0 → 0.0.2

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.
Files changed (39) hide show
  1. package/README.md +2 -0
  2. package/dist/index.cjs +337 -162
  3. package/dist/template/base/config/{.editorconfig → .editorconfig.ejs} +6 -0
  4. package/dist/template/base/config/.gitignore.ejs +33 -0
  5. package/dist/template/base/config/.vscode/extensions.json.ejs +10 -0
  6. package/dist/template/base/config/.vscode/settings.json.ejs +13 -0
  7. package/dist/template/base/config/LICENSE +0 -0
  8. package/dist/template/base/config/package.json.ejs +37 -5
  9. package/dist/template/base/config/packages/@projectName@/package.json +13 -16
  10. package/dist/template/base/config/packages/@projectName@/src/global.d.ts.ejs +4 -0
  11. package/dist/template/base/config/packages/@projectName@/{tsconfig.app.json → tsconfig.app.json.ejs} +3 -1
  12. package/dist/template/base/config/packages/@projectName@/tsconfig.node.json +1 -1
  13. package/dist/template/base/config/packages/@projectName@/tsconfig.vitest.json +1 -1
  14. package/dist/template/base/config/packages/@projectName@/{vite.config.mts → vite.config.mts.ejs} +26 -11
  15. package/dist/template/base/examples/packages/@projectName@/src/components/{Example.vue → ExampleComponent.vue.ejs} +4 -1
  16. package/dist/template/base/examples/packages/@projectName@/src/index.ts +1 -1
  17. package/dist/template/eslint/config/eslint.config.mts.ejs +33 -0
  18. package/dist/template/eslint/config/tsconfig.json +10 -0
  19. package/dist/template/gh-pages/config/.github/workflows/pages.yml +0 -2
  20. package/dist/template/playground/config/packages/playground/env.d.ts +2 -1
  21. package/dist/template/playground/config/packages/playground/package.json +6 -4
  22. package/dist/template/playground/config/packages/playground/tsconfig.app.json.ejs +13 -0
  23. package/dist/template/playground/config/packages/playground/tsconfig.node.json +1 -1
  24. package/dist/template/playground/config/packages/playground/vite.config.mts.ejs +45 -0
  25. package/dist/template/playground/examples/packages/playground/src/App.vue +1 -1
  26. package/dist/template/vitepress/config/packages/docs/.vitepress/config.mts.ejs +28 -3
  27. package/dist/template/vitepress/config/packages/docs/env.d.ts +2 -1
  28. package/dist/template/vitepress/config/packages/docs/package.json +7 -4
  29. package/dist/template/vitepress/config/packages/docs/tsconfig.app.json.ejs +22 -0
  30. package/dist/template/vitepress/config/packages/docs/tsconfig.node.json +1 -9
  31. package/dist/template/vitepress/examples/packages/docs/src/index.md +1 -1
  32. package/dist/template/vitepress/examples/packages/docs/src/introduction.md +1 -1
  33. package/package.json +8 -8
  34. package/dist/template/base/config/packages/@projectName@/README.md.ejs +0 -5
  35. package/dist/template/base/config/packages/@projectName@/src/global.d.ts +0 -1
  36. package/dist/template/base/config/tsconfig.json +0 -4
  37. package/dist/template/playground/config/packages/playground/tsconfig.app.json +0 -11
  38. package/dist/template/playground/config/packages/playground/vite.config.mts +0 -22
  39. package/dist/template/vitepress/config/packages/docs/tsconfig.app.json +0 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skirtle/create-vue-lib",
3
- "version": "0.0.0",
3
+ "version": "0.0.2",
4
4
  "author": "skirtle",
5
5
  "license": "MIT",
6
6
  "description": "Create a library using Vue and Vite",
@@ -11,7 +11,7 @@
11
11
  "vite",
12
12
  "build"
13
13
  ],
14
- "homepage": "https://github.com/skirtles-code/create-vue-lib#readme",
14
+ "homepage": "https://skirtles-code.github.io/create-vue-lib/",
15
15
  "bugs": "https://github.com/skirtles-code/create-vue-lib/issues",
16
16
  "repository": {
17
17
  "type": "git",
@@ -35,19 +35,19 @@
35
35
  "@types/prompts": "^2.4.9",
36
36
  "copyfiles": "^2.4.1",
37
37
  "ejs": "^3.1.10",
38
- "lint-staged": "^15.4.3",
38
+ "npm-run-all2": "^7.0.2",
39
39
  "prompts": "^2.4.2",
40
40
  "rimraf": "^6.0.1",
41
- "simple-git-hooks": "^2.11.1",
42
41
  "tsup": "^8.3.6",
43
42
  "typescript": "^5.7.3"
44
43
  },
45
44
  "scripts": {
46
- "clean": "rimraf dist",
47
- "build": "pnpm run clean && pnpm run build:copy && pnpm run build:ts",
48
- "build:copy": "copyfiles -u 1 -a \"src/template/**\" dist",
45
+ "clean": "rimraf dist LICENSE README.md",
46
+ "type-check": "tsc",
47
+ "build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
48
+ "build:templates": "copyfiles -u 1 -a \"src/template/**\" dist",
49
49
  "build:ts": "tsup src/index.ts --format cjs --target node18",
50
- "build:dts": "tsup src/index.ts --dts --format cjs --target node18",
50
+ "build": "run-s clean build:copy build:templates build:ts",
51
51
  "start": "node ./dist/index.cjs",
52
52
  "preinstall": "npx only-allow pnpm"
53
53
  }
@@ -1,5 +0,0 @@
1
- # <%- config.scopedPackageName %>
2
-
3
- Project description
4
-
5
- ## License
@@ -1 +0,0 @@
1
- declare let __DEV__: boolean
@@ -1,4 +0,0 @@
1
- {
2
- "files": [".eslintrc.cjs"],
3
- "include": ["scripts/**/*"]
4
- }
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "@vue/tsconfig/tsconfig.dom.json",
3
- "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
- "compilerOptions": {
5
- "tsBuildInfoFile": "../../node_modules/.tmp/tsconfig.playground.app.tsbuildinfo",
6
- "paths": {
7
- "@/*": ["./src/*"],
8
- "@scopedPackageName@": ["../@projectName@/src/index.ts"]
9
- }
10
- }
11
- }
@@ -1,22 +0,0 @@
1
- import { fileURLToPath, URL } from 'node:url'
2
-
3
- import { defineConfig } from 'vite'
4
- import vue from '@vitejs/plugin-vue'
5
- import vueDevTools from 'vite-plugin-vue-devtools'
6
-
7
- export default defineConfig(({ mode }) => ({
8
- plugins: [
9
- vue(),
10
- vueDevTools(),
11
- ],
12
- resolve: {
13
- alias: {
14
- '@': fileURLToPath(new URL('./src', import.meta.url)),
15
- '@scopedPackageName@': fileURLToPath(new URL('../@projectName@/src/index.ts', import.meta.url))
16
- },
17
- },
18
-
19
- define: {
20
- __DEV__: JSON.stringify(mode !== 'production')
21
- }
22
- }))
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "@vue/tsconfig/tsconfig.dom.json",
3
- "include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/**/*.md"],
4
- "compilerOptions": {
5
- "tsBuildInfoFile": "../../node_modules/.tmp/tsconfig.docs.app.tsbuildinfo",
6
- "paths": {
7
- "@scopedPackageName@": ["../@projectName@/src/index.ts"]
8
- }
9
- },
10
- "vueCompilerOptions": {
11
- "vitePressExtensions": [".md"],
12
- }
13
- }