Comparing version 2.1.2 to 2.1.3
@@ -31,3 +31,3 @@ USAGE | ||
--source-url Add source URL annotations to the files. Useful for | ||
development, but note that they are not compatible with IE. | ||
development, but note that this is not compatible with IE. | ||
@@ -51,3 +51,3 @@ --global-require Export the require() implementation into the global space. | ||
--cache <path> Use a cache directory to store file builds. The cache | ||
--cache-path <p> Use a cache directory to store file builds. The cache | ||
speeds up large builds (and minified builds) significantly | ||
@@ -54,0 +54,0 @@ since only source files that have changed are updated. |
@@ -98,2 +98,8 @@ var fs = require('fs'), | ||
if(typeof packageRootFileName === 'undefined') { | ||
throw new Error('You need to set the package root file explicitly, ' + | ||
'e.g.: `.main(\'index.js\')` or `--main index.js`. This is the file that\'s exported ' + | ||
'as the root of the package.'); | ||
} | ||
// filter out non-JS files (more accurately, files that have no tasks that match them) | ||
@@ -100,0 +106,0 @@ var removed = []; |
{ | ||
"name": "gluejs", | ||
"description": "Build CommonJS modules for the browser via a chainable API", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Mikito Takada", |
@@ -137,6 +137,7 @@ # gluejs V2 | ||
````bash | ||
Usage: gluejs --include <file/dir ...> --out filename.js | ||
````markdown | ||
Usage: gluejs --include <file/dir ...> {OPTIONS} | ||
Options: | ||
## Basic | ||
--include Path to import. | ||
@@ -148,5 +149,12 @@ --exclude JS regular expression string to match against the included paths | ||
--main Name of the main file/module to export. Default: index.js | ||
## Replace / remap | ||
--replace foo=bar Bind require("name") to an expression, e.g. jQuery to window.$. | ||
--remap foo=bar Remap a name to another name (within the same package). See the docs. | ||
## Build options | ||
--source-url Add source URL annotations to the files. Useful for development, | ||
but note that they are not compatible with IE. | ||
but note that this is not compatible with IE. | ||
--global-require Export the require() implementation into the global space. | ||
@@ -157,11 +165,29 @@ --amd Export the module via the require.js AMD define("name", ...) using | ||
asynchronous require() call. | ||
## Minification / source transforms | ||
--command Pipe each file through a shell command and capture the output | ||
(e.g. --command "uglifyjs --no-copyright"). | ||
--transform Activates a source transformation module. | ||
## Performance | ||
--cache-path Use a cache directory to store file builds. The cache speeds up | ||
large builds (and minified builds) significantly since only source | ||
files that have changed are updated. | ||
--jobs Sets the maximum level of parallelism for the task | ||
execution pipeline. Default: `os.cpus().length * 2` | ||
--cache-method Sets the cache method: stat | hash algorighm name. | ||
## Reporting | ||
--report Display the file size report. | ||
--silent Disable all output, including the reporter. | ||
--verbose More verbose output, such as files being filtered out and processed. | ||
--report Display the file size report. | ||
--version Version info | ||
## Advanced | ||
--reset-exclude Advanced: do not apply the default exclusions | ||
(/dist/, /example/, /benchmark/, .min.js). | ||
```` | ||
@@ -175,2 +201,3 @@ | ||
.basepath('./lib') // output paths are relative to this | ||
.main('index.js') // the file that's exported as the root of the package | ||
.include('./lib') // includes all files in the dir | ||
@@ -177,0 +204,0 @@ .exclude(new RegExp('.+\\.test\\.js')) // excludes .test.js |
87234
1531
452