webauthn-json/Makefile

22 строки
911 B
Makefile
Исходник Постоянная ссылка Обычный вид История

2019-08-18 22:06:28 +03:00
# This Makefile is a wrapper around the scripts from `package.json`.
# https://github.com/lgarron/Makefile-scripts
2019-07-12 06:11:14 +03:00
# Note: the first command becomes the default `make` target.
2022-01-18 00:53:14 +03:00
NPM_COMMANDS = build build-js build-types build-pages dev clean test lint format prepack postpublish
2019-07-12 06:11:14 +03:00
.PHONY: $(NPM_COMMANDS)
$(NPM_COMMANDS):
npm run $@
2019-08-18 22:06:28 +03:00
# We write the npm commands to the top of the file above to make shell autocompletion work in more places.
2022-01-11 23:59:03 +03:00
DYNAMIC_NPM_COMMANDS = $(shell node -e 'console.log(Object.keys(require("./package.json").scripts).join(" "))')
UPDATE_MAKEFILE_SED_ARGS = "s/^NPM_COMMANDS = .*$$/NPM_COMMANDS = ${DYNAMIC_NPM_COMMANDS}/" Makefile
2019-08-18 22:06:28 +03:00
.PHONY: update-Makefile
update-Makefile:
2022-01-11 23:59:03 +03:00
if [ "$(shell uname -s)" = "Darwin" ] ; then sed -i "" ${UPDATE_MAKEFILE_SED_ARGS} ; fi
if [ "$(shell uname -s)" != "Darwin" ] ; then sed -i"" ${UPDATE_MAKEFILE_SED_ARGS} ; fi
2020-08-12 20:34:11 +03:00
.PHONY: publish
publish:
npm publish