grunt-assemble icon indicating copy to clipboard operation
grunt-assemble copied to clipboard

support for assemble 0.7.x

Open grouchal opened this issue 9 years ago • 9 comments

Any idea when this is coming

grouchal avatar Jan 13 '16 08:01 grouchal

@grouchal Thanks for the issue! If you're reporting a bug, please be sure to include:

  • The version of assemble you are using.
  • Your assemblefile.js (This can be in a gist)
  • The commandline output. (Screenshot or gist is fine)
  • What you expected to happen instead.

assemblebot avatar Jan 13 '16 08:01 assemblebot

+1 on this.

I use Assemble on both Grunt and Gulp projects, and would like to keep them in sync if possible (having already moved onto 0.7 by using Assemble direct with Gulp).

Any idea when this is likely to be updated?

ashleynolan avatar Feb 04 '16 20:02 ashleynolan

Any idea when this is likely to be updated?

already started work on it. Not sure how long it will take, I'll let you know as soon as I or @doowb make more progress

jonschlinkert avatar Feb 04 '16 22:02 jonschlinkert

Great – thanks for the update :+1:

ashleynolan avatar Feb 05 '16 07:02 ashleynolan

@jonschlinkert Any news here? Would love to see an update for Grunt.

witrin avatar Apr 25 '16 19:04 witrin

https://github.com/assemble/grunt-assemble/pull/40

jonschlinkert avatar Apr 25 '16 19:04 jonschlinkert

@jonschlinkert Thanks! I've seen it already. When will you release it?

witrin avatar Apr 26 '16 00:04 witrin

@jonschlinkert I've used your latest develop (https://codeload.github.com/assemble/grunt-assemble/tar.gz/a824b27eba5f00797452cf03854911e50e457694) but renderFile in https://github.com/assemble/grunt-assemble/blob/refactor/tasks/assemble.js#L84 returns an DestroyableTransform with writecb equals null. The exception is obviously Fatal error: no writecb in Transform class. Any idea what's the problem here?

Also the interactive question "engine-handlebars" must be installed. Want to do that before continuing? when starting this the first time is problematic if this is executed by a build system. Is it possible to include this in the package.json?

witrin avatar Apr 27 '16 14:04 witrin

Is it possible to include this in the package.json?

Since assemble v0.6.0 and up can run any engine, it wouldn't make sense to add any particular engine as a dep. We should probably just remove the prompt and throw an error.

Fwiw, I personally thought the prompt was a nice experience, it worked well for me - we also do something similar with gulp and generate. But I can see how it might be hard to make it work well consistently.

In any case it's pretty easy to add engines:

// where `hbs` is the file extension to match
app.engine('hbs', require('engine-handlebars'));

jonschlinkert avatar Apr 28 '16 00:04 jonschlinkert