mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-07 07:31:09 -05:00
refactor: move puter gui to workspace
This commit is contained in:
Generated
+2241
-1001
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -25,14 +25,14 @@
|
||||
"webpack-cli": "^5.1.1"
|
||||
},
|
||||
"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": "node run-selfhosted.js",
|
||||
"build": "node ./build.js",
|
||||
"build": "cd src/gui; node ./build.js",
|
||||
"check-translations": "node tools/check-translations.js"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
"src/*"
|
||||
],
|
||||
"nodemonConfig": {
|
||||
"ext": "js, json, mjs, jsx, svg, css",
|
||||
|
||||
@@ -21,13 +21,13 @@ class SelfHostedModule extends AdvancedBase {
|
||||
commands: [
|
||||
{
|
||||
name: 'puter.js:webpack-watch',
|
||||
directory: 'packages/puter-js',
|
||||
directory: 'src/puter-js',
|
||||
command: 'npm',
|
||||
args: ['run', 'start-webpack'],
|
||||
},
|
||||
{
|
||||
name: 'terminal:rollup-watch',
|
||||
directory: 'packages/terminal',
|
||||
directory: 'src/terminal',
|
||||
command: 'npx',
|
||||
args: ['rollup', '-c', 'rollup.config.js', '--watch'],
|
||||
env: {
|
||||
@@ -36,7 +36,7 @@ class SelfHostedModule extends AdvancedBase {
|
||||
},
|
||||
{
|
||||
name: 'phoenix:rollup-watch',
|
||||
directory: 'packages/phoenix',
|
||||
directory: 'src/phoenix',
|
||||
command: 'npx',
|
||||
args: ['rollup', '-c', 'rollup.config.js', '--watch'],
|
||||
env: {
|
||||
@@ -45,7 +45,7 @@ class SelfHostedModule extends AdvancedBase {
|
||||
},
|
||||
{
|
||||
name: 'git:rollup-watch',
|
||||
directory: 'packages/git',
|
||||
directory: 'src/git',
|
||||
command: 'npx',
|
||||
args: ['rollup', '-c', 'rollup.config.js', '--watch'],
|
||||
env: {
|
||||
@@ -60,19 +60,19 @@ class SelfHostedModule extends AdvancedBase {
|
||||
directories: [
|
||||
{
|
||||
prefix: '/sdk',
|
||||
path: path_.resolve(__dirname, '../../../packages/puter-js/dist'),
|
||||
path: path_.resolve(__dirname, '../../../src/puter-js/dist'),
|
||||
},
|
||||
{
|
||||
prefix: '/builtin/terminal',
|
||||
path: path_.resolve(__dirname, '../../../packages/terminal/dist'),
|
||||
path: path_.resolve(__dirname, '../../../src/terminal/dist'),
|
||||
},
|
||||
{
|
||||
prefix: '/builtin/phoenix',
|
||||
path: path_.resolve(__dirname, '../../../packages/phoenix/dist'),
|
||||
path: path_.resolve(__dirname, '../../../src/phoenix/dist'),
|
||||
},
|
||||
{
|
||||
prefix: '/builtin/git',
|
||||
path: path_.resolve(__dirname, '../../../packages/git/dist'),
|
||||
path: path_.resolve(__dirname, '../../../src/git/dist'),
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -78,7 +78,7 @@ config.puter_hosted_data = {
|
||||
{
|
||||
const path_ = require('path');
|
||||
config.assets = {
|
||||
gui: path_.join(__dirname, '../../..'),
|
||||
gui: path_.join(__dirname, '../../gui'),
|
||||
gui_profile: 'development',
|
||||
};
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user