Permalink
Browse files

Moved gulp.js to top level.

  • Loading branch information...
1 parent edd7b1c commit 685706407aa4b872b18171dc90d54560b4c95cd3 @marshallswain marshallswain committed Feb 17, 2014
Showing with 5 additions and 3 deletions.
  1. +4 −2 {tasks → }/gulp.js
  2. +1 −1 readme.md
@@ -1,12 +1,13 @@
'use strict';
-var compile = require('../lib/index.js'),
+var compile = require('./lib/index.js'),
glob = require('glob');
/**
* Create a new gulp task to compile CanJS templates.
* @param {string} taskName
* @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){
@@ -26,9 +27,10 @@ exports.task = function(taskName, options, gulp){
/**
* 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 {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){
gulp.task(taskName + '-watch', function() {
View
@@ -91,7 +91,7 @@ It is also quite easy to get this up and running with your production build usin
```javascript
var gulp = require('gulp'),
- compilerGulp = require('can-compile/tasks/gulp.js');
+ compilerGulp = require('can-compile/gulp.js');
var options = {
src: ['client/app/main/**/*.mustache'],

0 comments on commit 6857064

Please sign in to comment.