browserify-lite
Advanced tools
Comparing version 0.0.1 to 0.2.0
23
cli.js
@@ -10,10 +10,14 @@ #!/usr/bin/node | ||
if (entrySourcePath === '--help') { | ||
usage(); | ||
} | ||
if (outputFileParam !== '--outfile') { | ||
console.error("Expected second param to be --outfile"); | ||
process.exit(1); | ||
console.error("Expected second param to be --outfile\n"); | ||
usage(); | ||
} | ||
if (!outBundlePath || !entrySourcePath) { | ||
console.error("Expected first arg to be source path and third arg to be out bundle path."); | ||
process.exit(1); | ||
console.error("Expected first arg to be source path and third arg to be out bundle path.\n"); | ||
usage(); | ||
} | ||
@@ -24,1 +28,12 @@ | ||
}); | ||
function usage() { | ||
console.error( | ||
"Usage: browserify-lite ./entry-file.js --outfile bundle.js\n" + | ||
"\n" + | ||
"Standard Options:\n" + | ||
"\n" + | ||
" --outfile Write the browserify bundle to this file."); | ||
process.exit(1); | ||
} |
{ | ||
"name": "browserify-lite", | ||
"version": "0.0.1", | ||
"version": "0.2.0", | ||
"description": "browserify, minus some of the advanced features and heavy dependencies.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,2 +11,13 @@ # browserify-lite | ||
nothing else. | ||
* No source maps. | ||
* Minimal dependencies. | ||
## Usage | ||
``` | ||
browserify-lite ./src/app.js --outfile public/app.js | ||
``` | ||
./src/app.js can depend on any modules using Node.js's | ||
[module resolution system](http://nodejs.org/docs/latest/api/modules.html#modules_all_together) | ||
and they will be bundled as well. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
387
23
0
14287
7