代码拉取完成,页面将自动刷新
同步操作将从 mirrors_brickmaker/dagre 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
MOD = dagre
NPM = npm
BROWSERIFY = ./node_modules/browserify/bin/cmd.js
JSHINT = ./node_modules/jshint/bin/jshint
ESLINT = ./node_modules/eslint/bin/eslint.js
KARMA = ./node_modules/karma/bin/karma
MOCHA = ./node_modules/mocha/bin/_mocha
UGLIFY = ./node_modules/uglify-js/bin/uglifyjs
JSHINT_OPTS = --reporter node_modules/jshint-stylish/index.js
MOCHA_OPTS = -R dot
BUILD_DIR = build
COVERAGE_DIR = $(BUILD_DIR)/cov
DIST_DIR = dist
SRC_FILES = index.js lib/version.js $(shell find lib -type f -name '*.js')
TEST_FILES = $(shell find test -type f -name '*.js' | grep -v 'bundle-test.js')
BUILD_FILES = $(addprefix $(BUILD_DIR)/, \
$(MOD).js $(MOD).min.js \
$(MOD).core.js $(MOD).core.min.js)
DIRS = $(BUILD_DIR)
.PHONY: all bench clean browser-test unit-test test dist
all: unit-test lint
bench: test
@src/bench.js
lib/version.js: package.json
@src/release/make-version.js > $@
$(DIRS):
@mkdir -p $@
test: unit-test browser-test
unit-test: $(SRC_FILES) $(TEST_FILES) node_modules | $(BUILD_DIR)
@$(MOCHA) --dir $(COVERAGE_DIR) -- $(MOCHA_OPTS) $(TEST_FILES) || $(MOCHA) $(MOCHA_OPTS) $(TEST_FILES)
browser-test: $(BUILD_DIR)/$(MOD).js $(BUILD_DIR)/$(MOD).core.js
$(KARMA) start --single-run $(KARMA_OPTS)
$(KARMA) start karma.core.conf.js --single-run $(KARMA_OPTS)
bower.json: package.json src/release/make-bower.json.js
@src/release/make-bower.json.js > $@
lint:
@$(JSHINT) $(JSHINT_OPTS) $(filter-out node_modules, $?)
@$(ESLINT) $(SRC_FILES) $(TEST_FILES)
# $(BUILD_DIR)/$(MOD).js: index.js $(SRC_FILES) | unit-test
$(BUILD_DIR)/$(MOD).js: index.js $(SRC_FILES)
@$(BROWSERIFY) $< > $@ -s dagre
$(BUILD_DIR)/$(MOD).min.js: $(BUILD_DIR)/$(MOD).js
@$(UGLIFY) $< --comments '@license' > $@
# $(BUILD_DIR)/$(MOD).core.js: index.js $(SRC_FILES) | unit-test
$(BUILD_DIR)/$(MOD).core.js: index.js $(SRC_FILES)
@$(BROWSERIFY) $< > $@ --no-bundle-external -s dagre
$(BUILD_DIR)/$(MOD).core.min.js: $(BUILD_DIR)/$(MOD).core.js
@$(UGLIFY) $< --comments '@license' > $@
# dist: $(BUILD_FILES) | bower.json test
dist: $(BUILD_FILES)
@rm -rf $@
@mkdir -p $@
@cp $^ dist
release: dist
@echo
@echo Starting release...
@echo
@src/release/release.sh $(MOD) dist
clean:
rm -rf $(BUILD_DIR)
node_modules: package.json
@$(NPM) install
@touch $@
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。