oribuild-linux-arm64
Advanced tools
Comparing version 0.0.0-pre-alpha.7 to 0.0.0-pre-alpha.8
{ | ||
"name": "oribuild-linux-arm64", | ||
"version": "0.0.0-pre-alpha.7", | ||
"version": "0.0.0-pre-alpha.8", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "https://github.com/microsoft/ori" |
@@ -11,42 +11,36 @@ # ori | ||
Wait for an initial build before running non-build tasks (implied by -traceInitialBuild) | ||
-cacheNodeModules | ||
Forcefully cache node_modules in a plugion | ||
-config string | ||
Path to build.json (default "./build.json") | ||
Path to ori.json (default "./ori.json") | ||
-cpuprofile string | ||
Generate a cpu profile at the given path | ||
-entry string | ||
Use a given entry or entry group (specified in build.json) | ||
-findWithLs | ||
defer trace collection until the incremental rebuild | ||
Use a given entry or entry group (from the values specified in ori.json) | ||
-gitRef string | ||
initial set of changed files to use when starting the typescript process (default "HEAD") | ||
-initialOnly | ||
Validate the initial build can complete, and exit with an error if it had issues | ||
-logLevel string | ||
log level (error,info,debug) (default "info") | ||
log level (error|warning|info|debug) | ||
-noTui | ||
Disable the tui and print everything to stdio | ||
-nosplit | ||
Disable codesplitting. Allows for bundling without esm. (default true) | ||
-port int | ||
Port to run the http server on (default 3000) | ||
-snoop | ||
snoop on the import array | ||
-split | ||
Enable codesplitting (WARNING: Requires type='module' on the entrypoint script tag, will not work against prod owa-web-server) | ||
log every import as it happens. To help debug why a given module is imported. | ||
-trace string | ||
Generate an event trace at the given path | ||
-traceIncrementalBuilds | ||
Collect a pprof trace of incremental builds | ||
Collect a pprof trace of each incremental build | ||
-traceInitialBuild | ||
Collect a pprof trace of the initial build | ||
-version | ||
Print the version and exit | ||
``` | ||
### build.json fields | ||
### ori.json fields | ||
```json5 | ||
{ | ||
// Where to find a partial tsconfig with paths: entries | ||
// mapping requires from lib directories to the corresponding | ||
// source files | ||
// | ||
// should be deprecated by #3 | ||
"tsconfigPathsPath": "tsconfig.paths.json", | ||
// The path that esbuild should output to | ||
@@ -127,5 +121,5 @@ "outPath": "dist/esbuild", | ||
### Running ori from this repo | ||
1. Set up a build.json and patches directory in your target project. | ||
1. Set up a ori.json and patches directory in your target project. | ||
See above for the build.json fields | ||
See above for the ori.json fields | ||
@@ -141,3 +135,3 @@ > TODO: document the patches directory | ||
cd oribuild | ||
go run . -c ../path/to/build.json` | ||
go run . -c ../path/to/ori.json` | ||
``` | ||
@@ -175,3 +169,3 @@ | ||
# Build entries | ||
go run . -config=../build.json | ||
go run . -config=../ori.json | ||
@@ -181,6 +175,6 @@ # Build an entry named "OWA Mail" from the entrypoints map, with codesplitting | ||
# since esbuild codesplitting forces esm modules | ||
go run . -config=../build.json -entry="OWA Mail" -split | ||
go run . -config=../ori.json -entry="OWA Mail" -split | ||
# Generate a cpu profile for initial and incrmental builds (the traces directory must already exist) | ||
go run . -config=../build.json -entry="OWA Mail" -traceInitialBuild -traceIncrementalBuilds -cpuprofile=traces/cpu.pprof | ||
go run . -config=../ori.json -entry="OWA Mail" -traceInitialBuild -traceIncrementalBuilds -cpuprofile=traces/cpu.pprof | ||
@@ -187,0 +181,0 @@ # Analyse cpu profiles (constains overview of CPU time) |
10299
238