Skip to content

Commit

Permalink
Merge branch 'main' of github.com:DonIsaac/oxbuild into don/feat/mani…
Browse files Browse the repository at this point in the history
…fest
  • Loading branch information
DonIsaac committed Oct 8, 2024
2 parents 547024f + 88f5126 commit 8c3c96d
Show file tree
Hide file tree
Showing 9 changed files with 155 additions and 50 deletions.
131 changes: 97 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxbuild"
version = "0.1.4"
version = "0.1.5"
description = "Ultra-fast typescript compiler"
authors = ["Don Isaac <[email protected]>"]
license = "MIT"
Expand All @@ -22,9 +22,11 @@ compact_str = { version = "0.8.0" }
glob = { version = "0.3.1" }
ignore = { version = "0.4.23" }
json-strip-comments = { version = "1.0.4" }
log = { version = "0.4.22" }
miette = { version = "7.2.0", features = ["fancy"] }
oxc = { version = "0.31.0", features = ["full"] }
package-json = { version = "0.4.0" }
pretty_env_logger = { version = "0.5.0" }
serde = { version = "1.0.210" }
serde_json = { version = "1.0.128" }
static_assertions = { version = "1.1.0" }
Expand Down Expand Up @@ -53,9 +55,10 @@ opt-level = 1
# defaults: https://doc.rust-lang.org/cargo/reference/profiles.html#release
[profile.release]
codegen-units = 4
strip = "symbols"
debug = false # set to `true` for debugging
strip = "symbols" # set to `false` for debugging
lto = "thin"
panic = "abort"
panic = "abort" # set to `unwind` for backtraces

# The profile that 'cargo dist' will build with
[profile.dist]
Expand Down
6 changes: 6 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ oxbuild *ARGS:
build:
cargo build

# Create a release build and copy it to ~/.bin
oxbuild-local:
cargo build --release --bin oxbuild
rm ~/.bin/oxbuild
cp target/release/oxbuild ~/.bin/oxbuild

# Alias for `cargo test`
test:
cargo test
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ Assuming you are in your project's root directory and your source code is all in
oxbuild
```

If `oxbuild` is behaving in an unexpected way, please run it with debug logs and
create a new issue on GitHub.

```sh
RUST_LOG=debug oxbuild
```

### TSConfig Support

Oxbuild will respect `rootDir` and `outDir` settings in your `tsconfig.json`.
Expand Down
1 change: 1 addition & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ impl CliOptions {
} else {
Root::new_inferred()?
};
debug!("Root directory: '{}'", root.display());

let config = root.resolve_file(
matches.get_one::<PathBuf>("config"),
Expand Down
Loading

0 comments on commit 8c3c96d

Please sign in to comment.