-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# CLI Modifications | ||
|
||
We have changed the following parts of the CLI (crate `compiler-cli`): | ||
|
||
1. `new.rs` (`glistix new`): | ||
- Added Nix-relevant file templates (`default.nix`, `shell.nix` and `flake.nix`); | ||
- Clone [`glistix/stdlib`](https://github.com/glistix/stdlib) to `externals/stdlib` as a Git submodule by default; | ||
- Changed default `gleam.toml` to include Glistix-specific options. | ||
2. `run.rs` (`glistix run`, `glistix test`): | ||
- Use `nix-instantiate` when calling `glistix run` or `glistix test` on the Nix target. | ||
3. `publish.rs` (`glistix publish`): | ||
- Implement `[glistix.preview.hex-patch]` by replacing dependencies with what's specified in `hex-patch` right before publishing. | ||
4. `dependency.rs` (resolving versions for the `manifest.toml`): | ||
- Implement `local-overrides` from `[glistix.preview]` by replacing provided (local/Git) dependencies with what the root package specified for them, if overridden by the root. | ||
5. `fs.rs`: Added Git operations used by `new.rs`. |