mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
refactor: move puter gui to workspace
This commit is contained in:
parent
c23e8931ab
commit
a43cab0c93
3242
package-lock.json
generated
3242
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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
Loading…
Reference in New Issue
Block a user