Add new script start:internal and start-prod:internal
This commit is contained in:
parent
3ab630f92c
commit
446acde907
30
.vscode/tasks.json
vendored
30
.vscode/tasks.json
vendored
@ -227,6 +227,36 @@
|
||||
"close": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Frontend | start:internal",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} ; yarn start:internal",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new",
|
||||
"focus": true,
|
||||
"close": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Frontend | start-prod:internal",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} ; yarn start-prod:internal",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new",
|
||||
"focus": true,
|
||||
"close": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Frontend | build-and-start-prod",
|
||||
"type": "shell",
|
||||
|
@ -18,6 +18,8 @@
|
||||
"deploy": "shx rm -rf ../publish/web && yarn workspaces foreach -ptR --from '{@docspace/client,@docspace/login,@docspace/doceditor,@docspace/management}' run deploy && shx cp -r public ../publish/web/ && node common/scripts/minify-common-locales.js",
|
||||
"start": "node ./common/scripts/before-build.js && yarn workspaces foreach -vptiR --from '{@docspace/client,@docspace/login,@docspace/doceditor,@docspace/management}' run start",
|
||||
"start-prod": "yarn workspaces foreach -vptiR --from '{@docspace/client,@docspace/login,@docspace/doceditor,@docspace/management}' run start-prod",
|
||||
"start:internal": "node ./common/scripts/before-build.js && yarn workspaces foreach -vptiR --from '{@docspace/client,@docspace/login,@docspace/doceditor,@docspace/management}' run start:internal",
|
||||
"start-prod:internal": "yarn workspaces foreach -vptiR --from '{@docspace/client,@docspace/login,@docspace/doceditor,@docspace/management}' run start-prod:internal",
|
||||
"storybook": "yarn workspace @docspace/shared storybook",
|
||||
"storybook-build": "yarn workspace @docspace/shared run storybook-build",
|
||||
"storybook-serve": "yarn workspace @docspace/shared run storybook-serve",
|
||||
|
@ -10,6 +10,8 @@
|
||||
"deploy": "shx --silent mkdir -p ../../../publish/web/client && shx cp -r dist/* ../../../publish/web/client",
|
||||
"start": "yarn build:translations && NODE_OPTIONS=--openssl-legacy-provider webpack-cli serve",
|
||||
"start-prod": "serve dist -s -p 5001",
|
||||
"start:internal": "yarn build:translations && NODE_OPTIONS=--openssl-legacy-provider webpack-cli serve",
|
||||
"start-prod:internal": "serve dist -s -p 5001",
|
||||
"analyze": "webpack --profile --json --env mode=analyze && webpack-bundle-analyzer bundle/output/path/stats.json"
|
||||
},
|
||||
"old-scripts": {
|
||||
|
@ -6,6 +6,8 @@
|
||||
"build": "node ./scripts/buildTranslations.js && next build",
|
||||
"start": "node ./scripts/buildTranslations.js && NODE_ENV=development node server.js",
|
||||
"start-prod": "NODE_ENV=production node server.js",
|
||||
"start:internal": "node ./scripts/buildTranslations.js && NODE_ENV=development API_HOST=http://127.0.0.1 node server.js",
|
||||
"start-prod:internal": "NODE_ENV=production API_HOST=http://127.0.0.1 node server.js",
|
||||
"lint": "next lint",
|
||||
"clean": "shx rm -rf .next",
|
||||
"deploy": "shx --silent mkdir -p ../../../publish/web/editor && shx --silent mkdir -p ../../../publish/web/editor/.next && shx --silent mkdir -p ../../../publish/web/editor/config && shx cp -r config/* ../../../publish/web/editor/config && shx --silent mkdir -p ../../../publish/web/editor/node_modules && shx --silent mkdir -p ../../../publish/web/editor/.next/static && shx cp -r .next/standalone/node_modules/* ../../../publish/web/editor/node_modules && shx cp -r .next/static/* ../../../publish/web/editor/.next/static && shx cp -r .next/standalone/packages/doceditor/.next/* ../../../publish/web/editor/.next && shx cp -f server.prod.js ../../../publish/web/editor/server.js"
|
||||
|
@ -6,6 +6,8 @@
|
||||
"build": "node ./scripts/buildTranslations.js && next build",
|
||||
"start": "node ./scripts/buildTranslations.js && NODE_ENV=development node server.js",
|
||||
"start-prod": "NODE_ENV=production node server.js",
|
||||
"start:internal": "node ./scripts/buildTranslations.js && NODE_ENV=development API_HOST=http://127.0.0.1 node server.js",
|
||||
"start-prod:internal": "NODE_ENV=production API_HOST=http://127.0.0.1 node server.js",
|
||||
"lint": "next lint",
|
||||
"clean": "shx rm -rf .next",
|
||||
"deploy": "shx --silent mkdir -p ../../../publish/web/login && shx --silent mkdir -p ../../../publish/web/login/.next && shx --silent mkdir -p ../../../publish/web/login/node_modules && shx --silent mkdir -p ../../../publish/web/login/.next/static && shx cp -r .next/standalone/node_modules/* ../../../publish/web/login/node_modules && shx cp -r .next/static/* ../../../publish/web/login/.next/static && shx cp -r .next/standalone/packages/login/.next/* ../../../publish/web/login/.next && shx cp -f server.prod.js ../../../publish/web/login/server.js"
|
||||
|
@ -9,7 +9,9 @@
|
||||
"clean": "shx rm -rf dist",
|
||||
"deploy": "shx --silent mkdir -p ../../../publish/web/management && shx cp -r dist/* ../../../publish/web/management",
|
||||
"start": "yarn build && yarn build:translations && NODE_OPTIONS=--openssl-legacy-provider webpack-cli serve",
|
||||
"start-prod": "ws --port 5015 --directory dist --spa index.html"
|
||||
"start-prod": "ws --port 5015 --directory dist --spa index.html",
|
||||
"start:internal": "yarn build && yarn build:translations && NODE_OPTIONS=--openssl-legacy-provider webpack-cli serve",
|
||||
"start-prod:internal": "ws --port 5015 --directory dist --spa index.html"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
|
Loading…
Reference in New Issue
Block a user