-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bundler): build.options.cache turn on tracing cache and transpil…
…e cache Cache is centralized in OS temp dir. Tracing cache can be shared among apps. Transpile cache is only for esnext. Scoped to appName-env, to respect env based babelrc. No transpile cache for TS project, gulp-typescript does incremental build, not working with gulp-cache. New au command "au clear-cache" clear both caches. Reduce consecutive build time to about 1/5 for esnext app, based on preliminary benchmark. TODO benchmark on TS app.
- Loading branch information
Showing
16 changed files
with
1,403 additions
and
3,360 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
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,16 @@ | ||
import gulp from 'gulp'; | ||
import {build} from 'aurelia-cli'; | ||
import cache from 'gulp-cache'; | ||
|
||
function clearTraceCache() { | ||
return build.clearCache(); | ||
} | ||
|
||
function clearTranspileCache() { | ||
return cache.clearAll(); | ||
} | ||
|
||
export default gulp.series( | ||
clearTraceCache, | ||
clearTranspileCache | ||
); |
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,4 @@ | ||
{ | ||
"name": "clear-cache", | ||
"description": "Clear both transpile cache (only for esnext), and tracing-cache (for CLI built-in tracer)." | ||
} |
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,6 @@ | ||
import * as gulp from 'gulp'; | ||
import {build} from 'aurelia-cli'; | ||
|
||
export default function clearCache() { | ||
return build.clearCache(); | ||
} |
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.