mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add new build command for building package
This commit is contained in:
parent
76d5fa4694
commit
f4150a7829
40610
invokeai/frontend/web/dist/App-d3a51b95.mjs
vendored
Normal file
40610
invokeai/frontend/web/dist/App-d3a51b95.mjs
vendored
Normal file
File diff suppressed because one or more lines are too long
4576
invokeai/frontend/web/dist/ThemeLocaleProvider-e939cd27.mjs
vendored
Normal file
4576
invokeai/frontend/web/dist/ThemeLocaleProvider-e939cd27.mjs
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
||||
.ltr-image-gallery-css-transition-enter{transform:translate(150%)}.ltr-image-gallery-css-transition-enter-active{transform:translate(0);transition:all .12s ease-out}.ltr-image-gallery-css-transition-exit{transform:translate(0)}.ltr-image-gallery-css-transition-exit-active{transform:translate(150%);transition:all .12s ease-out}.rtl-image-gallery-css-transition-enter{transform:translate(-150%)}.rtl-image-gallery-css-transition-enter-active{transform:translate(0);transition:all .12s ease-out}.rtl-image-gallery-css-transition-exit{transform:translate(0)}.rtl-image-gallery-css-transition-exit-active{transform:translate(-150%);transition:all .12s ease-out}.ltr-parameters-panel-transition-enter{transform:translate(-150%)}.ltr-parameters-panel-transition-enter-active{transform:translate(0);transition:all .12s ease-out}.ltr-parameters-panel-transition-exit{transform:translate(0)}.ltr-parameters-panel-transition-exit-active{transform:translate(-150%);transition:all .12s ease-out}.rtl-parameters-panel-transition-enter{transform:translate(150%)}.rtl-parameters-panel-transition-enter-active{transform:translate(0);transition:all .12s ease-out}.rtl-parameters-panel-transition-exit{transform:translate(0)}.rtl-parameters-panel-transition-exit-active{transform:translate(150%);transition:all .12s ease-out}
|
188
invokeai/frontend/web/dist/assets/App-2afdb3c5.js
vendored
188
invokeai/frontend/web/dist/assets/App-2afdb3c5.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 116 KiB |
File diff suppressed because one or more lines are too long
115
invokeai/frontend/web/dist/assets/index-61f10aa8.js
vendored
115
invokeai/frontend/web/dist/assets/index-61f10aa8.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
invokeai/frontend/web/dist/assets/logo-13003d72.png
vendored
BIN
invokeai/frontend/web/dist/assets/logo-13003d72.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 43 KiB |
File diff suppressed because one or more lines are too long
25336
invokeai/frontend/web/dist/component-6919b100.mjs
vendored
Normal file
25336
invokeai/frontend/web/dist/component-6919b100.mjs
vendored
Normal file
File diff suppressed because one or more lines are too long
23
invokeai/frontend/web/dist/index.html
vendored
23
invokeai/frontend/web/dist/index.html
vendored
@ -1,23 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>InvokeAI - A Stable Diffusion Toolkit</title>
|
||||
<link rel="shortcut icon" type="icon" href="./assets/favicon-0d253ced.ico" />
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="./assets/index-61f10aa8.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index-5483945c.css">
|
||||
</head>
|
||||
|
||||
<body dir="ltr">
|
||||
<div id="root"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
6
invokeai/frontend/web/dist/invoke-ai-ui.es.js
vendored
Normal file
6
invokeai/frontend/web/dist/invoke-ai-ui.es.js
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import { cX as p } from "./component-6919b100.mjs";
|
||||
import "react";
|
||||
import "react-dom";
|
||||
export {
|
||||
p as default
|
||||
};
|
821
invokeai/frontend/web/dist/invoke-ai-ui.umd.js
vendored
Normal file
821
invokeai/frontend/web/dist/invoke-ai-ui.umd.js
vendored
Normal file
File diff suppressed because one or more lines are too long
4989
invokeai/frontend/web/dist/scrollbar-d87b3f9c.mjs
vendored
Normal file
4989
invokeai/frontend/web/dist/scrollbar-d87b3f9c.mjs
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
invokeai/frontend/web/dist/style.css
vendored
Normal file
1
invokeai/frontend/web/dist/style.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -6,6 +6,7 @@
|
||||
"prepare": "cd ../../../ && husky install invokeai/frontend/web/.husky",
|
||||
"dev": "concurrently \"vite dev\" \"yarn run theme:watch\"",
|
||||
"build": "yarn run lint && vite build",
|
||||
"build:package": "yarn run lint && vite build --mode=package",
|
||||
"preview": "vite preview",
|
||||
"lint:madge": "madge --circular src/main.tsx",
|
||||
"lint:eslint": "eslint --max-warnings=0",
|
||||
@ -36,6 +37,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@chakra-ui/anatomy": "^2.1.1",
|
||||
"@chakra-ui/cli": "^2.3.0",
|
||||
"@chakra-ui/icons": "^2.0.17",
|
||||
"@chakra-ui/react": "^2.5.1",
|
||||
"@chakra-ui/styled-system": "^2.6.1",
|
||||
@ -52,6 +54,7 @@
|
||||
"i18next-http-backend": "^2.1.1",
|
||||
"konva": "^8.4.2",
|
||||
"lodash": "^4.17.21",
|
||||
"patch-package": "^6.5.1",
|
||||
"re-resizable": "^6.9.9",
|
||||
"react": "^18.2.0",
|
||||
"react-colorful": "^5.6.1",
|
||||
@ -72,7 +75,6 @@
|
||||
"uuid": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@chakra-ui/cli": "^2.3.0",
|
||||
"@fontsource/inter": "^4.5.15",
|
||||
"@types/dateformat": "^5.0.0",
|
||||
"@types/react": "^18.0.28",
|
||||
@ -92,7 +94,6 @@
|
||||
"husky": "^8.0.3",
|
||||
"lint-staged": "^13.1.2",
|
||||
"madge": "^6.0.0",
|
||||
"patch-package": "^6.5.1",
|
||||
"postinstall-postinstall": "^2.1.0",
|
||||
"prettier": "^2.8.4",
|
||||
"rollup-plugin-visualizer": "^5.9.0",
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,3 +1,4 @@
|
||||
import path from 'path';
|
||||
import react from '@vitejs/plugin-react-swc';
|
||||
import { visualizer } from 'rollup-plugin-visualizer';
|
||||
import { defineConfig, PluginOption } from 'vite';
|
||||
@ -46,7 +47,7 @@ export default defineConfig(({ mode }) => {
|
||||
* overrides any target specified here.
|
||||
*/
|
||||
// target: 'esnext',
|
||||
chunkSizeWarningLimit: 1500, // we don't really care about chunk size
|
||||
chunkSizeWarningLimit: 1500, // we don't really care about chunk size,
|
||||
},
|
||||
};
|
||||
if (mode == 'development') {
|
||||
@ -57,6 +58,26 @@ export default defineConfig(({ mode }) => {
|
||||
// sourcemap: true, // this can be enabled if needed, it adds ovwer 15MB to the commit
|
||||
},
|
||||
};
|
||||
} else if (mode === 'package') {
|
||||
return {
|
||||
...common,
|
||||
build: {
|
||||
...common.build,
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, 'src/component.tsx'),
|
||||
name: 'InvokeAI UI',
|
||||
fileName: (format) => `invoke-ai-ui.${format}.js`,
|
||||
},
|
||||
rollupOptions: {
|
||||
external: ['react', 'react-dom'],
|
||||
output: {
|
||||
globals: {
|
||||
react: 'React',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
...common,
|
||||
|
Loading…
Reference in New Issue
Block a user