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
|
all: tarball
|
||||||
|
|
||||||
.PHONY: css
|
.PHONY: css
|
||||||
css: $(CSS_FILES:%=src/css/%)
|
css:
|
||||||
|
npm run scss
|
||||||
src/css/%.css: ${SCSS_FILES:%=scss/%}
|
|
||||||
scss -t compact ${@:src/css%.css=scss/%.scss}:$@
|
|
||||||
|
|
||||||
.PHONY: watch_css
|
.PHONY: watch_css
|
||||||
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
|
.PHONY: bump_patch bump_minor bump_major
|
||||||
bump_patch:
|
bump_patch:
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"description": "## Creating a release",
|
"description": "## Creating a release",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"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",
|
"sass:watch": "sass --watch scss/main.scss:src/css/main.css",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user