You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
401 B

  1. -include .env
  2. BASEDIR = $(realpath .)
  3. SRCDIR = $(BASEDIR)/src
  4. TESTDIR = $(SRCDIR)/test
  5. NODEMOD = $(BASEDIR)/node_modules
  6. NODEBIN = $(NODEMOD)/.bin
  7. build:
  8. $(NODEBIN)/rollup \
  9. --config $(BASEDIR)/rollup.config.js
  10. test:
  11. NODE_ENV=test \
  12. $(NODEBIN)/mocha \
  13. --recursive \
  14. --require $(NODEMOD)/babel-register \
  15. $(TESTDIR)