Skip to content

Commit

Permalink
Moved gulp.js to top level.
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain committed Feb 17, 2014
1 parent edd7b1c commit 6857064
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tasks/gulp.js → gulp.js
@@ -1,12 +1,13 @@
'use strict'; 'use strict';


var compile = require('../lib/index.js'), var compile = require('./lib/index.js'),
glob = require('glob'); glob = require('glob');


/** /**
* Create a new gulp task to compile CanJS templates. * Create a new gulp task to compile CanJS templates.
* @param {string} taskName * @param {string} taskName
* @param {object} options same as for can-compile's options. * @param {object} options same as for can-compile's options.
* @param {gulp} pass in your gulp instance, so it registers the task correctly.
*/ */
exports.task = function(taskName, options, gulp){ exports.task = function(taskName, options, gulp){


Expand All @@ -26,9 +27,10 @@ exports.task = function(taskName, options, gulp){


/** /**
* Optionally, watch for template changes and rerun the gulp task. Pass the same options * Optionally, watch for template changes and rerun the gulp task. Pass the same options
* for the task. Each task will need its own watch task. * for the task. Each task will need its own watch.
* @param {string} taskName * @param {string} taskName
* @param {object} options same as for can-compile's options. * @param {object} options same as for can-compile's options.
* @param {gulp} pass in your gulp instance, so it registers the task correctly.
*/ */
exports.watch = function(taskName, options, gulp){ exports.watch = function(taskName, options, gulp){
gulp.task(taskName + '-watch', function() { gulp.task(taskName + '-watch', function() {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -91,7 +91,7 @@ It is also quite easy to get this up and running with your production build usin
```javascript ```javascript


var gulp = require('gulp'), var gulp = require('gulp'),
compilerGulp = require('can-compile/tasks/gulp.js'); compilerGulp = require('can-compile/gulp.js');


var options = { var options = {
src: ['client/app/main/**/*.mustache'], src: ['client/app/main/**/*.mustache'],
Expand Down

0 comments on commit 6857064

Please sign in to comment.