oribuild-linux-arm64 0.0.0-pre-alpha.7 → 0.0.0-pre-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,46 +8,40 @@ ori -h
|
|
|
8
8
|
|
|
9
9
|
-blockFollowUp
|
|
10
10
|
Wait for an initial build before running non-build tasks (implied by -traceInitialBuild)
|
|
11
|
-
-cacheNodeModules
|
|
12
|
-
Forcefully cache node_modules in a plugion
|
|
13
11
|
-config string
|
|
14
|
-
Path to
|
|
12
|
+
Path to ori.json (default "./ori.json")
|
|
15
13
|
-cpuprofile string
|
|
16
14
|
Generate a cpu profile at the given path
|
|
17
15
|
-entry string
|
|
18
|
-
Use a given entry or entry group (specified in
|
|
19
|
-
-findWithLs
|
|
20
|
-
defer trace collection until the incremental rebuild
|
|
16
|
+
Use a given entry or entry group (from the values specified in ori.json)
|
|
21
17
|
-gitRef string
|
|
22
18
|
initial set of changed files to use when starting the typescript process (default "HEAD")
|
|
19
|
+
-initialOnly
|
|
20
|
+
Validate the initial build can complete, and exit with an error if it had issues
|
|
23
21
|
-logLevel string
|
|
24
|
-
log level (error
|
|
22
|
+
log level (error|warning|info|debug)
|
|
25
23
|
-noTui
|
|
26
24
|
Disable the tui and print everything to stdio
|
|
25
|
+
-nosplit
|
|
26
|
+
Disable codesplitting. Allows for bundling without esm. (default true)
|
|
27
27
|
-port int
|
|
28
28
|
Port to run the http server on (default 3000)
|
|
29
29
|
-snoop
|
|
30
|
-
|
|
31
|
-
-split
|
|
32
|
-
Enable codesplitting (WARNING: Requires type='module' on the entrypoint script tag, will not work against prod owa-web-server)
|
|
30
|
+
log every import as it happens. To help debug why a given module is imported.
|
|
33
31
|
-trace string
|
|
34
32
|
Generate an event trace at the given path
|
|
35
33
|
-traceIncrementalBuilds
|
|
36
|
-
Collect a pprof trace of incremental
|
|
34
|
+
Collect a pprof trace of each incremental build
|
|
37
35
|
-traceInitialBuild
|
|
38
36
|
Collect a pprof trace of the initial build
|
|
37
|
+
-version
|
|
38
|
+
Print the version and exit
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
###
|
|
41
|
+
### ori.json fields
|
|
42
42
|
|
|
43
43
|
```json5
|
|
44
44
|
{
|
|
45
|
-
// Where to find a partial tsconfig with paths: entries
|
|
46
|
-
// mapping requires from lib directories to the corresponding
|
|
47
|
-
// source files
|
|
48
|
-
//
|
|
49
|
-
// should be deprecated by #3
|
|
50
|
-
"tsconfigPathsPath": "tsconfig.paths.json",
|
|
51
45
|
// The path that esbuild should output to
|
|
52
46
|
"outPath": "dist/esbuild",
|
|
53
47
|
// Where to find resource.json files
|
|
@@ -123,9 +117,9 @@ ori -h
|
|
|
123
117
|
- _(Optional, but recommended)_ Install the `go` vscode plugin, and click "Install All" when it prompts you to install missing golang components (godef, gopkgs, gopls)
|
|
124
118
|
|
|
125
119
|
### Running ori from this repo
|
|
126
|
-
1. Set up a
|
|
120
|
+
1. Set up a ori.json and patches directory in your target project.
|
|
127
121
|
|
|
128
|
-
See above for the
|
|
122
|
+
See above for the ori.json fields
|
|
129
123
|
|
|
130
124
|
> TODO: document the patches directory
|
|
131
125
|
|
|
@@ -136,7 +130,7 @@ ori -h
|
|
|
136
130
|
|
|
137
131
|
```sh
|
|
138
132
|
cd oribuild
|
|
139
|
-
go run . -c ../path/to/
|
|
133
|
+
go run . -c ../path/to/ori.json`
|
|
140
134
|
```
|
|
141
135
|
|
|
142
136
|
The first time you run this, go will fetch and build all the dependencies in oribuild/go.mod
|
|
@@ -169,15 +163,15 @@ ori -h
|
|
|
169
163
|
# with mingw on your path
|
|
170
164
|
|
|
171
165
|
# Build entries
|
|
172
|
-
go run . -config=../
|
|
166
|
+
go run . -config=../ori.json
|
|
173
167
|
|
|
174
168
|
# Build an entry named "OWA Mail" from the entrypoints map, with codesplitting
|
|
175
169
|
# Note that this has to be loaded with a script type="module" entrypoint,
|
|
176
170
|
# since esbuild codesplitting forces esm modules
|
|
177
|
-
go run . -config=../
|
|
171
|
+
go run . -config=../ori.json -entry="OWA Mail" -split
|
|
178
172
|
|
|
179
173
|
# Generate a cpu profile for initial and incrmental builds (the traces directory must already exist)
|
|
180
|
-
go run . -config=../
|
|
174
|
+
go run . -config=../ori.json -entry="OWA Mail" -traceInitialBuild -traceIncrementalBuilds -cpuprofile=traces/cpu.pprof
|
|
181
175
|
|
|
182
176
|
# Analyse cpu profiles (constains overview of CPU time)
|
|
183
177
|
go tool pprof -http=localhost:8080 traces/cpu.pprof.initial*
|