Skip to content

Conversation

@marshallswain
Copy link
Member

Enables really convenient syntax for using with Gulp.js. Allows for all of the same options.

Had to move the main function outside of index.js in order to avoid a circular reference. So, instead of

module.exports = function(.... 

it is now

module.exports = require('entry.js'); 

... where entry.js contains the same exact original function and dependencies.

Added gulp/gulp.js to allow easy utilization of can-compile inside a gulpfile. Had to move the main function out of index.js and into its own file to get rid of the circular dependency. All functionality should remain the same.
@marshallswain
Copy link
Member Author

I'm not sure that we need to put gulp.js in its own directory. Would it mess up Grunt to put it in the tasks folder?

Restored index.js to its original state. Now must require the task directly from tasks folder. var compileGulp = require(‘can-compile/tasks/gulp.js’) Updated readme.md to match.
@daffl
Copy link
Contributor

daffl commented Feb 17, 2014

I'm not sure if it would mess with Grunt. The easiest way to avoid any issues is probably to move the gulp.js file to the top level (since you can load them from any location anyway). Besides that it looks great, thanks!

@marshallswain
Copy link
Member Author

Done. Works like a charm.

I tried a few times to compile an array of files “Programmatically” until I read through the source code and found that it wasn’t intended to work that way. :)
@daffl
Copy link
Contributor

daffl commented Feb 17, 2014

Awesome! I'll get a new release out this week.

daffl added a commit that referenced this pull request Feb 17, 2014
@daffl daffl merged commit f8d3b4f into canjs:master Feb 17, 2014
@marshallswain marshallswain deleted the patch-2 branch February 17, 2014 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants