mirror of
https://github.com/scratchfoundation/scratch-html5.git
synced 2024-12-04 21:01:04 -05:00
20 lines
402 B
Makefile
20 lines
402 B
Makefile
|
JSCS_PATH = ./node_modules/.bin/jscs
|
||
|
KARMA_PATH = ./node_modules/.bin/karma
|
||
|
KARMA_CONFIG = ./test/fixtures/karma.conf.js
|
||
|
|
||
|
# Performs code governance (lint + style) test
|
||
|
lint:
|
||
|
@$(JSCS_PATH) ./js/*
|
||
|
@$(JSCS_PATH) ./test/unit/*
|
||
|
|
||
|
# Performs unit tests
|
||
|
unit:
|
||
|
@$(KARMA_PATH) start $(KARMA_CONFIG) $*
|
||
|
|
||
|
# Run all test targets
|
||
|
test:
|
||
|
@make lint
|
||
|
@make unit
|
||
|
|
||
|
# Ignore directory structure
|
||
|
.PHONY: lint unit test
|