gulp-include icon indicating copy to clipboard operation
gulp-include copied to clipboard

codekit prepend and append

Open minimit opened this issue 10 years ago • 5 comments

Would be great if this could work with the codekit includes for compatibility! (https://incident57.com/codekit/help.html#javascript)

But it works a bit different, it can only append or prepend to the file and only once

// @codekit-prepend "someFile.js";
// @codekit-prepend "someFile.js", "../someOtherFile.js", "../scripts/thirdFile.js";

The're also used on many others software like codekit that support the same syntax (http://alphapixels.com/prepros/docs/js-concat-minify.html)

minimit avatar Oct 22 '14 19:10 minimit

+1 for this

andrewcroce avatar Jun 17 '15 14:06 andrewcroce

I think this slightly out of the scope of this plugin, which is to include at specified locations. There are separate gulp plugins for prepending and appending.

Might be adding //=prepend path/to/file.txt, and //=append path/to/file.txt to the nice-to-have list.

wiledal avatar Jun 29 '15 14:06 wiledal

I can see what you mean. I think the suggestion was more for codekit syntax compatibility, and less about the inclusion location. I have recently gotten in the habit of writing both // @codekit-prepend and //= require lines, duplicating my includes for each one. One just ignores the other, so it seems to be working fine.

andrewcroce avatar Jul 02 '15 14:07 andrewcroce

I agree. To have the syntax used by Codekit and Prepros whould be amazing for work on teams.

robsonsobral avatar Dec 13 '16 15:12 robsonsobral

This is a nice to have that I think we can test for.

I realize this is an old issue for some, but if there is anyone who still wants this feature let us know. As mentioned in the proposed pull request (https://github.com/wiledal/gulp-include/pull/31), we need tests created to handle the use cases that come with this feature and then we can move forward.

KenEucker avatar Apr 06 '19 04:04 KenEucker