2.0.3 • Published 10 years ago

gulp-onejs-build v2.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

gulp-onejs-build

Dependency Status

A set of handy gulp tasks to build, test, and release your OneJS project.

How to use

Install the plugin through npm npm install gulp-onejs-build --save-dev

Add it to your gulpfile.js and register all of the gulp tasks

var gulp = require('gulp');
var karma = require('karma').server;
var oneJsBuild = require('gulp-onejs-build');

oneJsBuild.gulpTasks.all({
    gulp: gulp,
    rootDir: __dirname,
    karma: karma
});

Run gulp at the command line and that's it! For a full listing of all tasks that are registered, run the standard gulp --tasks!

Options

As show in the example above, there are options that you can pass while registering your gulp tasks.

nameoptionaldescription
gulpfalsePass in your local gulp instance so the tasks are registered on the proper instance
rootDirfalseThe rootdir for your project, generally this is __dirname
pathstrueIf you want to override our path structure, you can do so. This is not recommended as OneJS has an existing, expected directory structure
karmafalse (for test)Pass in your local karma instance so tests can be ran properly
autoprefixerOptionstrueWe use gulp-autoprefixer to help simplify our LESS/CSS, feel free to pass in your options to autoprefixer as defined by the module itself
tscOptionstrueOptions for gulp-typescript
depstrueA map of src globs to dest paths for the build process to copy over before build time
gulpTaskOptionstrueA map of gulp task names to additional tasks that should be ran as pre-reqs to the gulp task

4 flavors of gulp tasks

You can register all, or just a subset of the available gulp tasks.

1. All

Imports all the tasks available: dev, test, and release.

2. Dev

Only imports the gulp tasks needed for development (everything that is in ./tasks/dev.js).

3. Test

Imports the gulp tasks needed for testing (everything that is in ./tasks/test.js and ./tasks/dev.js).

4. Release

Imports the gulp tasks needed for releasing/publishing to npm/bower (everything that is in ./tasks/release.js and ./tasks/dev.js).

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.4.6

10 years ago

1.4.5

10 years ago

1.4.4

10 years ago

1.4.3

10 years ago

1.4.2

10 years ago

1.4.1

10 years ago

1.4.0

10 years ago

1.3.5

10 years ago

1.3.4

10 years ago

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.8

10 years ago

1.2.7

10 years ago

1.2.6

10 years ago

1.2.5

10 years ago

1.2.4

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago