forked from Botanical/BotanJS
Update deployment
This commit is contained in:
@@ -10,9 +10,7 @@ Go rewrite for the old BotanJS dynamic resource resolver.
|
||||
## Generate the class map
|
||||
|
||||
```sh
|
||||
go run ./cmd/botan-gen \
|
||||
-src /path/to/BotanJS/src \
|
||||
-out internal/generated/classmap_gen.go
|
||||
make resolver-gen
|
||||
```
|
||||
|
||||
Commit the generated file if the source tree is mostly static. Generate it in CI if the source changes frequently.
|
||||
@@ -20,7 +18,7 @@ Commit the generated file if the source tree is mostly static. Generate it in CI
|
||||
## Run API
|
||||
|
||||
```sh
|
||||
go run ./cmd/botan-api -src /path/to/BotanJS/src -addr :8080
|
||||
make run-api-server
|
||||
```
|
||||
|
||||
Examples:
|
||||
@@ -43,6 +41,4 @@ Prefix an item with `-` to exclude it.
|
||||
|
||||
## TODO
|
||||
|
||||
- Test against the old python resolver output
|
||||
- Add an output interface so JS can be piped directly to a Closure Compiler server.
|
||||
- Put generated classmap in a separate package if multiple services need to import it.
|
||||
- Fix moderen closure errors
|
||||
|
||||
Reference in New Issue
Block a user