Skip to content

Commit

Permalink
fix referenceerror from import
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Mar 6, 2024
1 parent 356f344 commit 4e5f4d7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
29 changes: 1 addition & 28 deletions cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import * as pyconv from './pyconv';
import * as gitfs from './gitfs';
import * as crowdin from './crowdin';
import * as youtube from './youtube';
import { SUB_WEBAPPS } from './subwebapp';

const rimraf: (f: string, opts: any, cb: (err: Error, res: any) => void) => void = require('rimraf');

Expand All @@ -40,34 +41,6 @@ let forceBuild = false; // don't use cache

Error.stackTraceLimit = 100;

// All of our various create react apps
export const SUB_WEBAPPS = [
{
name: "kiosk",
buildCss: false,
localServe: false
},
{
name: "teachertool",
buildCss: false,
localServe: false
},
{
name: "skillmap",
buildCss: true,
localServe: true
},
{
name: "multiplayer",
buildCss: true,
localServe: true
},
{
name: "authcode",
buildCss: true,
localServe: true
},
];

function parseHwVariant(parsed: commandParser.ParsedCommand) {
let hwvariant = parsed && parsed.flags["hwvariant"] as string;
Expand Down
2 changes: 1 addition & 1 deletion cli/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as nodeutil from './nodeutil';
import * as hid from './hid';
import * as net from 'net';
import * as storage from './storage';
import { SUB_WEBAPPS } from './cli';
import { SUB_WEBAPPS } from './subwebapp';

import { promisify } from "util";

Expand Down
28 changes: 28 additions & 0 deletions cli/subwebapp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// All of our various create react apps
export const SUB_WEBAPPS = [
{
name: "kiosk",
buildCss: false,
localServe: false
},
{
name: "teachertool",
buildCss: false,
localServe: false
},
{
name: "skillmap",
buildCss: true,
localServe: true
},
{
name: "multiplayer",
buildCss: true,
localServe: true
},
{
name: "authcode",
buildCss: true,
localServe: true
},
];

0 comments on commit 4e5f4d7

Please sign in to comment.