我想更改这个Makefile:

SHELL := /bin/bash

PATH := node_modules/.bin:$(PATH)

boot:

@supervisor \

--harmony \

--watch etc,lib \

--extensions js,json \

--no-restart-on error \

lib

test:

NODE_ENV=test mocha \

--harmony \

--reporter spec \

test

clean:

@rm -rf node_modules

.PHONY: test clean

至:

SHELL := /bin/bash

PATH := node_modules/.bin:$(PATH)

boot:

@supervisor \

--harmony \

--watch etc,json \

--no-restart-on error \

lib

test: NODE_ENV=test

test:

mocha \

--harmony \

--reporter spec \

test

clean:

@rm -rf node_modules

.PHONY: test clean

不幸的是,第二个不工作(节点进程仍然运行默认NODE_ENV。

我错过了什么?

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