gear-lib
Gear.js tasks
Collection of commonUseful tasks to lint, minify, and deploy assets.
Installation
$ npm install gear-lib
Quick Examples
Deploy to S3
new Queue({registry: new Registry({module: 'gear-lib'})})
.read(['foo.js', 'bar.js', 'baz.js'])
.concat()
.jslint()
.jsminify()
.s3({name: 'foobarbaz.js', client: {
key: '<key>',
secret: '<secret>',
bucket: 'gearjs'
}})
.run();
Documentation
Tasks
Tasks ### jslint()
Lint Javascript files.
Arguments
- options - Options for JSLint.
Example
.jslint()
### jsminify()
Minify Javascript files.
Arguments
- options - Options for uglify-js.
Example
.jsminify()
### csslint()
Lint CSS files.
Arguments
- options - Options for CSSLint.
Example
.csslint()
### cssminify()
Minify CSS files.
Example
.cssminify()
### s3()
Deploy file to S3.
Arguments
- options.name - Filename to write to S3.
- options.client.key - S3 key.
- options.client.secret - S3 secret.
- options.client.bucket - S3 bucket.
Example
.s3({name: 'foobarbaz.js', client: {
key: '<key>',
secret: '<secret>',
bucket: 'gearjs'
}})