add turbo, changes to make it work across docker, docker-compose, npx
This commit is contained in:
parent
2356cc7abd
commit
8ce32179ee
10
.npmrc
10
.npmrc
|
|
@ -1,4 +1,6 @@
|
||||||
shared-workspace-lockfile=false
|
auto-install-peers = true
|
||||||
public-hoist-pattern[]=*eslint*
|
strict-peer-dependencies = false
|
||||||
public-hoist-pattern[]=*prettier*
|
prefer-workspace-packages = true
|
||||||
public-hoist-pattern[]=@types*
|
link-workspace-packages = deep
|
||||||
|
hoist = true
|
||||||
|
shamefully-hoist = true
|
||||||
|
|
|
||||||
21
package.json
21
package.json
|
|
@ -10,14 +10,14 @@
|
||||||
"components"
|
"components"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
"build": "turbo run build",
|
||||||
"dev": "kill-port 3000 5173 && pnpm --filter './packages/**' dev",
|
"build-force": "pnpm clean && turbo run build --force",
|
||||||
"build": "pnpm clean && pnpm -r --filter \"./packages/**\" build",
|
"dev": "turbo run dev --parallel",
|
||||||
"start": "kill-port 3000 && run-script-os",
|
"start": "run-script-os",
|
||||||
"start:windows": "cd packages/server/bin && run start",
|
"start:windows": "cd packages/server/bin && run start",
|
||||||
"start:default": "cd packages/server/bin && ./run start",
|
"start:default": "cd packages/server/bin && ./run start",
|
||||||
"clean": " pnpm --filter './packages/**' clean",
|
"clean": "pnpm --filter \"./packages/**\" clean",
|
||||||
"nuke": " pnpm --filter './packages/**' nuke && rimraf node_modules",
|
"nuke": "pnpm --filter \"./packages/**\" nuke && rimraf node_modules",
|
||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
||||||
"lint": "eslint \"**/*.{js,jsx,ts,tsx,json,md}\"",
|
"lint": "eslint \"**/*.{js,jsx,ts,tsx,json,md}\"",
|
||||||
"lint-fix": "pnpm lint --fix",
|
"lint-fix": "pnpm lint --fix",
|
||||||
|
|
@ -49,9 +49,16 @@
|
||||||
"pretty-quick": "^3.1.3",
|
"pretty-quick": "^3.1.3",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"run-script-os": "^1.1.6",
|
"run-script-os": "^1.1.6",
|
||||||
|
"turbo": "1.10.16",
|
||||||
"typescript": "^4.8.4"
|
"typescript": "^4.8.4"
|
||||||
},
|
},
|
||||||
|
"packageManager": "pnpm@8.10.5",
|
||||||
|
"pnpm": {
|
||||||
|
"onlyBuiltDependencies": [
|
||||||
|
"sqlite3"
|
||||||
|
]
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.15.0"
|
"node": ">=18.15.0 <19.0.0 || ^20"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from '.'
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
"main": "dist/src/index",
|
"main": "dist/src/index",
|
||||||
"types": "dist/src/index.d.ts",
|
"types": "dist/src/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
|
||||||
"build": "tsc && gulp",
|
"build": "tsc && gulp",
|
||||||
"dev": "tsc --watch",
|
"dev": "tsc --watch",
|
||||||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"ignore": ["**/*.spec.ts", ".git", "node_modules"],
|
"ignore": ["**/*.spec.ts", ".git", "node_modules"],
|
||||||
"watch": ["commands", "index.ts", "src", "../components/nodes", "../components/src"],
|
"watch": ["commands", "index.ts", "src", "../components/nodes", "../components/src"],
|
||||||
"exec": "./bin/dev start",
|
"exec": "npm start",
|
||||||
"ext": "ts"
|
"ext": "ts"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@
|
||||||
"commands": "./dist/commands"
|
"commands": "./dist/commands"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"start": "run-script-os",
|
"start": "run-script-os",
|
||||||
"clean": "rimraf dist",
|
"clean": "rimraf dist",
|
||||||
|
|
@ -44,7 +43,7 @@
|
||||||
"email": "henryheng@flowiseai.com"
|
"email": "henryheng@flowiseai.com"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.15.0"
|
"node": ">=18.15.0 <19.0.0 || ^20"
|
||||||
},
|
},
|
||||||
"license": "SEE LICENSE IN LICENSE.md",
|
"license": "SEE LICENSE IN LICENSE.md",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,44 +1,46 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Flowise - Low-code LLM apps builder</title>
|
<title>Flowise - Low-code LLM apps builder</title>
|
||||||
<link rel="icon" href="favicon.ico" />
|
<link rel="icon" href="favicon.ico" />
|
||||||
<!-- Meta Tags-->
|
<!-- Meta Tags-->
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#2296f3" />
|
<meta name="theme-color" content="#2296f3" />
|
||||||
<meta name="title" content="Flowise - Low-code LLM apps builder" />
|
<meta name="title" content="Flowise - Low-code LLM apps builder" />
|
||||||
<meta name="description" content="Flowise helps you to better integrate Web3 with existing Web2 applications" />
|
<meta name="description" content="Drag & drop UI to build your customized LLM flow" />
|
||||||
<meta name="keywords" content="react, material-ui, reactjs, reactjs, workflow automation, web3, web2, blockchain" />
|
<meta name="keywords" content="react, material-ui, workflow automation, llm, artificial-intelligence" />
|
||||||
<meta name="author" content="CodedThemes" />
|
<meta name="author" content="FlowiseAI" />
|
||||||
<!-- Open Graph / Facebook -->
|
<!-- Open Graph / Facebook -->
|
||||||
<meta property="og:locale" content="en_US" />
|
<meta property="og:locale" content="en_US" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="https://flowiseai.com/" />
|
<meta property="og:url" content="https://flowiseai.com/" />
|
||||||
<meta property="og:site_name" content="flowiseai.com" />
|
<meta property="og:site_name" content="flowiseai.com" />
|
||||||
<meta property="article:publisher" content="https://www.facebook.com/codedthemes" />
|
<meta property="og:title" content="Flowise - Low-code LLM apps builder" />
|
||||||
<meta property="og:title" content="Flowise - Low-code LLM apps builder" />
|
<meta property="og:description" content="Drag & drop UI to build your customized LLM flow" />
|
||||||
<meta property="og:description" content="Flowise helps you to better build LLM flows using Langchain in simple GUI" />
|
<!-- Twitter -->
|
||||||
<meta property="og:image" content="https://flowiseai.com/og-image/og-facebook.png" />
|
<meta property="twitter:card" content="summary_large_image" />
|
||||||
<!-- Twitter -->
|
<meta property="twitter:url" content="https://twitter.com/FlowiseAI" />
|
||||||
<meta property="twitter:card" content="summary_large_image" />
|
<meta property="twitter:title" content="Flowise - Low-code LLM apps builder" />
|
||||||
<meta property="twitter:url" content="https://flowiseai.com" />
|
<meta property="twitter:description" content="Drag & drop UI to build your customized LLM flow" />
|
||||||
<meta property="twitter:title" content="Flowise - Low-code LLM apps builder" />
|
<meta name="twitter:creator" content="@FlowiseAI" />
|
||||||
<meta property="twitter:description" content="Flowise helps you to better build LLM flows using Langchain in simple GUI" />
|
|
||||||
<meta property="twitter:image" content="https://flowiseai.com/og-image/og-twitter.png" />
|
|
||||||
<meta name="twitter:creator" content="@codedthemes" />
|
|
||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<div id="portal"></div>
|
<div id="portal"></div>
|
||||||
<script type="module" src="src/index.jsx"></script>
|
<script type="module" src="src/index.jsx"></script>
|
||||||
</body>
|
<script>
|
||||||
|
if (global === undefined) {
|
||||||
|
var global = window
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@
|
||||||
"yup": "^0.32.9"
|
"yup": "^0.32.9"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"clean": "rimraf build",
|
"clean": "rimraf build",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -3,8 +3,7 @@ export const gridSpacing = 3
|
||||||
export const drawerWidth = 260
|
export const drawerWidth = 260
|
||||||
export const appDrawerWidth = 320
|
export const appDrawerWidth = 320
|
||||||
export const maxScroll = 100000
|
export const maxScroll = 100000
|
||||||
export const baseURL =
|
export const baseURL = import.meta.env.PROD === true ? window.location.origin : window.location.origin.replace(':8080', ':3000')
|
||||||
import.meta.env.PROD === true ? window.location.protocol : window.location.protocol + '//' + window.location.hostname + ':3000'
|
|
||||||
export const uiBaseURL = window.location.origin
|
export const uiBaseURL = window.location.origin
|
||||||
export const FLOWISE_CREDENTIAL_ID = 'FLOWISE_CREDENTIAL_ID'
|
export const FLOWISE_CREDENTIAL_ID = 'FLOWISE_CREDENTIAL_ID'
|
||||||
export const REDACTED_CREDENTIAL_VALUE = '_FLOWISE_BLANK_07167752-1a71-43b1-bf8f-4f32252165db'
|
export const REDACTED_CREDENTIAL_VALUE = '_FLOWISE_BLANK_07167752-1a71-43b1-bf8f-4f32252165db'
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,13 @@ export default defineConfig({
|
||||||
alias: {
|
alias: {
|
||||||
'@': resolve(__dirname, 'src')
|
'@': resolve(__dirname, 'src')
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
root: resolve(__dirname),
|
||||||
|
build: {
|
||||||
|
outDir: './build'
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
open: true,
|
||||||
|
port: 8080
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
30241
pnpm-lock.yaml
30241
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"pipeline": {
|
||||||
|
"build": {
|
||||||
|
"dependsOn": ["^build"],
|
||||||
|
"outputs": ["dist/**"]
|
||||||
|
},
|
||||||
|
"test": {},
|
||||||
|
"dev": {
|
||||||
|
"cache": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue