-
Notifications
You must be signed in to change notification settings - Fork 193
ARC 2256 - Enable user to see the basic skeleton of new config experience #2216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
package.json
Outdated
"start:main": "tsnd -r tsconfig-paths/register --watch=.env*,db/config.json --inspect=0.0.0.0:9229 --respawn --transpile-only -- src/main.ts", | ||
"start:worker": "tsnd -r tsconfig-paths/register --watch=.env*,db/config.json --inspect=0.0.0.0:9230 --respawn --transpile-only -- src/worker.ts", | ||
"start:production": "run-p start:main:production start:worker:production", | ||
"start:production": "run-p spa:production start:main:production start:worker:production", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spa:production
should not be here, as in production, we don't need it it. We should copy the compiled assets during build time not run time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spa:production
removed and added this step in build
@@ -0,0 +1,30 @@ | |||
{ | |||
"name": "spa", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe not matter, but anyway update the name as well;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't think of a better name, so keeping it as it is for now
@@ -0,0 +1,26 @@ | |||
{ | |||
"compilerOptions": { | |||
"target": "ES2020", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/nit
might need put some comments somewhere to justify this.
*/ | ||
export default defineConfig({ | ||
plugins: [react()], | ||
base: "/spa" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we use something like /app
instead of /spa
, as /spa
is quite technical details, and /app
is more generic.
- Setup for Prod
- Setup for Prod
What's in this PR?
atlassian-connect.json
for loading React SPA pages.Why
How has this been tested?
yarn start
, then the SPA can be viewed at URLhttps://ATLASSIAN-INSTANCE.net/spa-index-page
Whats Next?