Closed loup-brun closed 8 years ago
@loup-brun Thanks for the issue! If you're reporting a bug, please be sure to include:
assemble
you are using.assemble-contrib-permalinks
has been deprecated and renamed to grunt-assemble-permalinks
. You should use that if you're using grunt-assemble
.
BTW... if it's for this project, you should update to grunt-assemble
instead of assemble
and filter out grunt-assemble-*
modules in load-grunt-tasks
so they aren't loaded into grunt
.
Oh, my fault! Wrong package...
In fact, it's for a different project (the one you pointed out works right now), but I will make sure to follow your advice ;) In fact, what do you mean by filtering out grunt-assemble-*
modules?
Thanks!
By default load-grunt-tasks
will attempt to load the tasks from any module starting with grunt-
, so you'll need to exclude grunt-assemble-*
.
require('load-grunt-tasks')(grunt, { pattern: ['grunt-*', '!grunt-assemble-*'] });
Why exclude ´grunt-assemble´? I'm missing something here...
It's a pattern: grunt-assemble-*
. Notice the dash star
at the end.
You can just exclude this plugin explicitly: '!grunt-assemble-permalinks'
.
This plugin is not a grunt plugin and there are no tasks, so if load-grunt-tasks
finds it (because it's name matches the pattern grunt-*
), it'll attempt to register it with grunt.loadNpmTasks('grunt-assemble-permalinks')
and you'll get an error from grunt
.
Ooh right, sorry — I misread and thought grunt-assemble should not be loaded as a grunt task (which made little sense to me). But the plugins are not grunt tasks, so they should be excluded. Got it!
Hi,
I was installing assemble for a new project today, but got the following error from npm:
Could you update the permalinks plugin to be up-to-date with assemble?
Thanks!