-
Notifications
You must be signed in to change notification settings - Fork 584
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor all of our various cra build steps (#9907)
* refactor all of our various cra build steps * fix referenceerror from import * remove webapp names array in server.ts * move config into json and use in prepare script * copy config to built and use config for strings
- Loading branch information
Showing
8 changed files
with
189 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import config = require("./webapps-config.json"); | ||
|
||
export interface SubWebAppConfig { | ||
name: string; | ||
buildCss: boolean; | ||
|
||
// If true, the local server will seve the "--" endpoint defined in the web config (e.g. /--skilmap) | ||
localServeWebConfigUrl: boolean; | ||
|
||
// If defined, the local serve will serve the webapp code at this endpoint (e.g. /eva;) | ||
localServeEndpoint?: string; | ||
} | ||
|
||
export const SUB_WEBAPPS: SubWebAppConfig[] = config.webapps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"webapps": [ | ||
{ | ||
"name": "kiosk", | ||
"buildCss": false, | ||
"localServeWebConfigUrl": false, | ||
"localServeEndpoint": "kiosk" | ||
}, | ||
{ | ||
"name": "teachertool", | ||
"buildCss": false, | ||
"localServeWebConfigUrl": false, | ||
"localServeEndpoint": "eval" | ||
}, | ||
{ | ||
"name": "skillmap", | ||
"buildCss": true, | ||
"localServeWebConfigUrl": true | ||
}, | ||
{ | ||
"name": "multiplayer", | ||
"buildCss": true, | ||
"localServeWebConfigUrl": true, | ||
"localServeEndpoint": "multiplayer" | ||
}, | ||
{ | ||
"name": "authcode", | ||
"buildCss": true, | ||
"localServeWebConfigUrl": true | ||
} | ||
] | ||
} |
Oops, something went wrong.