scratchjr-website/Makefile
chrisgarrity 5ecd2545d9 Sync master content ()
* Brings develop up to date with content changes to Master
* Adds Google analytics and uses https
* Uses Scratch eslint rules (eslint-config-scratch)
* Adds new Assessment page content from Tufts
* FAQ updates
2017-04-21 08:31:38 -04:00

42 lines
687 B
Makefile

ESLINT=./node_modules/.bin/eslint
NODE=node
SASSLINT=./node_modules/.bin/sass-lint -v
WATCH=./node_modules/.bin/watch
WEBPACK=./node_modules/.bin/webpack
# ------------------------------------
build:
@make clean
@make webpack
clean:
rm -rf ./build
mkdir -p build
sync-fastly:
$(NODE) ./bin/configure-fastly.js
webpack:
$(WEBPACK) --bail
# ------------------------------------
start:
$(NODE) ./dev-server/index.js
# ------------------------------------
lint:
$(ESLINT) . --ext .js,.jsx
$(SASSLINT) ./src/*.scss
$(SASSLINT) ./src/**/*.scss
# ------------------------------------
test:
@make lint
@make build
.PHONY: build clean sync-fastly webpack stop start lint