browserify-sa
Advanced tools
Comparing version 1.0.4 to 2.0.0
10
cli.js
@@ -8,2 +8,4 @@ #!/usr/bin/env node | ||
var m = require('minimist-mini')(); | ||
var infoAry = new Array(); | ||
@@ -26,5 +28,9 @@ infoAry.push("Package: " + json.name); | ||
command+= "(printf '/*" +infoStr +" */ '"; | ||
command+= "(printf '/* " +infoStr +" */ '"; | ||
command+=' && browserify ' + json.main + ' -s ' + json.name; | ||
command+= ' | uglifyjs ) ' | ||
if (m.get('uglify')) { | ||
command+= ' | uglifyjs'; | ||
} | ||
command+= ') '; | ||
command+= ' > dist/' + json.name + '.js'; | ||
@@ -31,0 +37,0 @@ |
{ | ||
"name": "browserify-sa", | ||
"version": "1.0.4", | ||
"version": "2.0.0", | ||
"description": "Run browserify-sa in a npm package and make a standalone build of the package.", | ||
@@ -9,3 +9,5 @@ "main": "index.js", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"minimist-mini": "^2.0.7" | ||
}, | ||
"devDependencies": {}, | ||
@@ -17,3 +19,3 @@ "scripts": { | ||
"type": "git", | ||
"url": "git+https://github.com/diversen/browserify-sa.git" | ||
"url": "git+https://github.com/diversen/browserify-standalone.git" | ||
}, | ||
@@ -23,3 +25,3 @@ "author": "dennis iversen", | ||
"bugs": { | ||
"url": "https://github.com/diversen/browserify-sa/issues" | ||
"url": "https://github.com/diversen/browserify-standalone/issues" | ||
}, | ||
@@ -29,3 +31,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/diversen/browserify-sa#readme" | ||
"homepage": "https://github.com/diversen/browserify-standalone#readme" | ||
} |
# browserify-sa | ||
## Install | ||
Run browserify-sa in a npm package and make a standalone build of the package. | ||
Install global: | ||
sudo npm install browserify-sa -g | ||
You will need browserify and uglify-js in recent versions as global installs: | ||
sudo npm install -g uglify-js browserify | ||
## Usage | ||
Single command, no options. | ||
browserify-sa | ||
browserify-sa | ||
Run this command in a npm package and make a standalone build of the package. | ||
Basicly a simple wrapper around browserify that does something like this: | ||
@@ -27,4 +15,10 @@ | ||
The build also includes common package.json fields like author and license. | ||
# Options | ||
Only option is `uglify` - which will uglify the `dist` build. Uglify will | ||
not always work with e.g. `string literals`. Therefor it is needed to | ||
specify it. | ||
browserify-sa --uglify | ||
MIT © [Dennis Iversen](https://github.com/diversen) |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
3
2667
1
5
42
2
24
+ Addedminimist-mini@^2.0.7
+ Addedget-value@2.0.6(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedminimist-mini@2.0.9(transitive)
+ Addedremove-markdown@0.2.2(transitive)