Update make file
This commit is contained in:
parent
0601798cfb
commit
b9ea6643ac
@ -23,14 +23,12 @@ FUNCTION_VERSION=$$(cat build/major).$$(cat build/minor).$$(cat build/patch)
|
||||
all: tarball
|
||||
|
||||
.PHONY: css
|
||||
css: $(CSS_FILES:%=src/css/%)
|
||||
|
||||
src/css/%.css: ${SCSS_FILES:%=scss/%}
|
||||
scss -t compact ${@:src/css%.css=scss/%.scss}:$@
|
||||
css:
|
||||
npm run scss
|
||||
|
||||
.PHONY: watch_css
|
||||
watch_css:
|
||||
while inotifywait -e modify -e move -e create -r scss ; do $(MAKE) css; done
|
||||
npm run scss:watch
|
||||
|
||||
.PHONY: bump_patch bump_minor bump_major
|
||||
bump_patch:
|
||||
|
@ -4,7 +4,7 @@
|
||||
"description": "## Creating a release",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"sass": "sass scss/main.scss:src/css/main.css",
|
||||
"sass": "sass -t compact scss/main.scss:src/css/main.css",
|
||||
"sass:watch": "sass --watch scss/main.scss:src/css/main.css",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user