Skip to content

Commit

Permalink
prep 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
inoas committed Apr 11, 2024
1 parent 7c893aa commit 415b025
Show file tree
Hide file tree
Showing 14 changed files with 325 additions and 245 deletions.
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

# top-most EditorConfig file
root = true

# Matches multiple files with brace expansion notation
# Set default charset
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.{rs, gleam, erl, hrl, ex, mjs, js, ts, sh}]
max_line_length = 80

[*.{rs, .erl, .hrl}]
indent_size = 4

[Makefile]
indent_style = tab
indent_size = 4
4 changes: 4 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
deno 1.42.2
erlang 26.2.3
gleam 1.0.0
nodejs 18.20.2
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.10.0

- Updates Glacier for Gleam 1.0.

## 0.9.0

-

## 0.8.1

- Improve readme
Expand Down
4 changes: 2 additions & 2 deletions IMPROVE_GLACIER.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ gleam test --target erlang -- --glacier
# Re-save ./src/glacier_demo/glacier_demo_module_a.gleam
```

### Demo for target JavaScript/NodeJS
### Demo for target JavaScript on NodeJS

```shell
# Traditional test runs
Expand All @@ -41,7 +41,7 @@ gleam test --target javascript --runtime node -- --glacier

Notice: You may omit `--runtime node` as it is currently set as the default runtime for target `javascript`.

### Demo for target JavaScript/Deno
### Demo for target JavaScript on Deno

