mirror of
https://github.com/pre-commit/action.git
synced 2025-11-07 10:46:56 +00:00
24 lines
600 B
Makefile
24 lines
600 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 action.yml dist/index.js
|