-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring (removed circular dependencies)
- Loading branch information
Showing
252 changed files
with
33,390 additions
and
29,405 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,6 @@ tools/freetype-tools/FreeType-Emscripten | |
|
||
# nix build | ||
/result* | ||
|
||
bundle-meta.json | ||
circular.txt |
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,10 @@ | ||
{ | ||
"detectiveOptions": { | ||
"ts": { | ||
"skipTypeImports": true | ||
}, | ||
"tsx": { | ||
"skipTypeImports": true | ||
} | ||
} | ||
} |
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,26 @@ | ||
// Your bundler file | ||
const esbuild = require("esbuild"); | ||
const { nodeExternalsPlugin } = require("esbuild-node-externals"); | ||
const fs = require("fs"); | ||
|
||
// esbuild packages/home/main.tsx --bundle --sourcemap --metafile=meta.json --platform=node --target=node14.6 | ||
// --external:node-ensure --external:better-sqlite3 --external:electron | ||
// --outfile=build/home/main.js | ||
|
||
(async () => { | ||
const result = await esbuild.build({ | ||
entryPoints: ["packages/home/main.tsx"], | ||
bundle: true, | ||
sourcemap: true, | ||
metafile: true, | ||
platform: "node", | ||
target: "node14.6", | ||
outfile: "build/home/main.js", | ||
external: ["node-ensure", "fs", "net", "electron"], | ||
plugins: [nodeExternalsPlugin()] | ||
}); | ||
|
||
fs.writeFileSync("bundle-meta.json", JSON.stringify(result, undefined, 4), { | ||
encoding: "utf8" | ||
}); | ||
})(); |
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,31 @@ | ||
// Your bundler file | ||
const esbuild = require("esbuild"); | ||
const { nodeExternalsPlugin } = require("esbuild-node-externals"); | ||
const fs = require("fs"); | ||
|
||
// esbuild packages/home/main.tsx --bundle --sourcemap --metafile=meta.json --platform=node --target=node14.6 | ||
// --external:node-ensure --external:better-sqlite3 --external:electron | ||
// --outfile=build/home/main.js | ||
|
||
esbuild.build({ | ||
entryPoints: ["packages/home/main.tsx"], | ||
bundle: true, | ||
sourcemap: false, | ||
metafile: false, | ||
minify: true, | ||
platform: "node", | ||
target: "node14.6", | ||
outfile: "build/home/main.js", | ||
external: [ | ||
"node-ensure", | ||
"fs", | ||
"net", | ||
"electron", | ||
"better-sqlite3", | ||
"mobx", | ||
"react", | ||
"react-dom", | ||
"mobx-react" | ||
], | ||
plugins: [nodeExternalsPlugin()] | ||
}); |
File renamed without changes.
Oops, something went wrong.