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"
|
"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",
|
||||||
|
@ -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'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
@ -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
Loading…
Reference in New Issue
Block a user