Skip to content

Commit 69af40a

Browse files
committed
restore some more changes
1 parent bebfe7e commit 69af40a

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

buildprocess/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function (devMode) {
1010
// Base configuration
1111
const config = {
1212
mode: devMode ? "development" : "production",
13-
entry: "./entry.jsx",
13+
entry: "./entry.js",
1414
output: {
1515
path: path.resolve(__dirname, "..", "wwwroot", "build"),
1616
filename: "TerriaMap.js",
@@ -28,7 +28,7 @@ module.exports = function (devMode) {
2828
{
2929
test: /\.(ts|js)x?$/,
3030
include: [
31-
path.resolve(__dirname, "..", "entry.jsx"),
31+
path.resolve(__dirname, "..", "entry.js"),
3232
path.resolve(__dirname, "..", "plugins.ts"),
3333
path.resolve(__dirname, "..", "lib")
3434
],

entry.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { renderUi } from "./lib/Views/render";
2+
3+
renderUi();

entry.jsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

gulpfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,12 @@ gulp.task("lint", function (done) {
188188
var runExternalModule = require("terriajs/buildprocess/runExternalModule");
189189
const eslintDir = path.dirname(require.resolve("eslint/package.json"));
190190
const eslintExecutable = path.join(eslintDir, "bin", "eslint.js");
191-
runExternalModule(eslintExecutable, ["--max-warnings", "0", "lib"]);
191+
runExternalModule(eslintExecutable, [
192+
"--max-warnings",
193+
"0",
194+
"index.js",
195+
"lib"
196+
]);
192197
done();
193198
});
194199

File renamed without changes.

0 commit comments

Comments
 (0)