$ gnpm install gear-lib
Useful tasks to lint, minify, and deploy assets.
$ npm install gear-lib
new Queue({registry: 'gear-lib'})
.read(['foo.js', 'bar.js', 'baz.js'])
.concat()
.jslint({config: {nomen: true}})
.jsminify()
.s3({name: 'foobarbaz.js', client: {
key: '<key>',
secret: '<secret>',
bucket: 'gearjs'
}})
.run();
Lint Javascript files.
Arguments
Example
.jslint({config: {nomen: true}})
Lint Javascript files.
Arguments
Example
.jshint({config: {browser: true, eqeqeq: true}})
.jshint({configFile: '.jshintrc'})
Minify Javascript files.
Arguments
Example
.jsminify()
Lint CSS files.
Arguments
Example
.csslint({config: {'duplicate-properties': true}})
Minify CSS files.
Aliased as less()
Example
.cssminify()
// Compile LESS stylesheets without minifying
.less({compress: false})
Read files using wildcards. See Glob package
Arguments
Example
.glob({
pattern: "*.js"
})
Deploy file to S3.
Arguments
Example
.s3({name: 'foobarbaz.js', client: {
key: '<key>',
secret: '<secret>',
bucket: 'gearjs'
}})
Move one or more files to a destination.
Arguments
Example
.dest('path/of/destination')
// With more options
.dest({
dir: 'path/of/destination',
base: 'path/of'
})
Copyright 2013 - present © cnpmjs.org | Home |