Skip to content

Instantly share code, notes, and snippets.

@poying
Created December 30, 2014 10:49
Show Gist options
  • Save poying/e2e3c387f01878e54102 to your computer and use it in GitHub Desktop.
Save poying/e2e3c387f01878e54102 to your computer and use it in GitHub Desktop.
echo "require('./test')" | duo --root . --type js > $@
@poying
Copy link
Author

poying commented Dec 30, 2014

KARMA = ./node_modules/karma/bin/karma
T = $(KARMA) start karma.conf.js

build.js:
    @echo "require('./test')" | duo --root . --type js > $@

test: build.js
    @$(T) --single-run

test-local: build.js
    @$(T)

clean:
    @rm -rf build.js components

.PHONY: clean test build.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment