-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from VictorS67/encre-studio-revised
Update Encre Core for Encre Studio imports
- Loading branch information
Showing
38 changed files
with
1,262 additions
and
1,515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
REACT_APP_ENV=local | ||
ELECTRON_START_URL='http://localhost:3000' | ||
ELECTRON_START_URL='http://localhost:8080' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
|
||
# production | ||
/build | ||
/dist | ||
|
||
# misc | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const webpack = require("webpack"); | ||
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); | ||
|
||
module.exports = function override(config) { | ||
const fallback = config.resolve.fallback || {}; | ||
Object.assign(fallback, { | ||
perf_hooks: false, | ||
child_process: false, | ||
fs: false, | ||
tls: false, | ||
net: false, | ||
path: require.resolve("path-browserify"), | ||
util: require.resolve("util/"), | ||
crypto: require.resolve("crypto-browserify"), | ||
stream: require.resolve("stream-browserify"), | ||
// "stream/web": false, | ||
assert: require.resolve("assert"), | ||
http: require.resolve("stream-http"), | ||
https: require.resolve("https-browserify"), | ||
os: require.resolve("os-browserify"), | ||
url: require.resolve("url"), | ||
"process/browser": require.resolve("process/browser"), | ||
process: require.resolve("process/browser"), // Ensures process is available | ||
}); | ||
config.resolve.fallback = fallback; | ||
config.plugins = (config.plugins || []).concat([ | ||
new webpack.IgnorePlugin({ | ||
resourceRegExp: /^node:/, // Regular expression to match all node: prefixed modules | ||
}), | ||
new webpack.IgnorePlugin({ | ||
resourceRegExp: /^stream\/web/, // Regular expression to match all node: prefixed modules | ||
}), | ||
new NodePolyfillPlugin(), | ||
new webpack.ProvidePlugin({ | ||
process: "process/browser", | ||
Buffer: ["buffer", "Buffer"], | ||
}), | ||
]); | ||
// config.resolve.extensions = [".js", ".json", ".jsx", ".mjs"]; // Make sure to include '.mjs' if you're dealing with ES Modules | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
"author": "Encre", | ||
"license": "MIT", | ||
"private": true, | ||
"type": "commonjs", | ||
"packageManager": "[email protected].21", | ||
"main": "build/electron/electron.js", | ||
"type": "module", | ||
"packageManager": "[email protected].19", | ||
"main": "dist/main/electron.js", | ||
"devDependencies": { | ||
"@atlaskit/eslint-plugin-design-system": "^4.11.2", | ||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11", | ||
|
@@ -25,7 +25,8 @@ | |
"@typescript-eslint/eslint-plugin": "^6.7.0", | ||
"@typescript-eslint/parser": "^6.7.0", | ||
"concurrently": "^8.2.1", | ||
"electron": "^26.3.0", | ||
"css-loader": "^7.1.2", | ||
"electron": "^28.0.0", | ||
"eslint": "^8.49.0", | ||
"eslint-cjs-to-esm": "^2.2.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
|
@@ -35,17 +36,24 @@ | |
"eslint-plugin-n": "^16.1.0", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"esm": "^3.2.25", | ||
"node-polyfill-webpack-plugin": "^4.0.0", | ||
"prettier": "^3.0.3", | ||
"react-app-rewired": "^2.2.1", | ||
"react-scripts": "5.0.1", | ||
"recoil-persist": "^5.1.0", | ||
"wait-on": "^7.0.1" | ||
"style-loader": "^4.0.0", | ||
"ts-loader": "^9.5.1", | ||
"wait-on": "^7.0.1", | ||
"webpack-cli": "^5.1.4" | ||
}, | ||
"dependencies": { | ||
"@atlaskit/css-reset": "^6.5.4", | ||
"@atlaskit/tokens": "^1.43.0", | ||
"@dnd-kit/core": "^6.0.8", | ||
"@emotion/react": "^11.11.1", | ||
"@emotion/styled": "^11.11.0", | ||
"@encrejs/core": "workspace:^", | ||
"@ffmpeg/ffmpeg": "^0.12.10", | ||
"@ffmpeg/util": "^0.12.1", | ||
"@floating-ui/react": "^0.26.0", | ||
|
@@ -57,15 +65,14 @@ | |
"ahooks": "^3.7.8", | ||
"clsx": "^2.0.0", | ||
"immer": "^10.0.3", | ||
"langchain": "^0.0.149", | ||
"lodash-es": "^4.17.21", | ||
"marked": "^9.0.0", | ||
"monaco-editor": "^0.45.0", | ||
"openai": "^4.7.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-error-boundary": "^4.0.12", | ||
"react-redux": "^8.1.2", | ||
"react-transition-group": "^4.4.5", | ||
"recoil": "^0.7.7", | ||
"recoil-persist": "^5.1.0", | ||
"ts-dedent": "^2.2.0", | ||
|
@@ -77,13 +84,21 @@ | |
"ws": "^8.14.1", | ||
"yaml": "^2.3.2" | ||
}, | ||
"imports": { | ||
"@encrejs/core": "./node_modules/@encrejs/core/*.js" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"start": "react-app-rewired start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject", | ||
"lint": "eslint src/**/*.{ts,tsx} --quiet --fix", | ||
"lint-fix": "eslint --fix src/**/*.{ts,tsx} src/**/**/*.{ts,tsx}", | ||
"build:react": "webpack --config webpack.config.cjs", | ||
"build:electron": "tsc -p electron/tsconfig.json", | ||
"start:dev": "concurrently \"yarn start:react\" \"wait-on http://localhost:8000 && yarn start:electron\"", | ||
"start:react": "webpack serve --config webpack.config.cjs --mode development", | ||
"start:electron": "electron .", | ||
"electron-build": "tsc -p electron/tsconfig.json", | ||
"electron-start": "yarn electron-build && electron .", | ||
"electron-dev": "concurrently \"yarn start\" \"wait-on http://localhost:3000 && yarn electron-start\"" | ||
|
@@ -106,4 +121,4 @@ | |
"last 1 safari version" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.