Comparing version 3.0.7 to 3.0.8
@@ -11,3 +11,9 @@ var log = require('./lib/debug')('api'), | ||
function one(entry){ | ||
var chain = newChain(options.set.debug, options.set.native, options.set.global, options.set.ignore, options.set.require, save, options.set.tie), | ||
var chain = newChain(options.set.debug, | ||
options.set.native, | ||
options.set.global, | ||
options.set.ignore, | ||
options.set.require, | ||
options.set.tie, | ||
save), | ||
pack = ( /\.js$/.test(entry) ? newModule : newDependency )( entry ); | ||
@@ -14,0 +20,0 @@ |
@@ -5,2 +5,6 @@ var debug = require("./debug")('requires'); | ||
function isNotOne(uri){ | ||
return uri != 'one'; | ||
} | ||
function requires(module){ | ||
@@ -19,3 +23,3 @@ var re = /require\((?:'|")([^\'\"]+)(?:'|")\)/g, | ||
return result; | ||
return result.filter(isNotOne); | ||
} |
{ | ||
"name": "one", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "Bundles NodeJS modules/libraries for web browsers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
## OneJS | ||
## OneJS v3 | ||
@@ -23,3 +23,3 @@ Bundles NodeJS modules/libraries for web browsers. | ||
## Manual | ||
## Command-line Manual | ||
@@ -61,2 +61,16 @@ ``` | ||
## JavaScript Manual | ||
```js | ||
one('index.js').save('bundle.js') | ||
``` | ||
All Available methods: | ||
```js | ||
one('index.js').debug().global().require('foobar').ignore('jquery').native().save('/tmp/foo.js') | ||
``` | ||
See the command-line manual above for details. | ||
## TODO | ||
@@ -63,0 +77,0 @@ |
24424
599
81