@maxelms/create-plugin-cli 1.1.16 → 1.1.18

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 (38) hide show
  1. package/bin/build.js +2 -2
  2. package/package.json +1 -1
  3. package/templates/playground/dist/main.js +1 -1
  4. package/templates/playground/dist/playground.html +1 -1
  5. package/templates/playground/dist/vue.runtime.global.js +9054 -0
  6. package/templates/vue3-micro-app/vue.config.js.tpl +2 -1
  7. package/templates/vue3-micro-field/README.md +24 -0
  8. package/templates/vue3-micro-field/babel.config.js +8 -0
  9. package/templates/vue3-micro-field/manifest.json.tpl +3 -0
  10. package/templates/vue3-micro-field/package.json.tpl +57 -0
  11. package/templates/vue3-micro-field/public/configuration.json +30 -0
  12. package/templates/vue3-micro-field/public/index.html +10 -0
  13. package/templates/vue3-micro-field/scripts/compress.js +32 -0
  14. package/templates/vue3-micro-field/src/App.vue.tpl +42 -0
  15. package/templates/vue3-micro-field/src/main.js +41 -0
  16. package/templates/vue3-micro-field/src/style.less.tpl +16 -0
  17. package/templates/vue3-micro-field/vue.config.js +46 -0
  18. package/templates/vue3vite-micro-plugin/.editorconfig +6 -0
  19. package/templates/vue3vite-micro-plugin/.gitignore.tpl +23 -0
  20. package/templates/vue3vite-micro-plugin/.prettierrc.json +7 -0
  21. package/templates/vue3vite-micro-plugin/.vscode/extensions.json +9 -0
  22. package/templates/vue3vite-micro-plugin/README.md +48 -0
  23. package/templates/vue3vite-micro-plugin/env.d.ts +1 -0
  24. package/templates/vue3vite-micro-plugin/eslint.config.js +29 -0
  25. package/templates/vue3vite-micro-plugin/index.html +13 -0
  26. package/templates/vue3vite-micro-plugin/package.json.tpl +56 -0
  27. package/templates/vue3vite-micro-plugin/public/configuration.json +30 -0
  28. package/templates/vue3vite-micro-plugin/public/favicon.ico +0 -0
  29. package/templates/vue3vite-micro-plugin/scripts/devDistServe.cjs +16 -0
  30. package/templates/vue3vite-micro-plugin/src/App.vue.tpl +48 -0
  31. package/templates/vue3vite-micro-plugin/src/main.ts +39 -0
  32. package/templates/vue3vite-micro-plugin/src/typings.d.ts +8 -0
  33. package/templates/vue3vite-micro-plugin/tsconfig.app.json +14 -0
  34. package/templates/vue3vite-micro-plugin/tsconfig.json +14 -0
  35. package/templates/vue3vite-micro-plugin/tsconfig.node.json +19 -0
  36. package/templates/vue3vite-micro-plugin/tsconfig.vitest.json +11 -0
  37. package/templates/vue3vite-micro-plugin/vite.config.ts +24 -0
  38. package/templates/vue3vite-micro-plugin/vitest.config.ts +14 -0
@@ -0,0 +1,8 @@
1
+ declare module "*.vue"
2
+
3
+ interface Window {
4
+ __SINGLETON_MODE__?: any
5
+ __MAXELMS_GLOBAL_ENV__?: {
6
+ popoverContainerId: string
7
+ };
8
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "@vue/tsconfig/tsconfig.dom.json",
3
+ "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
+ "exclude": ["src/**/__tests__/*"],
5
+ "compilerOptions": {
6
+ "noImplicitAny": true,
7
+ "composite": true,
8
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
9
+
10
+ "paths": {
11
+ "@/*": ["./src/*"]
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ {
5
+ "path": "./tsconfig.node.json"
6
+ },
7
+ {
8
+ "path": "./tsconfig.app.json"
9
+ },
10
+ {
11
+ "path": "./tsconfig.vitest.json"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "extends": "@tsconfig/node22/tsconfig.json",
3
+ "include": [
4
+ "vite.config.*",
5
+ "vitest.config.*",
6
+ "cypress.config.*",
7
+ "nightwatch.conf.*",
8
+ "playwright.config.*"
9
+ ],
10
+ "compilerOptions": {
11
+ "composite": true,
12
+ "noEmit": true,
13
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
14
+
15
+ "module": "ESNext",
16
+ "moduleResolution": "Bundler",
17
+ "types": ["node"]
18
+ }
19
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig.app.json",
3
+ "exclude": [],
4
+ "compilerOptions": {
5
+ "composite": true,
6
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
7
+
8
+ "lib": [],
9
+ "types": ["node", "jsdom"]
10
+ }
11
+ }
@@ -0,0 +1,24 @@
1
+ import { fileURLToPath, URL } from 'node:url'
2
+ import { defineConfig } from 'vite'
3
+ import vue from '@vitejs/plugin-vue'
4
+ import vueJsx from '@vitejs/plugin-vue-jsx'
5
+ import vueDevTools from 'vite-plugin-vue-devtools'
6
+
7
+ // https://vite.dev/config/
8
+ export default defineConfig({
9
+ plugins: [vue(), vueJsx(), vueDevTools()],
10
+ base: './',
11
+ resolve: {
12
+ alias: {
13
+ '@': fileURLToPath(new URL('./src', import.meta.url)),
14
+ },
15
+ },
16
+ build: {
17
+ target: 'es2015',
18
+ rollupOptions: {
19
+ output: {
20
+ format: 'umd',
21
+ },
22
+ },
23
+ },
24
+ })
@@ -0,0 +1,14 @@
1
+ import { fileURLToPath, URL } from 'node:url'
2
+ import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
3
+ import viteConfig from './vite.config'
4
+
5
+ export default mergeConfig(
6
+ viteConfig,
7
+ defineConfig({
8
+ test: {
9
+ environment: 'jsdom',
10
+ exclude: [...configDefaults.exclude, 'e2e/**'],
11
+ root: fileURLToPath(new URL('./', import.meta.url)),
12
+ },
13
+ }),
14
+ )