5
0
Fork 0
mirror of https://github.com/pre-commit/action.git synced 2025-11-07 10:46:56 +00:00
pre-commit-action/Makefile
2020-05-22 13:06:23 -07:00

24 lines
608 B
Makefile

.PHONY: all
all: dist/index.js
venv: Makefile
rm -rf venv
virtualenv venv -ppython3
venv/bin/pip install markdown-to-presentation
node_modules: package.json
npm install --silent
test -d node_modules
touch node_modules
dist/index.js: index.js node_modules
node_modules/.bin/webpack --config webpack.config.js
# terrible hack to prevent lookup of `navigator`
# if someone knows the correct way to use webpack, PRs welcome!
sed -i 's/\bnavigator\b/({})/g' $@
.PHONY: push
push: venv
venv/bin/markdown-to-presentation push \
--pages-branch release \
README.md LICENSE action.yml dist/index.js