11
0
Fork 0
mirror of https://github.com/pre-commit/action.git synced 2026-04-13 17:24:18 +00:00

Initial commit

This commit is contained in:
Anthony Sottile 2019-11-24 19:27:05 -08:00
parent 1dde72fd16
commit 614487b962
10 changed files with 4545 additions and 0 deletions

24
Makefile Normal file
View file

@ -0,0 +1,24 @@
.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