Skip to content

Commit

Permalink
direnv
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Oct 10, 2024
1 parent 2ebdd87 commit 9a3c993
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# shellcheck shell=bash
layout node
layout opam
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- run: corepack enable
- run: yarn install --immutable
- run: opam install . --deps-only
- run: make
- run: opam exec -- yarn exec -- make
- run: node dist/main.bc.js

lint-fmt:
Expand Down
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defaultSemverRangePrefix: ""

nodeLinker: pnpm
nodeLinker: node-modules

preferInteractive: true
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ all: clean bindings build

.PHONY: pretty-bytes
pretty-bytes:
yarn exec -- ts2ocaml jsoo node_modules/pretty-bytes/index.d.ts \
ts2ocaml jsoo node_modules/pretty-bytes/index.d.ts \
--output-dir=lib \
--preset=full \
--simplify \
Expand All @@ -16,8 +16,8 @@ bindings: pretty-bytes

.PHONY: build
build:
opam exec -- dune build @all --profile=release
yarn exec -- esbuild _build/default/bin/main.bc.js \
dune build @all --profile=release
esbuild _build/default/bin/main.bc.js \
--bundle \
--minify \
--outdir=dist \
Expand All @@ -26,10 +26,10 @@ build:

.PHONY: fmt
fmt:
opam exec -- dune build @fmt --auto-promote
dune build @fmt --auto-promote

.PHONY: clean
clean:
-rm -r dist/
-rm lib/*.{mli,js}
opam exec -- dune clean
dune clean

0 comments on commit 9a3c993

Please sign in to comment.