@zenuml/core 3.17.1 → 3.17.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.
@@ -1,4 +1,4 @@
1
- import { o as c, c as e, a as o } from "./core.04cb35e8.js";
1
+ import { o as c, c as e, a as o } from "./core.50a14f5d.js";
2
2
  const s = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
@@ -20,4 +20,4 @@ export {
20
20
  _ as default,
21
21
  l as render
22
22
  };
23
- //# sourceMappingURL=zoom-in.268778e5.js.map
23
+ //# sourceMappingURL=zoom-in.95813303.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c, a as o } from "./core.04cb35e8.js";
1
+ import { o as t, c, a as o } from "./core.50a14f5d.js";
2
2
  const e = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
@@ -20,4 +20,4 @@ export {
20
20
  h as default,
21
21
  s as render
22
22
  };
23
- //# sourceMappingURL=zoom-out.ec52b08d.js.map
23
+ //# sourceMappingURL=zoom-out.725ea051.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "3.17.1",
3
+ "version": "3.17.3",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,6 +23,8 @@
23
23
  "antlr:clear": "rm -rf src/generated-parser/*",
24
24
  "antlr:lexer": "java -Duser.dir=$(pwd)/src/g4 -cp $(pwd)/antlr/antlr-4.11.1-complete.jar org.antlr.v4.Tool -o ./src/generated-parser -Dlanguage=JavaScript sequenceLexer.g4",
25
25
  "antlr:parser": "java -Duser.dir=$(pwd)/src/g4 -cp $(pwd)/antlr/antlr-4.11.1-complete.jar org.antlr.v4.Tool -o ./src/generated-parser -Dlanguage=JavaScript sequenceParser.g4",
26
+ "eslint": "eslint --fix --ext .js,.ts,.vue src",
27
+ "prettier": "prettier --write --ignore-unknown \"src/**/*.{js,ts,vue,json,htm,html}\"",
26
28
  "git:branch:clean:gone": "git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d",
27
29
  "git:branch:clean:merged": "git branch --merged|egrep -v \"(\\*|master|main|dev|skip_branch_name)\" | xargs git branch -d",
28
30
  "git:branch:safe-delete": "echo '> git log --graph --left-right --cherry --oneline another-branch...main'",
package/vite.config.js CHANGED
@@ -1,12 +1,21 @@
1
- import { resolve } from 'path';
2
- import { defineConfig } from 'vite';
3
- import createVuePlugin from '@vitejs/plugin-vue';
4
- import { execSync } from 'child_process';
5
- import svgLoader from 'vite-svg-loader';
1
+ import { resolve } from "path";
2
+ import { defineConfig } from "vite";
3
+ import createVuePlugin from "@vitejs/plugin-vue";
4
+ import { execSync } from "child_process";
5
+ import svgLoader from "vite-svg-loader";
6
+
7
+ process.env.VITE_APP_GIT_HASH = execSync("git rev-parse --short HEAD")
8
+ .toString()
9
+ .trim();
10
+ process.env.VITE_APP_GIT_BRANCH = execSync("git branch --show-current")
11
+ .toString()
12
+ .trim();
6
13
 
7
14
  function getCypressHtmlFiles() {
8
- const cypressFolder = resolve(__dirname, 'cy');
9
- const strings = execSync(`find ${cypressFolder} -name '*.html'`).toString().split('\n');
15
+ const cypressFolder = resolve(__dirname, "cy");
16
+ const strings = execSync(`find ${cypressFolder} -name '*.html'`)
17
+ .toString()
18
+ .split("\n");
10
19
  // remove empty string
11
20
  strings.pop();
12
21
  return strings;
@@ -17,13 +26,13 @@ console.log(cypressHtmlFiles);
17
26
  export default defineConfig({
18
27
  build: {
19
28
  rollupOptions: {
20
- input: ['index.html', 'embed.html', ...cypressHtmlFiles],
29
+ input: ["index.html", "embed.html", ...cypressHtmlFiles],
21
30
  },
22
31
  },
23
32
  resolve: {
24
33
  alias: {
25
- 'vue': '@vue/compat',
26
- '@': resolve(__dirname, './src')
34
+ vue: "@vue/compat",
35
+ "@": resolve(__dirname, "./src"),
27
36
  },
28
37
  },
29
38
  plugins: [
@@ -39,11 +48,10 @@ export default defineConfig({
39
48
  svgLoader(),
40
49
  ],
41
50
  test: {
42
- environment: 'jsdom',
51
+ environment: "jsdom",
43
52
  globals: true,
44
53
  deps: {
45
- inline: ['@vue/test-utils'],
54
+ inline: ["@vue/test-utils"],
46
55
  },
47
56
  },
48
57
  });
49
-