From 2cecc4ede1cb091611f3996f56d3c72b3eceb201 Mon Sep 17 00:00:00 2001 From: MrCoder Date: Sun, 1 Jan 2023 16:19:35 +1100 Subject: [PATCH] Build zenuml/core in pnpm run build and pnpm run dev. --- .vite/build.ts | 105 +++ package.json | 6 +- packages/mermaid-zenuml/src/zenumlRenderer.ts | 1 - .../mermaid-zenuml/zenuml/core/package.json | 2 +- pnpm-lock.yaml | 687 +++++++++++++++--- 5 files changed, 682 insertions(+), 119 deletions(-) diff --git a/.vite/build.ts b/.vite/build.ts index 32f6a3bf10..122224e6eb 100644 --- a/.vite/build.ts +++ b/.vite/build.ts @@ -1,10 +1,15 @@ import { build, InlineConfig, type PluginOption } from 'vite'; +import { createVuePlugin as vue } from 'vite-plugin-vue2'; + import { resolve } from 'path'; import { fileURLToPath } from 'url'; import jisonPlugin from './jisonPlugin.js'; import { readFileSync } from 'fs'; import { visualizer } from 'rollup-plugin-visualizer'; import type { TemplateType } from 'rollup-plugin-visualizer/dist/plugin/template-types.js'; +import autoprefixer from 'autoprefixer'; +import tailwindcss from 'tailwindcss'; +import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'; const visualize = process.argv.includes('--visualize'); const watch = process.argv.includes('--watch'); @@ -41,6 +46,11 @@ const packageOptions = { packageName: 'mermaid-mindmap', file: 'detector.ts', }, + 'mermaid-zenuml/zenuml/core': { + name: 'zenuml', + packageName: 'mermaid-zenuml/zenuml/core', + file: 'core.ts', + }, 'mermaid-zenuml': { name: 'mermaid-zenuml', packageName: 'mermaid-zenuml', @@ -120,6 +130,7 @@ export const getBuildConfig = ({ minify, core, watch, entryName }: BuildOptions) if (watch && config.build) { config.build.watch = { include: [ + 'packages/mermaid-zenuml/zenuml/core/src/**', 'packages/mermaid-zenuml/src/**', 'packages/mermaid-mindmap/src/**', 'packages/mermaid/src/**', @@ -128,6 +139,99 @@ export const getBuildConfig = ({ minify, core, watch, entryName }: BuildOptions) }; } + if (entryName === 'mermaid-zenuml/zenuml/core') { + config.plugins.push(vue()); + config.plugins.push(cssInjectedByJsPlugin()); + config.css = { + postcss: { + plugins: [ + tailwindcss({ + important: '.zenuml', + content: [ + './packages/mermaid-zenuml/zenuml/core/**/*.html', + './packages/mermaid-zenuml/zenuml/core/src/**/*.vue', + ], + theme: { + extend: { + textColor: { + skin: { + title: + 'var(--color-text-title, var(--color-text-message, var(--color-text-base, #000)))', + participant: + 'var(--color-text-participant, var(--color-text-message, var(--color-text-base, #000)))', + message: 'var(--color-text-message, var(--color-text-base, #000))', + 'message-arrow': + 'var(--color-message-arrow, var(--color-border-frame, var(--color-border-base, #000)))', // message arrow head + 'message-hover': 'var(--color-text-message-hover, var(--color-bg-base, #fff))', + comment: + 'var(--color-text-comment, var(--color-text-secondary, var(--color-text-base, #000)))', + 'fragment-header': + 'var(--color-text-fragment-header, var(--color-text-message, #000))', + fragment: 'var(--color-text-fragment, var(--color-text-message, #000))', + base: 'var(--color-text-base)', + header: 'var(--color-text-header)', + secondary: 'var(--color-text-secondary)', + control: + 'var(--color-text-control, var(--color-text-secondary, var(--color-text-base, #000)))', + muted: 'var(--color-text-muted)', + hover: 'var(--color-text-hover)', + link: `var(--color-text-link, var(--color-text-secondary, var(--color-text-base, #000)))`, + fill: `var(--color-text-fill)`, + }, + }, + backgroundColor: { + skin: { + canvas: 'var(--color-bg-canvas, var(--color-bg-base, #fff))', + frame: + 'var(--color-bg-frame, var(--color-bg-canvas, var(--color-bg-base, #fff)))', + title: + 'var(--color-bg-title, var(--color-bg-frame, var(--color-bg-canvas, var(--color-bg-base, #fff))))', + participant: + 'var(--color-bg-participant, var(--color-bg-frame, var(--color-bg-canvas, var(--color-bg-base, #fff))))', + lifeline: + 'var(--color-border-participant, var(--color-border-participant, var(--color-border-frame, var(--color-border-base, #000))))', + divider: + 'var(--color-border-participant, var(--color-border-frame, var(--color-border-base, #000)))', + 'message-hover': 'var(--color-bg-message-hover, var(--color-text-base, #000))', + 'fragment-header': 'var(--color-bg-fragment-header, transparent)', + occurrence: + 'var(--color-bg-occurrence, var(--color-bg-participant, var(--color-bg-frame, var(--color-bg-canvas, var(--color-bg-base, #fff)))))', + base: 'var(--color-bg-base)', + secondary: 'var(--color-bg-secondary)', + hover: 'var(--color-bg-hover)', + fill: 'var(--color-bg-fill)', + }, + }, + borderColor: { + skin: { + frame: 'var(--color-border-frame, var(--color-border-base, #000))', + participant: + 'var(--color-border-participant, var(--color-border-frame, var(--color-border-base, #000)))', + 'message-arrow': + 'var(--color-message-arrow, var(--color-border-frame, var(--color-border-base, #000)))', // message arrow line + fragment: + 'var(--color-border-fragment, var(--color-border-frame, var(--color-border-base, #000)))', + occurrence: + 'var(--color-border-occurrence, var(--color-border-frame, var(--color-border-base, #000)))', + base: 'var(--color-border-base)', + secondary: 'var(--color-border-secondary)', + }, + }, + gradientColorStops: { + skin: { + base: 'var(--color-bg-base)', + secondary: 'var(--color-bg-secondary)', + }, + }, + }, + }, + plugins: [], + }), + autoprefixer, + ], + }, + }; + } return config; }; @@ -151,6 +255,7 @@ if (watch) { if (!mermaidOnly) { build(getBuildConfig({ minify: false, watch, entryName: 'mermaid-mindmap' })); build(getBuildConfig({ minify: false, watch, entryName: 'mermaid-zenuml' })); + build(getBuildConfig({ minify: false, watch, entryName: 'mermaid-zenuml/zenuml/core' })); // build(getBuildConfig({ minify: false, watch, entryName: 'mermaid-example-diagram' })); } } else if (visualize) { diff --git a/package.json b/package.json index cd9bab96e9..1976e50a64 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,7 @@ "git graph" ], "scripts": { - "build:zenuml": "cd packages/mermaid-zenuml/zenuml/core && pnpm run build && cd ../../..", - "build:vite": "pnpm run build:zenuml && ts-node-esm --transpileOnly .vite/build.ts", + "build:vite": "ts-node-esm --transpileOnly .vite/build.ts", "build:mermaid": "pnpm build:vite --mermaid", "build:viz": "pnpm build:mermaid --visualize", "build:types": "tsc -p ./packages/mermaid/tsconfig.json --emitDeclarationOnly && tsc -p ./packages/mermaid-mindmap/tsconfig.json --emitDeclarationOnly && tsc -p ./packages/mermaid-zenuml/tsconfig.json --emitDeclarationOnly", @@ -73,6 +72,7 @@ "@vitejs/plugin-vue2": "^2.2.0", "@vitest/coverage-c8": "^0.25.1", "@vitest/ui": "^0.25.1", + "autoprefixer": "^10.4.13", "concurrently": "^7.5.0", "coveralls": "^3.1.1", "cypress": "^10.11.0", @@ -105,9 +105,11 @@ "rimraf": "^3.0.2", "rollup-plugin-visualizer": "^5.8.3", "start-server-and-test": "^1.14.0", + "tailwindcss": "^3.2.4", "ts-node": "^10.9.1", "typescript": "^4.8.4", "vite": "^3.2.3", + "vite-plugin-css-injected-by-js": "^2.2.0", "vite-plugin-vue2": "^2.0.2", "vitest": "^0.25.3" }, diff --git a/packages/mermaid-zenuml/src/zenumlRenderer.ts b/packages/mermaid-zenuml/src/zenumlRenderer.ts index 1c249976f0..cfffb04f34 100644 --- a/packages/mermaid-zenuml/src/zenumlRenderer.ts +++ b/packages/mermaid-zenuml/src/zenumlRenderer.ts @@ -2,7 +2,6 @@ import { getConfig, log } from './mermaidUtils'; import ZenUml from '@zenuml/core'; import { regexp } from './detector'; -import '@zenuml/core/dist/style.css'; // Create a Zen UML container outside the svg first for rendering, otherwise the Zen UML diagram cannot be rendered properly function createTemporaryZenumlContainer(id: string) { diff --git a/packages/mermaid-zenuml/zenuml/core/package.json b/packages/mermaid-zenuml/zenuml/core/package.json index d890cc8152..3e238c87db 100644 --- a/packages/mermaid-zenuml/zenuml/core/package.json +++ b/packages/mermaid-zenuml/zenuml/core/package.json @@ -33,7 +33,7 @@ "git:forget": "git rm -r --cached . && git add . && git commit -m \"Forget all ignored files\"", "test:specs": "echo \"Error: test:specs is not supported\"" }, - "main": "./dist/zenuml-core.mjs", + "main": "./dist/zenuml.esm.mjs", "types": "./types/index.d.ts", "dependencies": { "@types/assert": "^1.5.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a913e64c1d..f51d542c11 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -58,6 +58,9 @@ importers: '@vitest/ui': specifier: ^0.25.1 version: 0.25.1 + autoprefixer: + specifier: ^10.4.13 + version: 10.4.13_postcss@8.4.20 concurrently: specifier: ^7.5.0 version: 7.5.0 @@ -154,6 +157,9 @@ importers: start-server-and-test: specifier: ^1.14.0 version: 1.14.0 + tailwindcss: + specifier: ^3.2.4 + version: 3.2.4_ra2vnoek4vhbzktaezawwqbin4 ts-node: specifier: ^10.9.1 version: 10.9.1_cbe7ovvae6zqfnmtgctpgpys54 @@ -163,6 +169,12 @@ importers: vite: specifier: ^3.2.3 version: 3.2.3_@types+node@18.11.9 + vite-plugin-css-injected-by-js: + specifier: ^2.2.0 + version: 2.2.0_vite@3.2.3 + vite-plugin-vue2: + specifier: ^2.0.2 + version: 2.0.3_jwcaqoarnxpz6kkg2xgl4rfiqa vitest: specifier: ^0.25.3 version: 0.25.3_oullksb5ic6y72oh2wekoaiuii @@ -1738,16 +1750,6 @@ packages: '@babel/helper-plugin-utils': 7.20.2 dev: true - /@babel/plugin-syntax-typescript/7.18.6_@babel+core@7.20.5: - resolution: {integrity: sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.20.5 - '@babel/helper-plugin-utils': 7.20.2 - dev: true - /@babel/plugin-syntax-typescript/7.20.0_@babel+core@7.20.5: resolution: {integrity: sha512-rd9TkG+u1CExzS4SM1BlMEhMXwFLKVjOAFFCDx9PbX5ycJWDoWMcwdJH9RhkPu1dOgn5TrxLot/Gx6lWFuAUNQ==} engines: {node: '>=6.9.0'} @@ -4637,10 +4639,6 @@ packages: resolution: {integrity: sha512-6u+36Dj3aDzhfBVUf/mfmc92OEdzQ2kx2jcXGdigfl70E/neV21ZHE6UCz4MDzTRcVqGAM27fk+DLXvyDsn3Jw==} dev: true - /@types/node/18.11.15: - resolution: {integrity: sha512-VkhBbVo2+2oozlkdHXLrb3zjsRkpdnaU2bXmX8Wgle3PUi569eLRaHGlgETQHR7lLL1w7GiG3h9SnePhxNDecw==} - dev: true - /@types/node/18.11.18: resolution: {integrity: sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==} @@ -4687,7 +4685,7 @@ packages: /@types/rollup-plugin-visualizer/4.2.1: resolution: {integrity: sha512-Fk4y0EgmsSbvbayYhtSI9+cGvgw1rcQ9RlbExkQt4ivXRdiEwFKuRpxNuJCr0JktXIvOPUuPR7GSmtyZu0dujQ==} dependencies: - '@types/node': 18.11.15 + '@types/node': 18.11.18 rollup: 2.79.1 dev: true @@ -5317,6 +5315,75 @@ packages: '@vue/shared': 3.2.45 dev: true + /@vue/component-compiler-utils/3.3.0: + resolution: {integrity: sha512-97sfH2mYNU+2PzGrmK2haqffDpVASuib9/w2/noxiFi31Z54hW+q3izKQXXQZSNhtiUpAI36uSuYepeBe4wpHQ==} + dependencies: + consolidate: 0.15.1 + hash-sum: 1.0.2 + lru-cache: 4.1.5 + merge-source-map: 1.1.0 + postcss: 7.0.39 + postcss-selector-parser: 6.0.11 + source-map: 0.6.1 + vue-template-es2015-compiler: 1.9.1 + optionalDependencies: + prettier: 2.7.1 + transitivePeerDependencies: + - arc-templates + - atpl + - babel-core + - bracket-template + - coffee-script + - dot + - dust + - dustjs-helpers + - dustjs-linkedin + - eco + - ect + - ejs + - haml-coffee + - hamlet + - hamljs + - handlebars + - hogan.js + - htmling + - jade + - jazz + - jqtpl + - just + - liquid-node + - liquor + - lodash + - marko + - mote + - mustache + - nunjucks + - plates + - pug + - qejs + - ractive + - razor-tmpl + - react + - react-dom + - slm + - squirrelly + - swig + - swig-templates + - teacup + - templayed + - then-jade + - then-pug + - tinyliquid + - toffee + - twig + - twing + - underscore + - vash + - velocityjs + - walrus + - whiskers + dev: true + /@vue/component-compiler-utils/3.3.0_lodash@4.17.21: resolution: {integrity: sha512-97sfH2mYNU+2PzGrmK2haqffDpVASuib9/w2/noxiFi31Z54hW+q3izKQXXQZSNhtiUpAI36uSuYepeBe4wpHQ==} dependencies: @@ -5817,7 +5884,6 @@ packages: acorn: 7.4.1 acorn-walk: 7.2.0 xtend: 4.0.2 - dev: false /acorn-walk/7.2.0: resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} @@ -6052,7 +6118,6 @@ packages: /arg/5.0.2: resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} - dev: false /argparse/1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} @@ -6618,7 +6683,6 @@ packages: /camelcase-css/2.0.1: resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==} engines: {node: '>= 6'} - dev: false /camelcase-keys/6.2.2: resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} @@ -7038,56 +7102,393 @@ packages: engines: {node: ^12.20.0 || ^14.13.0 || >=16.0.0} hasBin: true dependencies: - chalk: 4.1.2 - date-fns: 2.29.3 + chalk: 4.1.2 + date-fns: 2.29.3 + lodash: 4.17.21 + rxjs: 7.5.6 + shell-quote: 1.7.3 + spawn-command: 0.0.2-1 + supports-color: 8.1.1 + tree-kill: 1.2.2 + yargs: 17.5.1 + dev: true + + /condense-newlines/0.2.1: + resolution: {integrity: sha512-P7X+QL9Hb9B/c8HI5BFFKmjgBu2XpQuF98WZ9XkO+dBGgk5XgwiQz7o1SmpglNWId3581UcS0SFAWfoIhMHPfg==} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 2.0.1 + is-whitespace: 0.3.0 + kind-of: 3.2.2 + dev: true + + /config-chain/1.1.13: + resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==} + dependencies: + ini: 1.3.8 + proto-list: 1.2.4 + dev: true + + /configstore/5.0.1: + resolution: {integrity: sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==} + engines: {node: '>=8'} + dependencies: + dot-prop: 5.3.0 + graceful-fs: 4.2.10 + make-dir: 3.1.0 + unique-string: 2.0.0 + write-file-atomic: 3.0.3 + xdg-basedir: 4.0.0 + dev: true + + /connect-history-api-fallback/2.0.0: + resolution: {integrity: sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==} + engines: {node: '>=0.8'} + dev: true + + /console-control-strings/1.1.0: + resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==} + dev: true + + /consolidate/0.15.1: + resolution: {integrity: sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==} + engines: {node: '>= 0.10.0'} + peerDependencies: + arc-templates: ^0.5.3 + atpl: '>=0.7.6' + babel-core: ^6.26.3 + bracket-template: ^1.1.5 + coffee-script: ^1.12.7 + dot: ^1.1.3 + dust: ^0.3.0 + dustjs-helpers: ^1.7.4 + dustjs-linkedin: ^2.7.5 + eco: ^1.1.0-rc-3 + ect: ^0.5.9 + ejs: ^3.1.5 + haml-coffee: ^1.14.1 + hamlet: ^0.3.3 + hamljs: ^0.6.2 + handlebars: ^4.7.6 + hogan.js: ^3.0.2 + htmling: ^0.0.8 + jade: ^1.11.0 + jazz: ^0.0.18 + jqtpl: ~1.1.0 + just: ^0.1.8 + liquid-node: ^3.0.1 + liquor: ^0.0.5 + lodash: ^4.17.20 + marko: ^3.14.4 + mote: ^0.2.0 + mustache: ^3.0.0 + nunjucks: ^3.2.2 + plates: ~0.4.11 + pug: ^3.0.0 + qejs: ^3.0.5 + ractive: ^1.3.12 + razor-tmpl: ^1.3.1 + react: ^16.13.1 + react-dom: ^16.13.1 + slm: ^2.0.0 + squirrelly: ^5.1.0 + swig: ^1.4.2 + swig-templates: ^2.0.3 + teacup: ^2.0.0 + templayed: '>=0.2.3' + then-jade: '*' + then-pug: '*' + tinyliquid: ^0.2.34 + toffee: ^0.3.6 + twig: ^1.15.2 + twing: ^5.0.2 + underscore: ^1.11.0 + vash: ^0.13.0 + velocityjs: ^2.0.1 + walrus: ^0.10.1 + whiskers: ^0.4.0 + peerDependenciesMeta: + arc-templates: + optional: true + atpl: + optional: true + babel-core: + optional: true + bracket-template: + optional: true + coffee-script: + optional: true + dot: + optional: true + dust: + optional: true + dustjs-helpers: + optional: true + dustjs-linkedin: + optional: true + eco: + optional: true + ect: + optional: true + ejs: + optional: true + haml-coffee: + optional: true + hamlet: + optional: true + hamljs: + optional: true + handlebars: + optional: true + hogan.js: + optional: true + htmling: + optional: true + jade: + optional: true + jazz: + optional: true + jqtpl: + optional: true + just: + optional: true + liquid-node: + optional: true + liquor: + optional: true + lodash: + optional: true + marko: + optional: true + mote: + optional: true + mustache: + optional: true + nunjucks: + optional: true + plates: + optional: true + pug: + optional: true + qejs: + optional: true + ractive: + optional: true + razor-tmpl: + optional: true + react: + optional: true + react-dom: + optional: true + slm: + optional: true + squirrelly: + optional: true + swig: + optional: true + swig-templates: + optional: true + teacup: + optional: true + templayed: + optional: true + then-jade: + optional: true + then-pug: + optional: true + tinyliquid: + optional: true + toffee: + optional: true + twig: + optional: true + twing: + optional: true + underscore: + optional: true + vash: + optional: true + velocityjs: + optional: true + walrus: + optional: true + whiskers: + optional: true + dependencies: + bluebird: 3.7.2 + dev: true + + /consolidate/0.15.1_lodash@4.17.21: + resolution: {integrity: sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==} + engines: {node: '>= 0.10.0'} + peerDependencies: + arc-templates: ^0.5.3 + atpl: '>=0.7.6' + babel-core: ^6.26.3 + bracket-template: ^1.1.5 + coffee-script: ^1.12.7 + dot: ^1.1.3 + dust: ^0.3.0 + dustjs-helpers: ^1.7.4 + dustjs-linkedin: ^2.7.5 + eco: ^1.1.0-rc-3 + ect: ^0.5.9 + ejs: ^3.1.5 + haml-coffee: ^1.14.1 + hamlet: ^0.3.3 + hamljs: ^0.6.2 + handlebars: ^4.7.6 + hogan.js: ^3.0.2 + htmling: ^0.0.8 + jade: ^1.11.0 + jazz: ^0.0.18 + jqtpl: ~1.1.0 + just: ^0.1.8 + liquid-node: ^3.0.1 + liquor: ^0.0.5 + lodash: ^4.17.20 + marko: ^3.14.4 + mote: ^0.2.0 + mustache: ^3.0.0 + nunjucks: ^3.2.2 + plates: ~0.4.11 + pug: ^3.0.0 + qejs: ^3.0.5 + ractive: ^1.3.12 + razor-tmpl: ^1.3.1 + react: ^16.13.1 + react-dom: ^16.13.1 + slm: ^2.0.0 + squirrelly: ^5.1.0 + swig: ^1.4.2 + swig-templates: ^2.0.3 + teacup: ^2.0.0 + templayed: '>=0.2.3' + then-jade: '*' + then-pug: '*' + tinyliquid: ^0.2.34 + toffee: ^0.3.6 + twig: ^1.15.2 + twing: ^5.0.2 + underscore: ^1.11.0 + vash: ^0.13.0 + velocityjs: ^2.0.1 + walrus: ^0.10.1 + whiskers: ^0.4.0 + peerDependenciesMeta: + arc-templates: + optional: true + atpl: + optional: true + babel-core: + optional: true + bracket-template: + optional: true + coffee-script: + optional: true + dot: + optional: true + dust: + optional: true + dustjs-helpers: + optional: true + dustjs-linkedin: + optional: true + eco: + optional: true + ect: + optional: true + ejs: + optional: true + haml-coffee: + optional: true + hamlet: + optional: true + hamljs: + optional: true + handlebars: + optional: true + hogan.js: + optional: true + htmling: + optional: true + jade: + optional: true + jazz: + optional: true + jqtpl: + optional: true + just: + optional: true + liquid-node: + optional: true + liquor: + optional: true + lodash: + optional: true + marko: + optional: true + mote: + optional: true + mustache: + optional: true + nunjucks: + optional: true + plates: + optional: true + pug: + optional: true + qejs: + optional: true + ractive: + optional: true + razor-tmpl: + optional: true + react: + optional: true + react-dom: + optional: true + slm: + optional: true + squirrelly: + optional: true + swig: + optional: true + swig-templates: + optional: true + teacup: + optional: true + templayed: + optional: true + then-jade: + optional: true + then-pug: + optional: true + tinyliquid: + optional: true + toffee: + optional: true + twig: + optional: true + twing: + optional: true + underscore: + optional: true + vash: + optional: true + velocityjs: + optional: true + walrus: + optional: true + whiskers: + optional: true + dependencies: + bluebird: 3.7.2 lodash: 4.17.21 - rxjs: 7.5.6 - shell-quote: 1.7.3 - spawn-command: 0.0.2-1 - supports-color: 8.1.1 - tree-kill: 1.2.2 - yargs: 17.5.1 - dev: true - - /condense-newlines/0.2.1: - resolution: {integrity: sha512-P7X+QL9Hb9B/c8HI5BFFKmjgBu2XpQuF98WZ9XkO+dBGgk5XgwiQz7o1SmpglNWId3581UcS0SFAWfoIhMHPfg==} - engines: {node: '>=0.10.0'} - dependencies: - extend-shallow: 2.0.1 - is-whitespace: 0.3.0 - kind-of: 3.2.2 - dev: true - - /config-chain/1.1.13: - resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==} - dependencies: - ini: 1.3.8 - proto-list: 1.2.4 - dev: true - - /configstore/5.0.1: - resolution: {integrity: sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==} - engines: {node: '>=8'} - dependencies: - dot-prop: 5.3.0 - graceful-fs: 4.2.10 - make-dir: 3.1.0 - unique-string: 2.0.0 - write-file-atomic: 3.0.3 - xdg-basedir: 4.0.0 - dev: true - - /connect-history-api-fallback/2.0.0: - resolution: {integrity: sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==} - engines: {node: '>=0.8'} - dev: true - - /console-control-strings/1.1.0: - resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==} dev: true - /consolidate/0.15.1_lodash@4.17.21: - resolution: {integrity: sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==} + /consolidate/0.16.0: + resolution: {integrity: sha512-Nhl1wzCslqXYTJVDyJCu3ODohy9OfBMB5uD2BiBTzd7w+QY0lBzafkR8y8755yMYHAaMD4NuzbAw03/xzfw+eQ==} engines: {node: '>= 0.10.0'} peerDependencies: arc-templates: ^0.5.3 @@ -7117,7 +7518,7 @@ packages: lodash: ^4.17.20 marko: ^3.14.4 mote: ^0.2.0 - mustache: ^3.0.0 + mustache: ^4.0.1 nunjucks: ^3.2.2 plates: ~0.4.11 pug: ^3.0.0 @@ -7252,7 +7653,6 @@ packages: optional: true dependencies: bluebird: 3.7.2 - lodash: 4.17.21 dev: true /consolidate/0.16.0_lodash@4.17.21: @@ -8489,7 +8889,6 @@ packages: /defined/1.0.1: resolution: {integrity: sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==} - dev: false /degenerator/3.0.2: resolution: {integrity: sha512-c0mef3SNQo56t6urUU6tdQAs+ThoD0o9B9MJ8HEt7NQcGEILCRFqQb7ZbP9JAv+QF1Ky5plydhMR/IrqWDm+TQ==} @@ -8553,11 +8952,9 @@ packages: acorn-node: 1.8.2 defined: 1.0.1 minimist: 1.2.6 - dev: false /didyoumean/1.2.2: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} - dev: false /diff-sequences/27.5.1: resolution: {integrity: sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==} @@ -8602,7 +8999,6 @@ packages: /dlv/1.1.3: resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} - dev: false /dns-equal/1.0.0: resolution: {integrity: sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==} @@ -11768,7 +12164,7 @@ packages: dependencies: '@babel/core': 7.20.5 '@babel/generator': 7.20.5 - '@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.20.5 + '@babel/plugin-syntax-typescript': 7.20.0_@babel+core@7.20.5 '@babel/traverse': 7.20.5 '@babel/types': 7.20.5 '@jest/transform': 27.5.1 @@ -11799,7 +12195,7 @@ packages: '@babel/core': 7.20.5 '@babel/generator': 7.20.5 '@babel/plugin-syntax-jsx': 7.18.6_@babel+core@7.20.5 - '@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.20.5 + '@babel/plugin-syntax-typescript': 7.20.0_@babel+core@7.20.5 '@babel/traverse': 7.20.5 '@babel/types': 7.20.5 '@jest/expect-utils': 29.3.1 @@ -12355,7 +12751,6 @@ packages: /lilconfig/2.0.6: resolution: {integrity: sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==} engines: {node: '>=10'} - dev: false /lines-and-columns/1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} @@ -13408,7 +13803,6 @@ packages: /object-hash/3.0.0: resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==} engines: {node: '>= 6'} - dev: false /object-inspect/1.12.2: resolution: {integrity: sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==} @@ -13909,7 +14303,6 @@ packages: postcss-value-parser: 4.2.0 read-cache: 1.0.0 resolve: 1.22.1 - dev: false /postcss-js/4.0.0_postcss@8.4.20: resolution: {integrity: sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==} @@ -13919,7 +14312,6 @@ packages: dependencies: camelcase-css: 2.0.1 postcss: 8.4.20 - dev: false /postcss-load-config/3.1.4_ra2vnoek4vhbzktaezawwqbin4: resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} @@ -13937,7 +14329,6 @@ packages: postcss: 8.4.20 ts-node: 10.9.1_vqcafhj4xvr2nzknlrdklk55zm yaml: 1.10.2 - dev: false /postcss-nested/6.0.0_postcss@8.4.20: resolution: {integrity: sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==} @@ -13947,7 +14338,6 @@ packages: dependencies: postcss: 8.4.20 postcss-selector-parser: 6.0.11 - dev: false /postcss-selector-parser/6.0.11: resolution: {integrity: sha512-zbARubNdogI9j7WY4nQJBiNqQf3sLS3wCP4WfOidu+p28LofJqDH1tcXypGrcmMHhDk2t9wGhCsYe/+szLTy1g==} @@ -14221,7 +14611,6 @@ packages: resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} dependencies: pify: 2.3.0 - dev: false /read-pkg-up/7.0.1: resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} @@ -15480,7 +15869,6 @@ packages: resolve: 1.22.1 transitivePeerDependencies: - ts-node - dev: false /tapable/2.2.1: resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} @@ -15556,7 +15944,7 @@ packages: schema-utils: 3.1.1 serialize-javascript: 6.0.0 terser: 5.15.1 - webpack: 5.75.0_webpack-cli@4.10.0 + webpack: 5.75.0 dev: true /terser/4.8.1: @@ -15576,7 +15964,7 @@ packages: hasBin: true dependencies: '@jridgewell/source-map': 0.3.2 - acorn: 8.8.0 + acorn: 8.8.1 commander: 2.20.3 source-map-support: 0.5.21 dev: true @@ -16295,6 +16683,14 @@ packages: - terser dev: true + /vite-plugin-css-injected-by-js/2.2.0_vite@3.2.3: + resolution: {integrity: sha512-SRGuyY1WUHj7cPzv7AIE0bG5Cb+vioxuq3CkFc1j0b8z5Cy3rXLG8SwxjriylFcZAY7tH2jU4i1bsCJRE/ou6g==} + peerDependencies: + vite: '>2.0.0-0' + dependencies: + vite: 3.2.3_@types+node@18.11.9 + dev: true + /vite-plugin-vue2/2.0.3_eylnpsnqtexsstg5rpaovix6ea: resolution: {integrity: sha512-t3Tu93GWsMHbpeIv66MTO5e/rRAo8/+/eWoUtFYuAdKDMyEnn1dqsrXh+CfG+SJAlxJvcTP8U0eXkzhLjKNyMg==} peerDependencies: @@ -16390,40 +16786,102 @@ packages: - whiskers dev: true - /vite/3.2.3: - resolution: {integrity: sha512-h8jl1TZ76eGs3o2dIBSsvXDLb1m/Ec1iej8ZMdz+PsaFUsftZeWe2CZOI3qogEsMNaywc17gu0q6cQDzh/weCQ==} - engines: {node: ^14.18.0 || >=16.0.0} - hasBin: true + /vite-plugin-vue2/2.0.3_jwcaqoarnxpz6kkg2xgl4rfiqa: + resolution: {integrity: sha512-t3Tu93GWsMHbpeIv66MTO5e/rRAo8/+/eWoUtFYuAdKDMyEnn1dqsrXh+CfG+SJAlxJvcTP8U0eXkzhLjKNyMg==} peerDependencies: - '@types/node': '>= 14' - less: '*' - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true + vite: ^2.0.0 || ^3.0.0 || ^4.0.0 + vue-template-compiler: ^2.2.0 dependencies: - esbuild: 0.15.13 - postcss: 8.4.20 - resolve: 1.22.1 + '@babel/core': 7.20.5 + '@babel/parser': 7.20.5 + '@babel/plugin-proposal-class-properties': 7.18.6_@babel+core@7.20.5 + '@babel/plugin-proposal-decorators': 7.20.5_@babel+core@7.20.5 + '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6_@babel+core@7.20.5 + '@babel/plugin-proposal-object-rest-spread': 7.20.2_@babel+core@7.20.5 + '@babel/plugin-proposal-optional-chaining': 7.18.9_@babel+core@7.20.5 + '@babel/plugin-transform-arrow-functions': 7.18.6_@babel+core@7.20.5 + '@babel/plugin-transform-block-scoping': 7.20.5_@babel+core@7.20.5 + '@babel/plugin-transform-computed-properties': 7.18.9_@babel+core@7.20.5 + '@babel/plugin-transform-destructuring': 7.20.2_@babel+core@7.20.5 + '@babel/plugin-transform-parameters': 7.20.5_@babel+core@7.20.5 + '@babel/plugin-transform-spread': 7.19.0_@babel+core@7.20.5 + '@babel/plugin-transform-typescript': 7.20.2_@babel+core@7.20.5 + '@rollup/pluginutils': 4.2.1 + '@vue/babel-helper-vue-jsx-merge-props': 1.4.0 + '@vue/babel-preset-jsx': 1.4.0_irtg5bf5mab3inz6zbdi3hxawe + '@vue/component-compiler-utils': 3.3.0 + consolidate: 0.16.0 + debug: 4.3.4 + fs-extra: 10.1.0 + hash-sum: 2.0.0 + magic-string: 0.26.7 + prettier: 2.7.1 + querystring: 0.2.1 rollup: 2.79.1 - optionalDependencies: - fsevents: 2.3.2 + slash: 3.0.0 + source-map: 0.7.4 + vite: 3.2.3_@types+node@18.11.9 + vue-template-babel-compiler: 1.2.0_s72bufat24j4xi363kb5czieqe + vue-template-compiler: 2.7.14 + transitivePeerDependencies: + - arc-templates + - atpl + - babel-core + - bracket-template + - coffee-script + - dot + - dust + - dustjs-helpers + - dustjs-linkedin + - eco + - ect + - ejs + - haml-coffee + - hamlet + - hamljs + - handlebars + - hogan.js + - htmling + - jade + - jazz + - jqtpl + - just + - liquid-node + - liquor + - lodash + - marko + - mote + - mustache + - nunjucks + - plates + - pug + - qejs + - ractive + - razor-tmpl + - react + - react-dom + - slm + - squirrelly + - supports-color + - swig + - swig-templates + - teacup + - templayed + - then-jade + - then-pug + - tinyliquid + - toffee + - twig + - twing + - underscore + - vash + - velocityjs + - vue + - walrus + - whiskers dev: true - /vite/3.2.3_@types+node@18.11.15: + /vite/3.2.3: resolution: {integrity: sha512-h8jl1TZ76eGs3o2dIBSsvXDLb1m/Ec1iej8ZMdz+PsaFUsftZeWe2CZOI3qogEsMNaywc17gu0q6cQDzh/weCQ==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -16448,7 +16906,6 @@ packages: terser: optional: true dependencies: - '@types/node': 18.11.15 esbuild: 0.15.13 postcss: 8.4.20 resolve: 1.22.1 @@ -16709,7 +17166,7 @@ packages: dependencies: '@types/chai': 4.3.3 '@types/chai-subset': 1.3.3 - '@types/node': 18.11.15 + '@types/node': 18.11.18 '@vitest/ui': 0.25.1 acorn: 8.8.0 acorn-walk: 8.2.0 @@ -16722,7 +17179,7 @@ packages: tinybench: 2.3.1 tinypool: 0.3.0 tinyspy: 1.0.2 - vite: 3.2.3_@types+node@18.11.15 + vite: 3.2.3_@types+node@18.11.18 transitivePeerDependencies: - less - sass