@skirtle/create-vue-lib 0.0.2 → 0.0.3

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 CHANGED
@@ -5623,7 +5623,7 @@ var import_ejs = __toESM(require_ejs(), 1);
5623
5623
  // package.json
5624
5624
  var package_default = {
5625
5625
  name: "@skirtle/create-vue-lib",
5626
- version: "0.0.2",
5626
+ version: "0.0.3",
5627
5627
  author: "skirtle",
5628
5628
  license: "MIT",
5629
5629
  description: "Create a library using Vue and Vite",
@@ -5660,9 +5660,9 @@ var package_default = {
5660
5660
  typescript: "^5.7.3"
5661
5661
  },
5662
5662
  scripts: {
5663
- clean: "rimraf dist LICENSE README.md",
5663
+ clean: "rimraf dist README.md",
5664
5664
  "type-check": "tsc",
5665
- "build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
5665
+ "build:copy": "copyfiles -f ../../README.md .",
5666
5666
  "build:templates": 'copyfiles -u 1 -a "src/template/**" dist',
5667
5667
  "build:ts": "tsup src/index.ts --format cjs --target node18",
5668
5668
  build: "run-s clean build:copy build:templates build:ts",
@@ -5795,6 +5795,7 @@ async function init() {
5795
5795
  process.exit(1);
5796
5796
  }
5797
5797
  const unscopedPackageName = scopedPackageName.replace(/.*\//, "");
5798
+ const packageNameAsObjectKey = /^[a-zA-Z_$][\w$]*$/.test(scopedPackageName) ? scopedPackageName : `'${scopedPackageName}'`;
5798
5799
  const targetDirName = await textPrompt("Target directory", unscopedPackageName);
5799
5800
  if (targetDirName !== "." && !isValidDirName(targetDirName)) {
5800
5801
  console.log("Invalid directory name: " + targetDirName);
@@ -5810,6 +5811,8 @@ async function init() {
5810
5811
  console.log("Target directory already exists");
5811
5812
  }
5812
5813
  }
5814
+ const includePackagesDir = await togglePromptIf(extended, `Use 'packages' directory?`, true);
5815
+ const packagesDir = includePackagesDir ? "packages/" : "";
5813
5816
  const mainPackageDirName = await textPromptIf(extended, "Main package directory", unscopedPackageName);
5814
5817
  if (!isValidDirName(mainPackageDirName)) {
5815
5818
  console.log("Invalid directory name: " + mainPackageDirName);
@@ -5833,6 +5836,7 @@ async function init() {
5833
5836
  }
5834
5837
  const includeEsLint = await togglePrompt("Include ESLint?", true);
5835
5838
  const includeEsLintStylistic = await togglePromptIf(includeEsLint, "Include ESLint Stylistic for formatting?", includeEsLint);
5839
+ const includeVitest = await togglePromptIf(extended, "Include Vitest for testing?", true);
5836
5840
  const includeDocs = await togglePrompt("Include VitePress for documentation?", true);
5837
5841
  const includeGithubPages = includeDocs && await togglePrompt("Include GitHub Pages config for documentation?");
5838
5842
  const includePlayground = await togglePrompt("Include playground application for development?", true);
@@ -5854,6 +5858,11 @@ async function init() {
5854
5858
  suggestExtended();
5855
5859
  process.exit(1);
5856
5860
  }
5861
+ if (!includePackagesDir && mainPackageDirName === "scripts") {
5862
+ console.log(`The directory name 'scripts' is reserved for the scripts, please choose a different name.`);
5863
+ suggestExtended();
5864
+ process.exit(1);
5865
+ }
5857
5866
  const [githubUserName, githubRepoName] = (githubPath || "/").split("/");
5858
5867
  const githubUrl = githubPath ? `https://github.com/${githubPath}` : "";
5859
5868
  const githubIssues = githubPath ? `${githubUrl}/issues` : "";
@@ -5865,9 +5874,11 @@ async function init() {
5865
5874
  const config = {
5866
5875
  scopedPackageName,
5867
5876
  unscopedPackageName,
5877
+ packageNameAsObjectKey,
5868
5878
  globalVariableName,
5869
5879
  targetDirName,
5870
5880
  targetDirPath,
5881
+ packagesDir,
5871
5882
  mainPackageDirName,
5872
5883
  templateDirPath,
5873
5884
  githubPath,
@@ -5877,12 +5888,14 @@ async function init() {
5877
5888
  githubPagesOrigin,
5878
5889
  docsBase,
5879
5890
  homepageUrl,
5891
+ includePackagesDir,
5880
5892
  includeDocs,
5881
5893
  includeGithubPages,
5882
5894
  includePlayground,
5883
5895
  includeExamples,
5884
5896
  includeEsLint,
5885
5897
  includeEsLintStylistic,
5898
+ includeVitest,
5886
5899
  includeAtAliases,
5887
5900
  includeTestVariable
5888
5901
  };
@@ -5899,6 +5912,9 @@ async function init() {
5899
5912
  if (config.includeEsLint) {
5900
5913
  copyTemplate("eslint", config);
5901
5914
  }
5915
+ if (config.includeVitest) {
5916
+ copyTemplate("vitest", config);
5917
+ }
5902
5918
  console.log();
5903
5919
  console.log("Project created");
5904
5920
  console.log();
@@ -5935,7 +5951,11 @@ function copyFiles(templateFile, config) {
5935
5951
  const templatePath = path.join(config.templateDirPath, templateFile);
5936
5952
  const stats = fs.statSync(templatePath);
5937
5953
  const basename2 = path.basename(templatePath);
5938
- const targetPath = path.join(config.targetDirPath, templateFile.replace(/@projectName@/g, config.mainPackageDirName));
5954
+ let targetFile = templateFile.replace(/@projectName@/g, config.mainPackageDirName);
5955
+ if (!config.includePackagesDir) {
5956
+ targetFile = targetFile.replace(/^packages/, ".");
5957
+ }
5958
+ const targetPath = path.join(config.targetDirPath, targetFile);
5939
5959
  if (stats.isDirectory()) {
5940
5960
  if (basename2 === "node_modules") {
5941
5961
  return;
@@ -5951,8 +5971,10 @@ function copyFiles(templateFile, config) {
5951
5971
  const template = fs.readFileSync(templatePath, "utf-8");
5952
5972
  const target = targetPath.replace(/\.ejs$/, "");
5953
5973
  let content = import_ejs.default.render(template, { config });
5954
- if (target.endsWith(".json")) {
5955
- content = content.replace(/,(\s*)([}\]])/g, "$1$2");
5974
+ if (/\.(json|m?[jt]s)$/.test(target)) {
5975
+ content = content.replace(/ +\n/g, "\n");
5976
+ content = content.replace(/\n\n+/g, "\n\n");
5977
+ content = content.replace(/, *(?:\n+(\n\s*)|(\s*))([}\])])/g, "$1$2$3");
5956
5978
  }
5957
5979
  fs.writeFileSync(target, content);
5958
5980
  } else if (["package.json", "vite.config.mts", "config.mts", "index.md", "introduction.md", "App.vue", "tsconfig.app.json", "env.d.ts"].includes(filename)) {
@@ -13,9 +13,8 @@ dist
13
13
  dist-ssr
14
14
  coverage
15
15
  *.local
16
- packages/docs/.vitepress/cache
17
- packages/<%- config.mainPackageDirName %>/LICENSE
18
- packages/<%- config.mainPackageDirName %>/README.md
16
+ <%- config.packagesDir %>docs/.vitepress/cache
17
+ <%- config.packagesDir %><%- config.mainPackageDirName %>/README.md
19
18
 
20
19
  /cypress/videos/
21
20
  /cypress/screenshots/
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "recommendations": [
3
3
  "Vue.volar",
4
+ <%_ if (config.includeVitest) { _%>
4
5
  "vitest.explorer",
6
+ <%_ } _%>
5
7
  <%_ if (config.includeEsLint) { _%>
6
8
  "dbaeumer.vscode-eslint",
7
9
  <%_ } _%>
@@ -8,14 +8,16 @@
8
8
  "scripts": {
9
9
  "clean": "pnpm run -r clean",
10
10
  <%_ if (config.includePlayground) { _%>
11
- "dev": "pnpm run --filter ./packages/playground -r dev",
11
+ "dev": "pnpm run --filter ./<%- config.packagesDir %>playground -r dev",
12
12
  <%_ } _%>
13
13
  <%_ if (config.includeDocs) { _%>
14
- "docs:dev": "pnpm run --filter ./packages/docs -r dev",
15
- "docs:build": "pnpm run --filter ./packages/docs -r build",
14
+ "docs:dev": "pnpm run --filter ./<%- config.packagesDir %>docs -r dev",
15
+ "docs:build": "pnpm run --filter ./<%- config.packagesDir %>docs -r build",
16
+ <%_ } _%>
17
+ <%_ if (config.includeVitest) { _%>
18
+ "test:unit": "pnpm run --filter ./<%- config.packagesDir %><%- config.mainPackageDirName %> -r test:unit",
19
+ "coverage": "pnpm run --filter ./<%- config.packagesDir %><%- config.mainPackageDirName %> -r coverage",
16
20
  <%_ } _%>
17
- "test:unit": "pnpm run --filter ./packages/<%- config.mainPackageDirName %> -r test:unit",
18
- "coverage": "pnpm run --filter ./packages/<%- config.mainPackageDirName %> -r coverage",
19
21
  <%_ if (config.includeEsLint) { _%>
20
22
  "type-check": "run-p type-check:*",
21
23
  "type-check:packages": "pnpm run -r type-check",
@@ -49,11 +51,13 @@
49
51
  "@stylistic/eslint-plugin": "^4.0.0",
50
52
  <%_ } _%>
51
53
  "@tsconfig/node22": "^22.0.0",
52
- "@types/node": "^22.13.0",
54
+ "@types/node": "^22.13.4",
53
55
  "@typescript-eslint/parser": "^8.23.0",
54
- "@vitest/eslint-plugin": "1.1.25",
55
- "@vue/eslint-config-typescript": "^14.3.0",
56
- "eslint": "^9.18.0",
56
+ <%_ if (config.includeVitest) { _%>
57
+ "@vitest/eslint-plugin": "1.1.31",
58
+ <%_ } _%>
59
+ "@vue/eslint-config-typescript": "^14.4.0",
60
+ "eslint": "^9.20.1",
57
61
  "eslint-plugin-vue": "^9.32.0",
58
62
  "jiti": "^2.4.2",
59
63
  "lint-staged": "^15.4.3",
@@ -61,7 +65,7 @@
61
65
  <%_ } _%>
62
66
  "simple-git-hooks": "^2.11.1",
63
67
  <%_ if (config.includeEsLint) { _%>
64
- "typescript": "^5.7.3"
68
+ "typescript": "~5.7.3"
65
69
  <%_ } _%>
66
70
  }
67
71
  }
@@ -0,0 +1,78 @@
1
+ {
2
+ "private": true,
3
+ "name": "<%- config.scopedPackageName %>",
4
+ "version": "0.0.0",
5
+ "author": "",
6
+ "license": "",
7
+ "description": "",
8
+ "keywords": [],
9
+ "homepage": "<%- config.homepageUrl %>",
10
+ "bugs": "<%- config.githubIssues %>",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "<%- config.githubRepository %>"
14
+ },
15
+ "sideEffects": false,
16
+ "main": "dist/<%- config.unscopedPackageName %>.cjs",
17
+ "module": "dist/<%- config.unscopedPackageName %>.esm-bundler.prod.mjs",
18
+ "unpkg": "dist/<%- config.unscopedPackageName %>.global.dev.js",
19
+ "jsdelivr": "dist/<%- config.unscopedPackageName %>.global.dev.js",
20
+ "types": "dist/<%- config.unscopedPackageName %>.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/<%- config.unscopedPackageName %>.d.ts",
24
+ "import": {
25
+ "development": "./dist/<%- config.unscopedPackageName %>.esm.dev.js",
26
+ "default": "./dist/<%- config.unscopedPackageName %>.esm-bundler.prod.mjs"
27
+ },
28
+ "require": "./dist/<%- config.unscopedPackageName %>.cjs"
29
+ },
30
+ "./dist/*": "./dist/*",
31
+ "./package.json": "./package.json"
32
+ },
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "peerDependencies": {
37
+ "vue": "^3.2.0"
38
+ },
39
+ "devDependencies": {
40
+ "@rollup/plugin-replace": "^6.0.2",
41
+ "@tsconfig/node22": "^22.0.0",
42
+ "@types/jsdom": "^21.1.7",
43
+ "@types/node": "^22.13.4",
44
+ "@vitejs/plugin-vue": "^5.2.1",
45
+ <%_ if (config.includeVitest) { _%>
46
+ "@vitest/coverage-v8": "^3.0.5",
47
+ "@vue/test-utils": "^2.4.6",
48
+ <%_ } _%>
49
+ "@vue/tsconfig": "^0.7.0",
50
+ "copyfiles": "^2.4.1",
51
+ "cross-env": "^7.0.3",
52
+ "jsdom": "^26.0.0",
53
+ "npm-run-all2": "^7.0.2",
54
+ "rimraf": "^5.0.1",
55
+ "typescript": "~5.7.3",
56
+ "vite": "^6.1.0",
57
+ "vite-plugin-dts": "^4.5.3",
58
+ <%_ if (config.includeVitest) { _%>
59
+ "vitest": "^3.0.5",
60
+ <%_ } _%>
61
+ "vue": "^3.5.13",
62
+ "vue-tsc": "^2.2.2"
63
+ },
64
+ "scripts": {
65
+ "clean:dist": "rimraf dist",
66
+ "clean": "rimraf dist coverage README.md",
67
+ <%_ if (config.includeVitest) { _%>
68
+ "test:unit": "vitest --environment jsdom",
69
+ "coverage": "vitest run --coverage --environment jsdom",
70
+ <%_ } _%>
71
+ "type-check": "vue-tsc --build",
72
+ "build:copy": "copyfiles -f ../../README.md .",
73
+ "build:dev": "cross-env NODE_ENV=development vite build --mode development",
74
+ "build:neutral": "vite build --mode neutral",
75
+ "build:prod": "vite build --mode production",
76
+ "build": "run-s clean:dist build:* type-check"
77
+ }
78
+ }
@@ -7,8 +7,10 @@
7
7
  {
8
8
  "path": "./tsconfig.app.json"
9
9
  },
10
+ <%_ if (config.includeVitest) { _%>
10
11
  {
11
12
  "path": "./tsconfig.vitest.json"
12
13
  }
14
+ <%_ } _%>
13
15
  ]
14
16
  }
@@ -13,6 +13,13 @@ export default defineConfig(({ mode }): UserConfig => {
13
13
  throw new Error(`Unknown mode: ${mode}`)
14
14
  }
15
15
 
16
+ const expectedNodeEnv = mode === 'neutral' ? 'production' : mode
17
+ const nodeEnv = process.env.NODE_ENV
18
+
19
+ if (nodeEnv !== expectedNodeEnv) {
20
+ console.warn(`Expected NODE_ENV to be '${expectedNodeEnv}' for mode '${mode}', found '${nodeEnv}'`)
21
+ }
22
+
16
23
  const dtsPlugin = mode === 'neutral'
17
24
  ? dts({
18
25
  rollupTypes: true,
@@ -61,7 +68,14 @@ export default defineConfig(({ mode }): UserConfig => {
61
68
  name += '.global'
62
69
  }
63
70
  else if (format === 'es') {
64
- name += '.esm-' + (mode === 'neutral' ? 'bundler' : 'browser')
71
+ name += '.esm'
72
+
73
+ if (mode === 'neutral') {
74
+ name += '-bundler.prod'
75
+ }
76
+ else if (mode === 'production') {
77
+ name += '-browser'
78
+ }
65
79
  }
66
80
 
67
81
  if (mode === 'production') {
@@ -0,0 +1,12 @@
1
+ packages:
2
+ <%_ if (config.includePackagesDir) { _%>
3
+ - '<%- config.packagesDir %>*'
4
+ <%_ } else { _%>
5
+ - '<%- config.mainPackageDirName %>'
6
+ <%_ if (config.includeDocs) { _%>
7
+ - 'docs'
8
+ <%_ } _%>
9
+ <%_ if (config.includePlayground) { _%>
10
+ - 'playground'
11
+ <%_ } _%>
12
+ <%_ } _%>
@@ -7,7 +7,9 @@ import pluginVue from 'eslint-plugin-vue'
7
7
  import stylistic from '@stylistic/eslint-plugin'
8
8
  <%_ } _%>
9
9
  import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
10
+ <%_ if (config.includeVitest) { _%>
10
11
  import pluginVitest from '@vitest/eslint-plugin'
12
+ <%_ } _%>
11
13
 
12
14
  export default defineConfigWithVueTs(
13
15
  {
@@ -26,8 +28,10 @@ export default defineConfigWithVueTs(
26
28
  }),
27
29
  <%_ } _%>
28
30
 
31
+ <%_ if (config.includeVitest) { _%>
29
32
  {
30
33
  ...pluginVitest.configs.recommended,
31
34
  files: ['src/**/__tests__/*']
32
35
  }
36
+ <%_ } _%>
33
37
  )
@@ -47,7 +47,7 @@ jobs:
47
47
  uses: actions/upload-pages-artifact@v3
48
48
  with:
49
49
  # Upload docs dist directory
50
- path: './packages/docs/dist'
50
+ path: './<%- config.packagesDir %>docs/dist'
51
51
  - name: Deploy to GitHub Pages
52
52
  id: deployment
53
53
  uses: actions/deploy-pages@v4
@@ -6,22 +6,21 @@
6
6
  "type-check": "vue-tsc --build",
7
7
  "build:only": "vite build",
8
8
  "build": "run-p -c type-check \"build:only {@}\" --",
9
- "preview": "vite preview --port 4051",
10
- "preinstall": "node ../../scripts/preinstall.js"
9
+ "preview": "vite preview --port 4051"
11
10
  },
12
11
  "dependencies": {
13
12
  "vue": "^3.5.13"
14
13
  },
15
14
  "devDependencies": {
16
15
  "@tsconfig/node22": "^22.0.0",
17
- "@types/node": "^22.10.7",
16
+ "@types/node": "^22.13.4",
18
17
  "@vitejs/plugin-vue": "^5.2.1",
19
18
  "@vue/tsconfig": "^0.7.0",
20
19
  "npm-run-all2": "^7.0.2",
21
20
  "rimraf": "^5.0.1",
22
21
  "typescript": "~5.7.3",
23
- "vite": "^6.0.11",
22
+ "vite": "^6.1.0",
24
23
  "vite-plugin-vue-devtools": "^7.7.0",
25
- "vue-tsc": "^2.2.0"
24
+ "vue-tsc": "^2.2.2"
26
25
  }
27
26
  }
@@ -7,8 +7,8 @@ import vueDevTools from 'vite-plugin-vue-devtools'
7
7
  <%_ if (config.includeAtAliases) { _%>
8
8
  const librarySrc = fileURLToPath(new URL('../<%- config.mainPackageDirName %>/src/', import.meta.url))
9
9
  const playgroundSrc = fileURLToPath(new URL('./src/', import.meta.url))
10
-
11
10
  <%_ } _%>
11
+
12
12
  export default defineConfig(({ mode }): UserConfig => ({
13
13
  plugins: [
14
14
  vue(),
@@ -33,12 +33,13 @@ export default defineConfig(({ mode }): UserConfig => ({
33
33
  ]
34
34
  <%_ } else { _%>
35
35
  alias: {
36
- '<%- config.scopedPackageName %>': fileURLToPath(new URL('../<%- config.mainPackageDirName %>/src/', import.meta.url))
36
+ <%- config.packageNameAsObjectKey %>: fileURLToPath(new URL('../<%- config.mainPackageDirName %>/src/', import.meta.url))
37
37
  }
38
38
  <%_ } _%>
39
39
  },
40
40
  define: {
41
- __DEV__: mode !== 'production'<%_ if (config.includeTestVariable) { _%>,
41
+ __DEV__: mode !== 'production',
42
+ <%_ if (config.includeTestVariable) { _%>
42
43
  __TEST__: false
43
44
  <%_ } %>
44
45
  }
@@ -5,8 +5,8 @@ import { defineConfigWithTheme } from 'vitepress'
5
5
  <%_ if (config.includeAtAliases) { _%>
6
6
  const librarySrc = fileURLToPath(new URL('../../<%- config.mainPackageDirName %>/src/', import.meta.url))
7
7
  const playgroundSrc = fileURLToPath(new URL('../src/', import.meta.url))
8
-
9
8
  <%_ } _%>
9
+
10
10
  export default ({ mode }: { mode: string }) => defineConfigWithTheme({
11
11
  srcDir: './src',
12
12
  outDir: './dist',
@@ -31,8 +31,8 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
31
31
  return [['link', { rel: 'canonical', href: canonicalUrl }]]
32
32
  }
33
33
  },
34
-
35
34
  <%_ } _%>
35
+
36
36
  vite: {
37
37
  resolve: {
38
38
  <%_ if (config.includeAtAliases) { _%>
@@ -53,7 +53,7 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
53
53
  ]
54
54
  <%_ } else { _%>
55
55
  alias: {
56
- '<%- config.scopedPackageName %>': fileURLToPath(new URL('../../<%- config.mainPackageDirName %>/src/', import.meta.url))
56
+ <%- config.packageNameAsObjectKey %>: fileURLToPath(new URL('../../<%- config.mainPackageDirName %>/src/', import.meta.url))
57
57
  }
58
58
  <%_ } _%>
59
59
  },
@@ -78,8 +78,8 @@ export default ({ mode }: { mode: string }) => defineConfigWithTheme({
78
78
  socialLinks: [
79
79
  { icon: 'github', link: '<%- config.githubUrl %>' }
80
80
  ],
81
-
82
81
  <%_ } _%>
82
+
83
83
  sidebar: [
84
84
  {
85
85
  text: 'Getting started',
@@ -8,20 +8,19 @@
8
8
  "type-check": "run-p -c type-check:*",
9
9
  "build:only": "vitepress build .",
10
10
  "build": "run-p -c type-check \"build:only {@}\" --",
11
- "preview": "vitepress preview .",
12
- "preinstall": "node ../../scripts/preinstall.js"
11
+ "preview": "vitepress preview ."
13
12
  },
14
13
  "dependencies": {
15
14
  "vue": "^3.5.13"
16
15
  },
17
16
  "devDependencies": {
18
17
  "@tsconfig/node22": "^22.0.0",
19
- "@types/node": "^22.13.0",
18
+ "@types/node": "^22.13.4",
20
19
  "@vue/tsconfig": "^0.7.0",
21
20
  "npm-run-all2": "^7.0.2",
22
21
  "rimraf": "^6.0.1",
23
22
  "typescript": "~5.7.3",
24
23
  "vitepress": "^1.6.3",
25
- "vue-tsc": "^2.2.0"
24
+ "vue-tsc": "^2.2.2"
26
25
  }
27
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skirtle/create-vue-lib",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "author": "skirtle",
5
5
  "license": "MIT",
6
6
  "description": "Create a library using Vue and Vite",
@@ -42,9 +42,9 @@
42
42
  "typescript": "^5.7.3"
43
43
  },
44
44
  "scripts": {
45
- "clean": "rimraf dist LICENSE README.md",
45
+ "clean": "rimraf dist README.md",
46
46
  "type-check": "tsc",
47
- "build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
47
+ "build:copy": "copyfiles -f ../../README.md .",
48
48
  "build:templates": "copyfiles -u 1 -a \"src/template/**\" dist",
49
49
  "build:ts": "tsup src/index.ts --format cjs --target node18",
50
50
  "build": "run-s clean build:copy build:templates build:ts",
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2025, skirtle
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
13
- all 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
21
- THE SOFTWARE.
@@ -1,70 +0,0 @@
1
- {
2
- "private": true,
3
- "name": "@scopedPackageName@",
4
- "version": "0.0.0",
5
- "author": "",
6
- "license": "",
7
- "description": "",
8
- "keywords": [],
9
- "homepage": "@homepageUrl@",
10
- "bugs": "@githubIssues@",
11
- "repository": {
12
- "type": "git",
13
- "url": "@githubRepository@"
14
- },
15
- "sideEffects": false,
16
- "main": "dist/@unscopedPackageName@.cjs",
17
- "module": "dist/@unscopedPackageName@.esm-bundler.mjs",
18
- "unpkg": "dist/@unscopedPackageName@.global.dev.js",
19
- "jsdelivr": "dist/@unscopedPackageName@.global.dev.js",
20
- "types": "dist/@unscopedPackageName@.d.ts",
21
- "exports": {
22
- ".": {
23
- "types": "./dist/@unscopedPackageName@.d.ts",
24
- "import": "./dist/@unscopedPackageName@.esm-bundler.mjs",
25
- "require": "./dist/@unscopedPackageName@.cjs"
26
- },
27
- "./dist/*": "./dist/*",
28
- "./package.json": "./package.json"
29
- },
30
- "files": [
31
- "dist"
32
- ],
33
- "peerDependencies": {
34
- "vue": "^3.2.0"
35
- },
36
- "devDependencies": {
37
- "@rollup/plugin-replace": "^6.0.2",
38
- "@tsconfig/node22": "^22.0.0",
39
- "@types/jsdom": "^21.1.7",
40
- "@types/node": "^22.10.7",
41
- "@vitejs/plugin-vue": "^5.2.1",
42
- "@vitest/coverage-v8": "^3.0.5",
43
- "@vue/test-utils": "^2.4.6",
44
- "@vue/tsconfig": "^0.7.0",
45
- "copyfiles": "^2.4.1",
46
- "cross-env": "^7.0.3",
47
- "jsdom": "^26.0.0",
48
- "npm-run-all2": "^7.0.2",
49
- "rimraf": "^5.0.1",
50
- "typescript": "~5.7.3",
51
- "vite": "^6.0.11",
52
- "vite-plugin-dts": "4.5.0",
53
- "vitest": "^3.0.2",
54
- "vue": "^3.5.13",
55
- "vue-tsc": "^2.2.0"
56
- },
57
- "scripts": {
58
- "clean:dist": "rimraf dist",
59
- "clean": "rimraf dist coverage LICENSE README.md",
60
- "test:unit": "vitest --environment jsdom",
61
- "coverage": "vitest run --coverage --environment jsdom",
62
- "type-check": "vue-tsc --build",
63
- "build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
64
- "build:dev": "cross-env NODE_ENV=development vite build --mode development",
65
- "build:neutral": "vite build --mode neutral",
66
- "build:prod": "vite build --mode production",
67
- "build": "run-s clean:dist build:* type-check",
68
- "preinstall": "node ../../scripts/preinstall.js"
69
- }
70
- }
@@ -1,2 +0,0 @@
1
- packages:
2
- - 'packages/*'