Skip to content

Commit

Permalink
Fix: npm browserify (fixes #156)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonLaster committed Jul 11, 2015
1 parent 21f73f3 commit f4c2642
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Makefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,11 @@ target.test = function() {
lastReturn;

lastReturn = nodeCLI.exec("istanbul", "cover", MOCHA, "-- -c", TEST_FILES);
// lastReturn = nodeCLI.exec("mocha", TEST_FILES);

if (lastReturn.code !== 0) {
errors++;
}

// lastReturn = nodeCLI.exec("istanbul", "check-coverage", "--statement 99 --branch 98 --function 99 --lines 99");
// if (lastReturn.code !== 0) {
// errors++;
// }

if (errors) {
exit(1);
}
Expand Down Expand Up @@ -193,6 +188,8 @@ target.browserify = function() {
// 2. copy files into temp directory
cp("-r", "lib/*", TEMP_DIR + "/lib");
cp("espree.js", TEMP_DIR);
cp("package.json", TEMP_DIR);


// 3. browserify the temp directory
nodeCLI.exec("browserify", TEMP_DIR + "espree.js", "-o", BUILD_DIR + "espree.js", "-s espree");
Expand Down

0 comments on commit f4c2642

Please sign in to comment.