Skip to content
This repository has been archived by the owner on Dec 6, 2017. It is now read-only.

Commit

Permalink
Added lodash command using npm bin.
Browse files Browse the repository at this point in the history
  • Loading branch information
iammerrick committed Jun 8, 2012
1 parent 801e8a5 commit 2785764
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.js
Expand Up @@ -524,14 +524,14 @@

// begin the minification process
if (filterType || isMobile) {
fs.writeFileSync(path.join(__dirname, 'lodash.custom.js'), source);
fs.writeFileSync(path.join(process.cwd(), 'lodash.custom.js'), source);
minify(source, 'lodash.custom.min', function(result) {
fs.writeFileSync(path.join(__dirname, 'lodash.custom.min.js'), result);
fs.writeFileSync(path.join(process.cwd(), 'lodash.custom.min.js'), result);
});
}
else {
minify(source, 'lodash.min', function(result) {
fs.writeFileSync(path.join(__dirname, 'lodash.min.js'), result);
fs.writeFileSync(path.join(process.cwd(), 'lodash.min.js'), result);
});
}
}());
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -38,5 +38,8 @@
"directories": {
"doc": "./doc",
"test": "./test"
},
"bin": {
"lodash": "./build.js"
}
}
}

0 comments on commit 2785764

Please sign in to comment.