mirror of
https://github.com/scratchfoundation/scratchjr-website.git
synced 2025-06-15 06:42:59 -04:00
* 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
42 lines
687 B
Makefile
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
|