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.

47 lines
1.2 KiB

  1. SHELL := /bin/bash
  2. start: ## Start Wiki.js in production mode
  3. node wiki start
  4. stop: ## Stop Wiki.js
  5. node wiki stop
  6. restart: ## Restart Wiki.js
  7. node wiki restart
  8. dev: ## Start Wiki.js in development mode
  9. node wiki dev
  10. build: ## Build Wiki.js client assets
  11. webpack --profile --config dev/webpack/webpack.prod.js
  12. watch: ## Watch client files and rebuild assets on changes
  13. webpack --config dev/webpack/webpack.dev.js
  14. test: ## Run code linting tests
  15. eslint --format codeframe --ext .js,.vue .
  16. pug-lint server/views && jest
  17. docker-dev-up: ## Run dockerized dev environment
  18. docker-compose up -d
  19. docker-compose exec wiki yarn dev
  20. docker-dev-down: ## Shutdown dockerized dev environment
  21. docker-compose down
  22. docker-dev-rebuild: ## Rebuild dockerized dev image
  23. docker-compose build
  24. docker-build: ## Run assets generation build in docker
  25. docker-compose run wiki yarn build
  26. docker-compose down
  27. help: ## Display help
  28. @echo ''
  29. @echo -e 'usage: \033[1mmake [command] [args...]\033[0m'
  30. @echo ''
  31. @echo -e "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\x1b[36m\1\\x1b[m:\2/' | column -c2 -t -s :)"
  32. @echo ''
  33. .PHONY: clean logs
  34. .DEFAULT_GOAL := help