Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

46 linhas
920 B

  1. -include .env
  2. BASEDIR = $(realpath .)
  3. SRCDIR = $(BASEDIR)/src
  4. DISTDIR = $(BASEDIR)/dist
  5. DOCSDIR = $(BASEDIR)/docs
  6. PROJECT = xhiveframework-charts
  7. NODEMOD = $(BASEDIR)/node_modules
  8. NODEBIN = $(NODEMOD)/.bin
  9. build: clean install
  10. $(NODEBIN)/rollup \
  11. --config $(BASEDIR)/rollup.config.js \
  12. --watch=$(watch)
  13. clean:
  14. rm -rf \
  15. $(BASEDIR)/.nyc_output \
  16. $(BASEDIR)/.yarn-error.log
  17. clear
  18. install.dep:
  19. ifeq ($(shell command -v yarn),)
  20. @echo "Installing yarn..."
  21. npm install -g yarn
  22. endif
  23. install: install.dep
  24. yarn --cwd $(BASEDIR)
  25. test: clean
  26. $(NODEBIN)/cross-env \
  27. NODE_ENV=test \
  28. $(NODEBIN)/nyc \
  29. $(NODEBIN)/mocha \
  30. --require $(NODEMOD)/babel-register \
  31. --recursive \
  32. $(SRCDIR)/js/**/test/*.test.js
  33. coveralls:
  34. $(NODEBIN)/nyc report --reporter text-lcov | $(NODEBIN)/coveralls