-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build callback in grunt #33
Comments
no worries! Unless I'm missing something, I think you just need to define tasks for that: grunt.registerTask('foo', ['assemble:foo', 'copy:foo']);
grunt.registerTask('bar', ['assemble:bar', 'copy:bar']);
grunt.registerTask('baz', ['assemble:baz', 'copy:baz']); If this isn't what you mean, perhaps take a look at the creating tasks page on the grunt docs. hope this helps. (closing though since we try to keep issues focused on bugs and feature requests) |
Ah, I was looking for something more dynamic:
... because we may end up with 60 assemble targets, but if there isn't an option that's as dynamic, I'll look into what you're recommending. Thanks @jonschlinkert! |
Moved over from (assemble/assemble) [https://github.com/assemble/assemble]. Sorry about that, @jonschlinkert
Hello guys, I've been search high and low for reference on this but to no avail, thus my presence here.
Background
I'm running multiple assemble targets and would like to add a callback that copies a folder of assets (CSS, JS, etc) to the destination directory every time a target build is complete—preferably by referencing to a
grunt-contrib-copy
module already present.What does the grunt file look like?
I'm aware of the
build
method found on this page but I haven't been able to figure out on how to implement it within the grunt file.Thank you for taking time to read this and activating your brain cells in coming up with an answer.
The text was updated successfully, but these errors were encountered: