refactor: move puter gui to workspace

This commit is contained in:
KernelDeimos 2024-07-07 15:36:09 -04:00 committed by Eric Dubé
parent c23e8931ab
commit a43cab0c93
1106 changed files with 2306 additions and 1013 deletions

3242
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,14 +25,14 @@
"webpack-cli": "^5.1.1" "webpack-cli": "^5.1.1"
}, },
"scripts": { "scripts": {
"test": "mocha ./packages/phoenix/test ./packages/phoenix/packages/contextlink/test", "test": "mocha ./src/phoenix/test ./src/phoenix/packages/contextlink/test",
"start=gui": "nodemon --exec \"node dev-server.js\" ", "start=gui": "nodemon --exec \"node dev-server.js\" ",
"start": "node run-selfhosted.js", "start": "node run-selfhosted.js",
"build": "node ./build.js", "build": "cd src/gui; node ./build.js",
"check-translations": "node tools/check-translations.js" "check-translations": "node tools/check-translations.js"
}, },
"workspaces": [ "workspaces": [
"packages/*" "src/*"
], ],
"nodemonConfig": { "nodemonConfig": {
"ext": "js, json, mjs, jsx, svg, css", "ext": "js, json, mjs, jsx, svg, css",

View File

@ -21,13 +21,13 @@ class SelfHostedModule extends AdvancedBase {
commands: [ commands: [
{ {
name: 'puter.js:webpack-watch', name: 'puter.js:webpack-watch',
directory: 'packages/puter-js', directory: 'src/puter-js',
command: 'npm', command: 'npm',
args: ['run', 'start-webpack'], args: ['run', 'start-webpack'],
}, },
{ {
name: 'terminal:rollup-watch', name: 'terminal:rollup-watch',
directory: 'packages/terminal', directory: 'src/terminal',
command: 'npx', command: 'npx',
args: ['rollup', '-c', 'rollup.config.js', '--watch'], args: ['rollup', '-c', 'rollup.config.js', '--watch'],
env: { env: {
@ -36,7 +36,7 @@ class SelfHostedModule extends AdvancedBase {
}, },
{ {
name: 'phoenix:rollup-watch', name: 'phoenix:rollup-watch',
directory: 'packages/phoenix', directory: 'src/phoenix',
command: 'npx', command: 'npx',
args: ['rollup', '-c', 'rollup.config.js', '--watch'], args: ['rollup', '-c', 'rollup.config.js', '--watch'],
env: { env: {
@ -45,7 +45,7 @@ class SelfHostedModule extends AdvancedBase {
}, },
{ {
name: 'git:rollup-watch', name: 'git:rollup-watch',
directory: 'packages/git', directory: 'src/git',
command: 'npx', command: 'npx',
args: ['rollup', '-c', 'rollup.config.js', '--watch'], args: ['rollup', '-c', 'rollup.config.js', '--watch'],
env: { env: {
@ -60,19 +60,19 @@ class SelfHostedModule extends AdvancedBase {
directories: [ directories: [
{ {
prefix: '/sdk', prefix: '/sdk',
path: path_.resolve(__dirname, '../../../packages/puter-js/dist'), path: path_.resolve(__dirname, '../../../src/puter-js/dist'),
}, },
{ {
prefix: '/builtin/terminal', prefix: '/builtin/terminal',
path: path_.resolve(__dirname, '../../../packages/terminal/dist'), path: path_.resolve(__dirname, '../../../src/terminal/dist'),
}, },
{ {
prefix: '/builtin/phoenix', prefix: '/builtin/phoenix',
path: path_.resolve(__dirname, '../../../packages/phoenix/dist'), path: path_.resolve(__dirname, '../../../src/phoenix/dist'),
}, },
{ {
prefix: '/builtin/git', prefix: '/builtin/git',
path: path_.resolve(__dirname, '../../../packages/git/dist'), path: path_.resolve(__dirname, '../../../src/git/dist'),
}, },
], ],
}); });

View File

@ -78,7 +78,7 @@ config.puter_hosted_data = {
{ {
const path_ = require('path'); const path_ = require('path');
config.assets = { config.assets = {
gui: path_.join(__dirname, '../../..'), gui: path_.join(__dirname, '../../gui'),
gui_profile: 'development', gui_profile: 'development',
}; };
} }

Some files were not shown because too many files have changed in this diff Show More