Skip to content

Commit

Permalink
refactor: Move to SWC for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Apr 2, 2024
1 parent 89b66de commit 9389cde
Show file tree
Hide file tree
Showing 12 changed files with 325 additions and 111 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function installCrossDeps(done) {
/* ------ Watch ------ */

function watchBack(done) {
execute("npx ttsc --project tsconfig.backend.json --pretty --watch", done);
execute("npx swc --strip-leading-paths --no-swcrc --config-file swcrc.back.dev.json --source-maps true -d build src --watch", done);
}

function watchRenderer(done) {
Expand All @@ -191,7 +191,7 @@ function watchStatic() {
/* ------ Build ------ */

function buildBack(done) {
execute("npx ttsc --project tsconfig.backend.json --pretty", done);
execute("npx swc --strip-leading-paths --no-swcrc --config-file swcrc.back.prod.json -d build src", done);
}

function buildRenderer(done) {
Expand Down
Loading

0 comments on commit 9389cde

Please sign in to comment.