Skip to content

Instantly share code, notes, and snippets.

@exustash
Last active March 5, 2019 16:30
Show Gist options
  • Select an option

  • Save exustash/597f62299efb7aa44c0f5b21475b9f54 to your computer and use it in GitHub Desktop.

Select an option

Save exustash/597f62299efb7aa44c0f5b21475b9f54 to your computer and use it in GitHub Desktop.
makefile-documentation
.DEFAULT_GOAL := help
#help: @ List available tasks on this project
help:
@grep -E '[a-zA-Z\.\-]+:.*?@ .*$$' $(MAKEFILE_LIST)| tr -d '#' | awk 'BEGIN {FS = ":.*?@ "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
#dep.install: @ Install all depencies defined in package.json
dep.install:
yarn install
#test.lint: @ Checks the source code against defined coding standard rules
test.lint:
yarn run test:lint
#test.unit: @ Runs the unit tests suits againt the source code
test.unit:
yarn run test:unit
#test.end2end: @ Runs the end2end tests suits againt the source code
test.end2end:
yarn run test:e2e
#release.package: @ bundle, fingerprint and package a release of the application
release.package: r.bundle r.fingerprint r.package
r.bundle:
yarn run dist -- --APP_ENV=prod
r.fingerprint:
@echo "<!-- `date --utc` - revision: `git log -n 1 --pretty=format:'%h' -->" >> dist/settings/index.html
r.package:
tar -czvf nodeapp.tar.gz -C app/dist/prod .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment