typeplate / typeplate.github.io

Official Website for Typeplate: “A Typographic Starter Kit.”
http://typeplate.com
Other
1.35k stars 109 forks source link

Assemble Questions #143

Closed grayghostvisuals closed 10 years ago

grayghostvisuals commented 10 years ago

@jonschlinkert Questions so far:

1. In our Gruntfile we use :

require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

but in the Gruntfile to use assemble we need this line

grunt.loadNpmTasks('assemble');

why can't we have matchdep pull in the NPM task for assemble?

2. What's the best way to use assemble w/Grunt alongside a watch task in order to work with live reload?

Melindrea commented 10 years ago

One thought I have is to change the require('matchdep') over to use just-in-time loading of tasks.

If you need help with reworking the Gruntfile, it's something I've done a fair bit lately.

grayghostvisuals commented 10 years ago

@Melindrea The point with matchdep is avoiding to write all the loadNpmTasks tasks out by hand. I'd prefer keeping it in unless you can clarify why changing it would benefit more.

Melindrea commented 10 years ago

just-in-time loading does the same, except that it only loads the tasks used in any given call. So, if it's a task that only calls on assemble, it will only load that, not the watch, connect, etc tasks.

grayghostvisuals commented 10 years ago

@Melindrea WHOA! If you wanna set that up feel free. If you can do that on another branch off of the assemble branch I'm on now that would rly rock. :metal:

Melindrea commented 10 years ago

I'll do that. Start with refactoring the standard one and then later merge in Assemble, I assume?

grayghostvisuals commented 10 years ago

Actually it's cool. I just used it on another project. Pretty easy to integrate. Already taken care of on my local copy. Thanks again.

Melindrea commented 10 years ago

Yeah, it's really nice. =) I'll let you integrate it, then.