-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed TS and JS tasks from gulpfile - Instead, esbuild.mjs is used to compile almost all JS and TS code, performance improved from > 10s to < 300ms - Moved webcomponent code out of the src directory so that Gulp can still handle that - Removed Flurl dependency from user profile page - Added null-safety instead
- Loading branch information
Showing
60 changed files
with
1,775 additions
and
1,526 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
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,22 @@ | ||
import * as esbuild from "esbuild"; | ||
|
||
const start = process.hrtime.bigint(); | ||
|
||
const ctx = await esbuild.context({ | ||
entryPoints: ['./wwwroot/js/src/**/*.ts', './wwwroot/js/src/**/*.js'], | ||
minify: true, | ||
bundle: true, | ||
sourcemap: true, | ||
outdir: './wwwroot/js/dist', | ||
color: true, | ||
logLevel: "info" | ||
}); | ||
|
||
if (process.argv.includes('--watch')) { | ||
await ctx.watch(); | ||
console.log('Watching files...'); | ||
} else { | ||
await ctx.rebuild(); | ||
await ctx.dispose(); | ||
console.log(`Build completed in ${(process.hrtime.bigint() - start) / BigInt(1_000_000)}ms`) | ||
} |
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
Oops, something went wrong.