# get Makefile directory name: http://stackoverflow.com/a/5982798/376773THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)# BIN directoryBIN := $(THIS_DIR)/node_modules/.bin# PathPATH := node_modules/.bin:$(PATH)SHELL := /bin/bash# applicationsNODE ?= $(shell which node)YARN ?= $(shell which yarn)PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))BROWSERIFY ?= $(NODE) $(BIN)/browserify.FORCE:install: node_modulesnode_modules: package.json@NODE_ENV= $(PKG) install@touch node_moduleslint: .FORCEeslint browser.js debug.js index.js node.jstest-node: .FORCEistanbul cover node_modules/mocha/bin/_mocha -- test/**.jstest-browser: .FORCEmkdir -p dist@$(BROWSERIFY) \--standalone debug \. > dist/debug.jskarma start --single-runrimraf disttest: .FORCEconcurrently \"make test-node" \"make test-browser"coveralls:cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js.PHONY: all install clean distclean
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。