diff --git a/template/Makefile b/template/Makefile index f010db5..5c37f02 100644 --- a/template/Makefile +++ b/template/Makefile @@ -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: diff --git a/template/package.json b/template/package.json index 7e0ac6f..a42e06a 100644 --- a/template/package.json +++ b/template/package.json @@ -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" },