workflow-editor 0.0.46-up-tmp1 → 0.0.48-up
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/.vscode/extensions.json +3 -3
- package/README.md +7 -7
- package/index.html +13 -13
- package/package.json +1 -1
- package/src/i18n/i18n.js +15 -15
- package/vite.config.js +35 -35
package/.vscode/extensions.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
|
|
3
|
+
}
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Vue 3 + Vite
|
|
2
|
-
|
|
3
|
-
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
-
|
|
5
|
-
## Recommended IDE Setup
|
|
6
|
-
|
|
7
|
-
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
1
|
+
# Vue 3 + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
package/index.html
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Vite + Vue</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="app"></div>
|
|
11
|
-
<script type="module" src="/src/main.js"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Vite + Vue</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module" src="/src/main.js"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
CHANGED
package/src/i18n/i18n.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { createI18n } from 'vue-i18n'
|
|
2
|
-
import en from './langs/en'
|
|
3
|
-
import cn from './langs/cn'
|
|
4
|
-
|
|
5
|
-
const messages = {
|
|
6
|
-
en: en,
|
|
7
|
-
cn: cn,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const i18n = createI18n({
|
|
11
|
-
locale: 'cn', // 当前语言
|
|
12
|
-
messages,
|
|
13
|
-
legacy: false,
|
|
14
|
-
})
|
|
15
|
-
|
|
1
|
+
import { createI18n } from 'vue-i18n'
|
|
2
|
+
import en from './langs/en'
|
|
3
|
+
import cn from './langs/cn'
|
|
4
|
+
|
|
5
|
+
const messages = {
|
|
6
|
+
en: en,
|
|
7
|
+
cn: cn,
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const i18n = createI18n({
|
|
11
|
+
locale: 'cn', // 当前语言
|
|
12
|
+
messages,
|
|
13
|
+
legacy: false,
|
|
14
|
+
})
|
|
15
|
+
|
|
16
16
|
export default i18n
|
package/vite.config.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import vue from "@vitejs/plugin-vue";
|
|
3
|
-
import path from "path";
|
|
4
|
-
//https://vitejs.dev/config/
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [vue()],
|
|
7
|
-
build: {
|
|
8
|
-
outDir: "lib",//输出文件名称
|
|
9
|
-
lib: {
|
|
10
|
-
entry: path.resolve(__dirname, "./packages/index.js"),//指定组件编译入口文件
|
|
11
|
-
name: "workflow-editor",//打包js名称
|
|
12
|
-
fileName: "workflow-editor",
|
|
13
|
-
},//库编译模式配置
|
|
14
|
-
rollupOptions: {
|
|
15
|
-
//确保外部化处理那些你不想打包进库的依赖
|
|
16
|
-
external: ["vue"],
|
|
17
|
-
output: {
|
|
18
|
-
//在UMD构建模式下为这些外部化的依赖提供一个全局变量
|
|
19
|
-
globals: {
|
|
20
|
-
vue: "Vue",
|
|
21
|
-
},
|
|
22
|
-
//定义生成css的名称
|
|
23
|
-
assetFileNames: (assetInfo) => {
|
|
24
|
-
if (assetInfo.name == 'style.css')
|
|
25
|
-
return 'workflow-editor.css';//打包的css名称
|
|
26
|
-
return assetInfo.name;
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},//rollup打包配置
|
|
30
|
-
},
|
|
31
|
-
//...其他配置项
|
|
32
|
-
resolve: {
|
|
33
|
-
//忽略后缀名的配置选项,添加.vue选项时要记得原本默认忽略的选项也要手动写入
|
|
34
|
-
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
|
35
|
-
}
|
|
1
|
+
import { defineConfig } from "vite";
|
|
2
|
+
import vue from "@vitejs/plugin-vue";
|
|
3
|
+
import path from "path";
|
|
4
|
+
//https://vitejs.dev/config/
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [vue()],
|
|
7
|
+
build: {
|
|
8
|
+
outDir: "lib",//输出文件名称
|
|
9
|
+
lib: {
|
|
10
|
+
entry: path.resolve(__dirname, "./packages/index.js"),//指定组件编译入口文件
|
|
11
|
+
name: "workflow-editor",//打包js名称
|
|
12
|
+
fileName: "workflow-editor",
|
|
13
|
+
},//库编译模式配置
|
|
14
|
+
rollupOptions: {
|
|
15
|
+
//确保外部化处理那些你不想打包进库的依赖
|
|
16
|
+
external: ["vue"],
|
|
17
|
+
output: {
|
|
18
|
+
//在UMD构建模式下为这些外部化的依赖提供一个全局变量
|
|
19
|
+
globals: {
|
|
20
|
+
vue: "Vue",
|
|
21
|
+
},
|
|
22
|
+
//定义生成css的名称
|
|
23
|
+
assetFileNames: (assetInfo) => {
|
|
24
|
+
if (assetInfo.name == 'style.css')
|
|
25
|
+
return 'workflow-editor.css';//打包的css名称
|
|
26
|
+
return assetInfo.name;
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},//rollup打包配置
|
|
30
|
+
},
|
|
31
|
+
//...其他配置项
|
|
32
|
+
resolve: {
|
|
33
|
+
//忽略后缀名的配置选项,添加.vue选项时要记得原本默认忽略的选项也要手动写入
|
|
34
|
+
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
|
|
35
|
+
}
|
|
36
36
|
});
|