```shell
# Traditional test runs
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@

## Usage

1. Run any one of these:
1. Run any one of these, of which some are synonyms:
- `gleam test --target erlang -- --glacier`
- `gleam test --target erl -- --glacier`
- `gleam test --target javascript --runtime deno -- --glacier`
- `gleam test --target javascript --runtime node -- --glacier`
- `gleam test --target javascript --runtime nodejs -- --glacier`
- `gleam test --target js --runtime node -- --glacier`
2. Save gleam module within your projects `src` or `test` gleam directory and
watch associated tests to re-run.

Expand All @@ -60,19 +62,20 @@ Make sure to run `gleam clean` after upgrading Glacier as a dependency.
3. If `gleam test` is passed without any `--`-arguments it behaves the same as
**gleeunit**.
4. You can still pass in target or runtime flags, such as `--target javascript`
`--runtime deno`:
`--runtime deno`, aka:
- `gleam test --target javascript --runtime deno -- --glacier`
- `gleam test --target javascript --tuntime deno -- test/my_module_test.gleam`.
- `gleam test --target javascript --runtime deno -- test/my_module_test.gleam`.
- `gleam test --target js --runtime deno -- test/my_module_test.gleam`.
*Note: `gleam test` must only be executed from the base project directory!*
### Testing against Erlang, NodeJS and Deno simultaneously
Run these in 3 terminals side by side:
- `gleam test --target erlang -- --glacier`
- `gleam test --target javascript --runtime node -- --glacier`
- `gleam test --target javascript --runtime deno -- --glacier`
- `gleam test -- --glacier # this implies --target erlang`
- `gleam test --target js --runtime node -- --glacier`
- `gleam test --target js --runtime deno -- --glacier`
## Requirements & Installation
Expand Down Expand Up @@ -106,8 +109,6 @@ Depends on [NodeJS:`fsPromises.watch`](https://nodejs.org/api/fs.html#fspromises
- Mac: Should work out of the box.
- Windows: Should work out of the box.
Optional: You may find and replace all `import gleeunit/should` with `import glacier/should` and remove `gleeunit` from your dependencies in `gleam.toml`.
## Documentation
Documentation can be found at <https://hexdocs.pm/glacier>.
Expand Down
20 changes: 12 additions & 8 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "glacier"
version = "0.8.1"
version = "1.0.0"

licences = ["Apache-2.0"]
description = "Glacier brings incremental interactive unit testing to Gleam. It is meant as a drop-in replacement for Gleeunit and depends and wraps a fork of it."
Expand All @@ -10,25 +10,29 @@ internal_modules = [
"glacier_demo",
"glacier_demo/*",
]
gleam = ">= 0.32.0"

[dependencies]
argv = "~> 1.0"
fs = "~> 8.6"
glacier_gleeunit = "~> 0.11"
gleam_community_ansi = "~> 1.1"
gleam_erlang = "~> 0.18"
gleam_stdlib = "~> 0.27"
shellout = "~> 1.2"
# glacier_gleeunit = "~> 0.11"
glacier_gleeunit = { path = "../gleeunit" }
gleam_community_ansi = "~> 1.4"
gleam_community_colour = "~> 1.4"
gleam_stdlib = "~> 0.36 or ~> 1.0"
shellout = "~> 1.6"
simplifile = "~> 1.7"

[dev-dependencies]

[javascript.deno]
allow_read = ["./"]
allow_net = ["deno.land"]
allow_read = ["./"]
allow_run = ["gleam"]

[documentation]
pages = [
{ title = "CHANGELOG", path = "changelog.html", source = "CHANGELOG.md" },
{ title = "IMPROVE_GLEAM", path = "improve_gleam.html", source = "IMPROVE_GLEAM.md" },
{ title = "LICENSE", path = "license.html", source = "LICENSE" },
]

31 changes: 18 additions & 13 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,25 @@
# You typically do not need to edit this file

packages = [
{ name = "argv", version = "1.0.2", build_tools = ["gleam"], requirements = [], otp_app = "argv", source = "hex", outer_checksum = "BA1FF0929525DEBA1CE67256E5ADF77A7CDDFE729E3E3F57A5BDCAA031DED09D" },
{ name = "filepath", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "EFB6FF65C98B2A16378ABC3EE2B14124168C0CE5201553DE652E2644DCFDB594" },
{ name = "fs", version = "8.6.1", build_tools = ["rebar3"], requirements = [], otp_app = "fs", source = "hex", outer_checksum = "61EA2BDAEDAE4E2024D0D25C63E44DCCF65622D4402DB4A2DF12868D1546503F" },
{ name = "glacier_gleeunit", version = "0.11.10", build_tools = ["gleam"], requirements = ["gleam_stdlib", "gleam_erlang"], otp_app = "glacier_gleeunit", source = "hex", outer_checksum = "740CA964C09795D6D6837C1B53B9B7A02346680751CCC010E6E537394C158426" },
{ name = "gleam_bitwise", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_bitwise", source = "hex", outer_checksum = "6064699EFBABB1CA392DCB193D0E8B402FB042B4B46857B01E6875E643B57F54" },
{ name = "gleam_community_ansi", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_bitwise", "gleam_stdlib", "gleam_community_colour"], otp_app = "gleam_community_ansi", source = "hex", outer_checksum = "6E4E0CF2B207C1A7FCD3C21AA43514D67BC7004F21F82045CDCCE6C727A14862" },
{ name = "gleam_community_colour", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_bitwise", "gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "D27CE357ECB343929A8CEC3FBA0B499943A47F0EE1F589EE16AFC2DC21C61E5B" },
{ name = "gleam_erlang", version = "0.18.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "C69F59D086AD50B80DE294FB0963550630971C9DC04E92B1F7AEEDD2C0BE226C" },
{ name = "gleam_stdlib", version = "0.27.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "9DBDD21B48C654182CDD8AA15ACF85E8E74A0438583C68BD7EF08BE89F999C6F" },
{ name = "shellout", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "gleam_erlang"], otp_app = "shellout", source = "hex", outer_checksum = "E2B55077B876570B1F27F5C857ACF1E78B19E080015AD1E60B2D7A701F650280" },
{ name = "glacier_gleeunit", version = "0.11.30", build_tools = ["gleam"], requirements = ["argv", "gleam_stdlib"], source = "local", path = "../gleeunit" },
{ name = "gleam_community_ansi", version = "1.4.0", build_tools = ["gleam"], requirements = ["gleam_community_colour", "gleam_stdlib"], otp_app = "gleam_community_ansi", source = "hex", outer_checksum = "FE79E08BF97009729259B6357EC058315B6FBB916FAD1C2FF9355115FEB0D3A4" },
{ name = "gleam_community_colour", version = "1.4.0", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "795964217EBEDB3DA656F5EB8F67D7AD22872EB95182042D3E7AFEF32D3FD2FE" },
{ name = "gleam_json", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "thoas"], otp_app = "gleam_json", source = "hex", outer_checksum = "8B197DD5D578EA6AC2C0D4BDC634C71A5BCA8E7DB5F47091C263ECB411A60DF3" },
{ name = "gleam_stdlib", version = "0.36.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "C0D14D807FEC6F8A08A7C9EF8DFDE6AE5C10E40E21325B2B29365965D82EB3D4" },
{ name = "shellout", version = "1.6.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "shellout", source = "hex", outer_checksum = "E2FCD18957F0E9F67E1F497FC9FF57393392F8A9BAEAEA4779541DE7A68DD7E0" },
{ name = "simplifile", version = "1.7.0", build_tools = ["gleam"], requirements = ["filepath", "gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "1D5DFA3A2F9319EC85825F6ED88B8E449F381B0D55A62F5E61424E748E7DDEB0" },
{ name = "thoas", version = "0.4.1", build_tools = ["rebar3"], requirements = [], otp_app = "thoas", source = "hex", outer_checksum = "4918D50026C073C4AB1388437132C77A6F6F7C8AC43C60C13758CC0ADCE2134E" },
]

[requirements]
fs = "~> 8.6"
glacier_gleeunit = "~> 0.11"
gleam_community_ansi = "~> 1.1"
gleam_erlang = "~> 0.18"
gleam_stdlib = "~> 0.27"
shellout = "~> 1.2"
argv = { version = "~> 1.0" }
fs = { version = "~> 8.6" }
glacier_gleeunit = { path = "../gleeunit" }
gleam_community_ansi = { version = "~> 1.4" }
gleam_community_colour = { version = "~> 1.4" }
gleam_stdlib = { version = "~> 0.36 or ~> 1.0" }
shellout = { version = "~> 1.6" }
simplifile = { version = "~> 1.7" }
Loading

0 comments on commit 415b025

Please sign in to comment.