mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-11 03:28:09 +03:00
use npx for everything
removes the need for Makefile PATH hacks!
This commit is contained in:
parent
a6c6a498f0
commit
d1cd775750
14
Makefile
14
Makefile
@ -1,10 +1,8 @@
|
||||
NPM_PREFIX=$(realpath .)/node_modules
|
||||
PATH:="${NPM_PREFIX}/.bin:${PATH}"
|
||||
SHELL:=env PATH=${PATH} /bin/sh
|
||||
|
||||
.PHONY: test
|
||||
test: node_modules
|
||||
elm-test
|
||||
npx elm-test
|
||||
|
||||
.PHONY: checks
|
||||
checks:
|
||||
@ -12,11 +10,11 @@ checks:
|
||||
|
||||
.PHONY: diff
|
||||
diff: node_modules
|
||||
if (elm diff | tee /dev/stderr | grep -q MAJOR); then echo "MAJOR changes are not allowed!"; exit 1; fi
|
||||
if (npx elm diff | tee /dev/stderr | grep -q MAJOR); then echo "MAJOR changes are not allowed!"; exit 1; fi
|
||||
|
||||
.PHONY: format
|
||||
format: node_modules
|
||||
elm-format --validate src && elm-format --validate --elm-version=0.19 tests styleguide-app
|
||||
npx elm-format --validate src && npx elm-format --validate --elm-version=0.19 tests styleguide-app
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@ -25,16 +23,16 @@ clean:
|
||||
.PHONY: styleguide-app
|
||||
styleguide-app: styleguide-app/elm.js
|
||||
@echo "Visit http://localhost:8000/index.html to see the styleguide app in your browser"
|
||||
cd styleguide-app && elm reactor
|
||||
cd styleguide-app && npx elm reactor
|
||||
|
||||
documentation.json: node_modules
|
||||
elm make --docs $@
|
||||
npx elm make --docs $@
|
||||
|
||||
styleguide-app/bundle.js: lib/index.js node_modules
|
||||
npx browserify --entry styleguide-app/manifest.js --outfile styleguide-app/bundle.js
|
||||
|
||||
styleguide-app/elm.js: styleguide-app/bundle.js $(shell find src styleguide-app -type f -name '*.elm')
|
||||
cd styleguide-app; elm make Main.elm --output=$(@F)
|
||||
cd styleguide-app; npx elm make Main.elm --output=$(@F)
|
||||
|
||||
# plumbing
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user