代码拉取完成,页面将自动刷新
UGLIFY := ./node_modules/.bin/uglifyjs --comments "/^!/"
STYLUS := ./node_modules/.bin/stylus -U -u nib
DOX := ./node_modules/.bin/dox
all: \
legacy.js \
theme-white/style.css \
theme-white/script.js \
Reference.md
watch:
while true; do make all | grep -v "Nothing"; sleep 1; done
# Legacy shims for IE
legacy.js: \
support/legacy-header.js \
support/vendor/html5shiv.js \
support/vendor/respond.js
cat $^ > $@
%.css: %.styl
(echo "/*\n\nPlease don't edit this file directly.\nInstead, edit the stylus (.styl) files and compile it to CSS on your machine.\n\n*/" ; $(STYLUS) < $<) > $@
Reference.md: flatdoc.js
$(DOX) -r < $< | node support/dox2md.js --default-level 3 > $@
# $ make v/0.1.0
# Makes a distribution.
#
v/%: all
mkdir -p $@
$(UGLIFY) < flatdoc.js > $@/flatdoc.js
$(UGLIFY) < legacy.js > $@/legacy.js
cp -R templates $@/templates
mkdir -p $@/theme-white
cp theme-white/style.css $@/theme-white
cp theme-white/script.js $@/theme-white
.PHONY: watch
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。