Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "one", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Bundles NodeJS modules/libraries for web browsers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,11 +0,55 @@ | ||
## onejs | ||
## OneJS | ||
Bundles NodeJS modules/libraries for web browsers | ||
Bundles NodeJS modules/libraries for web browsers. | ||
### Install | ||
```bash | ||
$ npm install onejs | ||
$ one index.js > browser.js | ||
``` | ||
![](https://dl.dropbox.com/s/9q2p5mrqnajys22/npmel.jpg) | ||
Or, from NodeJS: | ||
```js | ||
one('index.js').save('bundle.js') | ||
``` | ||
See tests for more examples and documentation. | ||
## Manual | ||
``` | ||
USAGE | ||
onejs [entry] [options] | ||
ENTRY | ||
An entry might be any filename that's under an NPM package. | ||
Examples: | ||
onejs myapp/index.js | ||
cd myapp && onejs | ||
myapp test/index.js | ||
myapp lib/foo/bar.js | ||
OPTIONS | ||
-d --debug Enable SourceUrls and verbose mode. | ||
-o --target Target file to save the build. | ||
-g --global Expose a global require. | ||
-r --require Require given URI from the entry module. e.g -a .\/foo,underscore | ||
-t --tie Register a global variable as package. e.g -t math=Math,pi=Math.PI | ||
-i --ignore Ignore given modules or packages. e.g -i lib\/foo.js,underscore | ||
-v --version Show version and exit. | ||
-h --help Show this help and exist. | ||
DEBUGGING | ||
Enable debugging by setting the environment variable "DEBUG" as following | ||
DEBUG=one:* onejs | ||
``` | ||
![](https://dl.dropboxusercontent.com/s/8d7jw10kjwveqs5/npmel_16.jpg) |
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
20683
56
0