Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed https://markdown-it.github.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5 KiB

10 years ago
PATH := ./node_modules/.bin:${PATH}
NPM_PACKAGE := $(shell node -e 'process.stdout.write(require("./package.json").name)')
NPM_VERSION := $(shell node -e 'process.stdout.write(require("./package.json").version)')
GITHUB_PROJ := https://github.com//markdown-it/${NPM_PACKAGE}
10 years ago
demo:
npm run demo
10 years ago
gh-demo:
npm run gh-demo
10 years ago
lint:
npm run lint
10 years ago
test:
npm test
10 years ago
coverage:
npm run coverage
doc:
npm run doc
gh-doc:
npm run gh-doc
10 years ago
publish:
@if test 0 -ne `git status --porcelain | wc -l` ; then \
echo "Unclean working tree. Commit or stash changes first." >&2 ; \
exit 128 ; \
fi
@if test 0 -ne `git fetch ; git status | grep '^# Your branch' | wc -l` ; then \
echo "Local/Remote history differs. Please push/pull changes." >&2 ; \
exit 128 ; \
fi
@if test 0 -ne `git tag -l ${NPM_VERSION} | wc -l` ; then \
echo "Tag ${NPM_VERSION} exists. Update package.json" >&2 ; \
exit 128 ; \
fi
git tag ${NPM_VERSION} && git push origin ${NPM_VERSION}
npm publish ${GITHUB_PROJ}/tarball/${NPM_VERSION}
browserify:
npm run browserify
10 years ago
benchmark-deps:
npm run benchmark-deps
specsplit:
./support/specsplit.js good ./test/fixtures/commonmark/spec.txt > ./test/fixtures/commonmark/good.txt
./support/specsplit.js bad ./test/fixtures/commonmark/spec.txt > ./test/fixtures/commonmark/bad.txt
./support/specsplit.js ./test/fixtures/commonmark/spec.txt
10 years ago
todo:
grep 'TODO' -n -r ./lib 2>/dev/null || test true
.PHONY: publish lint test todo demo coverage doc
10 years ago
.SILENT: help lint test todo