Closed mstade closed 8 years ago
@@ master #42 diff @@
==========================================
Files 15 15
Lines 263 267 +4
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 228 232 +4
Misses 35 35
Partials 0 0
Powered by Codecov. Last update 79239c5...1793ddd
Description
When the
--production
flag is set, we ensure ez-build also setsNODE_ENV
internally, such that build setups that useprocess.env.NODE_ENV
substitutions work as expected. However, ifNODE_ENV
is already set, we leave it alone. Additionally, ifNODE_ENV
is set toproduction
prior to invoking ez-build, it too will enable production mode. This means it's possible to enable production mode in the following ways:ez-build --production
NODE_ENV=production ez-build
npm run --production build
wherebuild
is a script that invokes ez-buildMotivation and Context
More color on this topic is found in #38, which is fixed by this PR.
How Was This Tested?
Both unit tests and CLI tests were added, to test for options parsing and changes to build execution.
Types of changes
Checklist: