@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.
- package/bin/build.js +2 -2
- package/package.json +1 -1
- package/templates/playground/dist/main.js +1 -1
- package/templates/playground/dist/playground.html +1 -1
- package/templates/playground/dist/vue.runtime.global.js +9054 -0
- package/templates/vue3-micro-app/vue.config.js.tpl +2 -1
- package/templates/vue3-micro-field/README.md +24 -0
- package/templates/vue3-micro-field/babel.config.js +8 -0
- package/templates/vue3-micro-field/manifest.json.tpl +3 -0
- package/templates/vue3-micro-field/package.json.tpl +57 -0
- package/templates/vue3-micro-field/public/configuration.json +30 -0
- package/templates/vue3-micro-field/public/index.html +10 -0
- package/templates/vue3-micro-field/scripts/compress.js +32 -0
- package/templates/vue3-micro-field/src/App.vue.tpl +42 -0
- package/templates/vue3-micro-field/src/main.js +41 -0
- package/templates/vue3-micro-field/src/style.less.tpl +16 -0
- package/templates/vue3-micro-field/vue.config.js +46 -0
- package/templates/vue3vite-micro-plugin/.editorconfig +6 -0
- package/templates/vue3vite-micro-plugin/.gitignore.tpl +23 -0
- package/templates/vue3vite-micro-plugin/.prettierrc.json +7 -0
- package/templates/vue3vite-micro-plugin/.vscode/extensions.json +9 -0
- package/templates/vue3vite-micro-plugin/README.md +48 -0
- package/templates/vue3vite-micro-plugin/env.d.ts +1 -0
- package/templates/vue3vite-micro-plugin/eslint.config.js +29 -0
- package/templates/vue3vite-micro-plugin/index.html +13 -0
- package/templates/vue3vite-micro-plugin/package.json.tpl +56 -0
- package/templates/vue3vite-micro-plugin/public/configuration.json +30 -0
- package/templates/vue3vite-micro-plugin/public/favicon.ico +0 -0
- package/templates/vue3vite-micro-plugin/scripts/devDistServe.cjs +16 -0
- package/templates/vue3vite-micro-plugin/src/App.vue.tpl +48 -0
- package/templates/vue3vite-micro-plugin/src/main.ts +39 -0
- package/templates/vue3vite-micro-plugin/src/typings.d.ts +8 -0
- package/templates/vue3vite-micro-plugin/tsconfig.app.json +14 -0
- package/templates/vue3vite-micro-plugin/tsconfig.json +14 -0
- package/templates/vue3vite-micro-plugin/tsconfig.node.json +19 -0
- package/templates/vue3vite-micro-plugin/tsconfig.vitest.json +11 -0
- package/templates/vue3vite-micro-plugin/vite.config.ts +24 -0
- package/templates/vue3vite-micro-plugin/vitest.config.ts +14 -0
|
@@ -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,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,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
|
+
)
|