Browse Source

finally working and compiled to one file

master
Marek Piasecki 2 years ago
parent
commit
cd0cd383f7
  1. 84
      site/package-lock.json
  2. 5
      site/package.json
  3. 3
      site/vite.config.js

84
site/package-lock.json

@ -8,12 +8,13 @@
"name": "site", "name": "site",
"version": "0.0.0", "version": "0.0.0",
"dependencies": { "dependencies": {
"pro-router-imba2": "^1.0.3" "pro-router-imba2": "^1.0.6"
}, },
"devDependencies": { "devDependencies": {
"imba": "^2.0.0-alpha.226", "imba": "^2.0.0-alpha.226",
"vite": "^3.2.5", "vite": "^3.2.5",
"vite-plugin-imba": "^0.10.1" "vite-plugin-imba": "^0.10.2",
"vite-plugin-singlefile": "^0.13.2"
} }
}, },
"node_modules/@adobe/css-tools": { "node_modules/@adobe/css-tools": {
@ -2146,40 +2147,10 @@
"dev": true, "dev": true,
"peer": true "peer": true
}, },
"node_modules/lodash.chunk": { "node_modules/lodash-es": {
"version": "4.2.0", "version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash.chunk/-/lodash.chunk-4.2.0.tgz", "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
"integrity": "sha512-ZzydJKfUHJwHa+hF5X66zLFCBrWn5GeF28OHEr4WVWtNDXlQ/IjWKPBiikqKo2ne0+v6JgCgJ0GzJp8k8bHC7w==" "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="
},
"node_modules/lodash.compact": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/lodash.compact/-/lodash.compact-3.0.1.tgz",
"integrity": "sha512-2ozeiPi+5eBXW1CLtzjk8XQFhQOEMwwfxblqeq6EGyTxZJ1bPATqilY0e6g2SLQpP4KuMeuioBhEnWz5Pr7ICQ=="
},
"node_modules/lodash.flatten": {
"version": "4.4.0",
"resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
"integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g=="
},
"node_modules/lodash.frompairs": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/lodash.frompairs/-/lodash.frompairs-4.0.1.tgz",
"integrity": "sha512-dvqe2I+cO5MzXCMhUnfYFa9MD+/760yx2aTAN1lqEcEkf896TxgrX373igVdqSJj6tQd0jnSLE1UMuKufqqxFw=="
},
"node_modules/lodash.includes": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
"integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="
},
"node_modules/lodash.reject": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/lodash.reject/-/lodash.reject-4.6.0.tgz",
"integrity": "sha512-qkTuvgEzYdyhiJBx42YPzPo71R1aEr0z79kAv7Ixg8wPFEjgRgJdUsGMG3Hf3OYSF/kHI79XhNlt+5Ar6OzwxQ=="
},
"node_modules/lodash.topairs": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/lodash.topairs/-/lodash.topairs-4.3.0.tgz",
"integrity": "sha512-qrRMbykBSEGdOgQLJJqVSdPWMD7Q+GJJ5jMRfQYb+LTLsw3tYVIabnCzRqTJb2WTo17PG5gNzXuFaZgYH/9SAQ=="
}, },
"node_modules/loupe": { "node_modules/loupe": {
"version": "2.3.6", "version": "2.3.6",
@ -2224,7 +2195,6 @@
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
"integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
"dev": true, "dev": true,
"peer": true,
"dependencies": { "dependencies": {
"braces": "^3.0.2", "braces": "^3.0.2",
"picomatch": "^2.3.1" "picomatch": "^2.3.1"
@ -2548,17 +2518,11 @@
"integrity": "sha512-S1qvuUwg5dLegfMIt3tFxW2jMhMFgZP0YqoHLdOlggrQYIhbzgpzUsoKqQ6kQ6vRD3kiS+H6NaQt/Ve0fpm4yQ==" "integrity": "sha512-S1qvuUwg5dLegfMIt3tFxW2jMhMFgZP0YqoHLdOlggrQYIhbzgpzUsoKqQ6kQ6vRD3kiS+H6NaQt/Ve0fpm4yQ=="
}, },
"node_modules/pro-router-imba2": { "node_modules/pro-router-imba2": {
"version": "1.0.3", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/pro-router-imba2/-/pro-router-imba2-1.0.3.tgz", "resolved": "https://registry.npmjs.org/pro-router-imba2/-/pro-router-imba2-1.0.6.tgz",
"integrity": "sha512-sixM1DCIl4sWly/DJvvNVXd5KtymGlNRiw7RIyM6C0TbRqmez3sGcJjSyeLifRPhcHJ8Ao2kfDWyjxXZQl9JoQ==", "integrity": "sha512-sGZQaLpYdWOe9hStFQtJU4GPoGnfZiQZ+M9EqOD+5Mx+ptJsDNfn7M7gWM++/8YxZCuEj5wGapRDingPPEq5eg==",
"dependencies": { "dependencies": {
"lodash.chunk": "^4.2.0", "lodash-es": "^4.17.21",
"lodash.compact": "^3.0.1",
"lodash.flatten": "^4.4.0",
"lodash.frompairs": "^4.0.1",
"lodash.includes": "^4.3.0",
"lodash.reject": "^4.6.0",
"lodash.topairs": "^4.3.0",
"pro-router": "^4.3.2" "pro-router": "^4.3.2"
}, },
"bin": { "bin": {
@ -3002,9 +2966,9 @@
} }
}, },
"node_modules/vite-plugin-imba": { "node_modules/vite-plugin-imba": {
"version": "0.10.1", "version": "0.10.2",
"resolved": "https://registry.npmjs.org/vite-plugin-imba/-/vite-plugin-imba-0.10.1.tgz", "resolved": "https://registry.npmjs.org/vite-plugin-imba/-/vite-plugin-imba-0.10.2.tgz",
"integrity": "sha512-L4YKjsg5h5PPJRmLFw/68beerBRzCGiSjCqe0Xxh1aavvcAL57ZgT+7Y2kvwG7rcFO1YBdWtJ/tyJEsMK7rEAg==", "integrity": "sha512-63x3eHUG5wbPo95gATZthUzRG1Xnv46ljTUMMci+heGQK1n+k56QD/dtOH50aSzAPjrJ9zZY3+NFXRi6ShK9fA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@rollup/pluginutils": "^4.2.1", "@rollup/pluginutils": "^4.2.1",
@ -3021,7 +2985,7 @@
"peerDependencies": { "peerDependencies": {
"diff-match-patch": "^1.0.5", "diff-match-patch": "^1.0.5",
"imba": "*", "imba": "*",
"vite": "^3.0.0" "vite": ">3.0.0"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {
"diff-match-patch": { "diff-match-patch": {
@ -3038,6 +3002,22 @@
"node": ">=6" "node": ">=6"
} }
}, },
"node_modules/vite-plugin-singlefile": {
"version": "0.13.2",
"resolved": "https://registry.npmjs.org/vite-plugin-singlefile/-/vite-plugin-singlefile-0.13.2.tgz",
"integrity": "sha512-HAvrU9mxasNMn/YF0Hb9NjsWDstCWe4iLQ6IR5ppOiNMvXjcyqU3C9SDQ32xnonx3Y04JUGjD2bGiT6q0S9T8w==",
"dev": true,
"dependencies": {
"micromatch": "^4.0.5"
},
"engines": {
"node": "^14.18.0 || >=16.0.0"
},
"peerDependencies": {
"rollup": ">=2.79.0",
"vite": ">=3.2.0"
}
},
"node_modules/vitest": { "node_modules/vitest": {
"version": "0.27.3", "version": "0.27.3",
"resolved": "https://registry.npmjs.org/vitest/-/vitest-0.27.3.tgz", "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.27.3.tgz",

5
site/package.json

@ -11,9 +11,10 @@
"devDependencies": { "devDependencies": {
"imba": "^2.0.0-alpha.226", "imba": "^2.0.0-alpha.226",
"vite": "^3.2.5", "vite": "^3.2.5",
"vite-plugin-imba": "^0.10.1" "vite-plugin-imba": "^0.10.2",
"vite-plugin-singlefile": "^0.13.2"
}, },
"dependencies": { "dependencies": {
"pro-router-imba2": "^1.0.3" "pro-router-imba2": "^1.0.6"
} }
} }

3
site/vite.config.js

@ -1,8 +1,9 @@
import proRouterViews from 'pro-router-imba2/vite-plugin' import proRouterViews from 'pro-router-imba2/vite-plugin'
import { imba } from 'vite-plugin-imba'; import { imba } from 'vite-plugin-imba';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
import { viteSingleFile } from "vite-plugin-singlefile"
export default defineConfig({ export default defineConfig({
base: '', base: '',
plugins: [proRouterViews(), imba()], plugins: [proRouterViews(), imba(), viteSingleFile({removeViteModuleLoader: true})],
}); });

Loading…
Cancel
Save