Skip to content

Commit

Permalink
chore(dev): remove build commands from justfile
Browse files Browse the repository at this point in the history
Just use `stack`, it's fine.
  • Loading branch information
pbrisbin committed Jan 30, 2025
1 parent baaa7f5 commit 6c73d93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 44 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,11 @@ See https://github.com/restyled-io/actions#readme.

## Development

```console
just
```

Requires [stack](https://docs.haskellstack.org/en/stable/README/).

## Tests

```console
just test
stack setup
stack build --fast --pedantic --test --file-watch
```

## LICENSE
Expand Down
41 changes: 4 additions & 37 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,44 +1,11 @@
# Setup, lint, build and test
all: setup build test lint

# Install dependencies
setup:
stack setup
stack build --dependencies-only --test --no-run-tests
stack install --copy-compiler-tool \
apply-refact \
fast-tags \
fourmolu \
hlint \
weeder

# Build but do not run tests
build:
stack build --fast --pedantic --test --no-run-tests

# Build and test
test:
stack build --fast --pedantic --test

# Lint and format the project
lint:
stack exec -- fourmolu -i app src test
stack exec -- hlint app src test
stack exec -- weeder --require-hs-files
stack lint-extra-deps

# Rebuild and test on file-changes
watch:
stack build --fast --pedantic --test --file-watch

headroom:
stack exec -- headroom run
stack exec -- fourmolu -i app src test

install-root := `stack path --local-install-root`
dist := 'restyler-' + `uname -s | tr '[:upper:]' '[:lower:]'` + '-' + `uname -m`
ext := 'tar.gz'

headroom:
headroom run
fourmolu -i app src test

dist:
mkdir -p '{{dist}}'
cp -v '{{install-root}}'/bin/* '{{dist}}'
Expand Down

0 comments on commit 6c73d93

Please sign in to comment.