Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved gulp.js to top level.

  • Loading branch information...
commit 685706407aa4b872b18171dc90d54560b4c95cd3 1 parent edd7b1c
@marshallswain marshallswain authored
Showing with 5 additions and 3 deletions.
  1. +4 −2 {tasks → }/gulp.js
  2. +1 −1  readme.md
View
6 tasks/gulp.js → gulp.js
@@ -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
2  readme.md
@@ -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'],
Please sign in to comment.
Something went wrong with that request. Please try again.