Skip to content

Commit

Permalink
Init JavaScript support
Browse files Browse the repository at this point in the history
  • Loading branch information
tynanbe committed Sep 30, 2022
1 parent 1b2e468 commit d292bd0
Show file tree
Hide file tree
Showing 13 changed files with 2,273 additions and 224 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
key: ${{ runner.os }}-gleam-${{ hashFiles('**/manifest.toml') }}
restore-keys: ${{ runner.os }}-gleam-

- run: rad init

- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- run: rad format --check

- run: rad test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
*.beam
*.ez
*.log
build
node_modules
erl_crash.dump
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
loglevel = "error"
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
- The `space` module gets an updated `d1` function so the dimension size can be
given.
- The `tensor` module gains the `broadcast`, and `broadcast_over` functions for
all compilation targets (JavaScript planned).
all compilation targets.
- Argamak now compiles and runs with the JavaScript target.
- Argamak now uses the `gleam` build tool.

## v0.1.0 - 2022-01-20
Expand Down
9 changes: 7 additions & 2 deletions gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ nx = "~> 0.3"
gleeunit = "~> 0.7"
rad = "~> 0.1"

#[rad]
#targets = ["erlang", "javascript"]
[rad]
targets = ["erlang", "javascript"]

[[rad.formatters]]
name = "javascript"
check = ["rome", "ci", "--indent-style=space", "src", "test"]
run = ["rome", "format", "--indent-style=space", "--write", "src", "test"]

[[rad.tasks]]
path = ["init"]
run = ["npm", "install"]
shortdoc = "Initialize argamak"
Loading

0 comments on commit d292bd0

Please sign in to comment.