Sha256: 3fe50863528c5d962cc0c12ac607c9010014f6bb7aa8779114890ac5b0571058

Contents?: true

Size: 1.62 KB

Versions: 8

Compression:

Stored size: 1.62 KB

Contents

TESTS = test/*.js
REPORTER = dot

#
# Browser Build
#

all: chai.js

chai.js: node_modules lib/* components
	@printf "==> [Browser :: build]\n"
	@./node_modules/.bin/component-build -s chai -o .
	@mv build.js chai.js

#
# Node Module
#

node_modules: package.json
	@npm install

#
# Components
#

build: components lib/*
	@printf "==> [Component :: build]\n"
	@./node_modules/.bin/component-build --dev

components: node_modules component.json
	@printf "==> [Component :: install]\n"
	@./node_modules/.bin/component-install --dev

#
# Tests
#

test: test-node test-phantom

test-node: node_modules
	@printf "==> [Test :: Node.js]\n"
	@NODE_ENV=test ./node_modules/.bin/mocha \
		--require ./test/bootstrap \
		--reporter $(REPORTER) \
		$(TESTS)

test-cov: node_modules
	@NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
		--require ./test/bootstrap \
		$(TESTS) \

test-phantom: build
	@printf "==> [Test :: Karma (PhantomJS)]\n"
	@./node_modules/karma/bin/karma start \
		--single-run --browsers PhantomJS

test-sauce: build
	@printf "==> [Test :: Karma (Sauce)]\n"
	@CHAI_TEST_ENV=sauce ./node_modules/karma/bin/karma start \
		--single-run

test-travisci:
	@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
	@make test-cov
	@make test-sauce

#
# Clean up
#

clean: clean-node clean-browser clean-components clean-cov

clean-node:
	@rm -rf node_modules

clean-browser:
	@rm -f chai.js

clean-components:
	@rm -rf build
	@rm -rf components

clean-cov:
	@rm -rf coverage

#
# Instructions
#

.PHONY: all
.PHONY: test test-all test-node test-phantom test-sauce test-cov
.PHONY: clean clean-node clean-browser clean-components clean-cov

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ende-0.5.22 components/indefinido/indemma/master/components/chaijs/chai/1.9.1/Makefile
ende-0.5.21 components/indefinido/indemma/master/components/chaijs/chai/1.9.1/Makefile
ende-0.5.6 components/chaijs/chai/1.9.1/Makefile
ende-0.5.5 components/chaijs/chai/1.9.1/Makefile
ende-0.5.4 components/chaijs/chai/1.9.1/Makefile
ende-0.5.3 components/chaijs/chai/1.9.1/Makefile
ende-0.5.2 components/chaijs/chai/1.9.1/Makefile
ende-0.5.1 components/chaijs/chai/1.9.1/Makefile