CodeKit2 icon indicating copy to clipboard operation
CodeKit2 copied to clipboard

Import Skipped Files

Open shshaw opened this issue 11 years ago • 4 comments

I have files within a /vendor/ path containing a lot of git submodules that I want CodeKit ignore overall since there are a lot of extra files in those repositories, but I do want import some of those files in a plugins.js file. Any way to have my cake and eat it too?

shshaw avatar Jul 16 '14 17:07 shshaw

Should work just fine with the in-file statements.

Sent from my iPhone

On Jul 16, 2014, at 10:13, Shaw [email protected] wrote:

I have files within a /vendor/ path containing a lot of git submodules that I want CodeKit ignore overall since there are a lot of extra files in those repositories, but I do want import some of those files in a plugins.js file. Any way to have my cake and eat it too?

— Reply to this email directly or view it on GitHub.

bdkjones avatar Jul 16 '14 19:07 bdkjones

That's what I was doing, with an @codekit-append statement, and CodeKit didn't show any imports on the plugins.js file. Saving the file from the skipped directory I was importing and saving plugins.js didn't concatenate the file in.

shshaw avatar Jul 16 '14 21:07 shshaw

Ah, yea. Saving the IMPORTED file won't trigger a recompile of the base file because you told CodeKit to skip the file you just saved.

However, saving the base file directly will correctly import the skipped file. To get the base file to recompile when you save the imported file, you've got to have the imported file un-skipped.

bdkjones avatar Jul 17 '14 10:07 bdkjones

This issue still seems to be a problem. If I tell CodeKit to skip a folder, // @codekit-append statements still do not import the file from the skipped folder when saving the file with the // @codekit-append statement.

Here's a reduced test case: http://cl.ly/1S3H1M0H0R2D/test.zip

shshaw avatar May 29 '15 15:05 shshaw