barista icon indicating copy to clipboard operation
barista copied to clipboard

Copy .js files "as is" to the public/javascript dir

Open snitko opened this issue 13 years ago • 6 comments

Hi, would be nice to have an option of just copying all files that have a .js extension to the destination folder. For instance, I may have "app/scripts/lib" dir where I hold js libs such as jQuery. The reason I don't want to put them into the public/javascripts dir is because I believe the whole dir should be added to gitignore. Basically, the behavior I'm talking about is what SASS and LESS used to do for .css files.

Either I couldn't find how or it's currently not possible.

snitko avatar Mar 28 '11 11:03 snitko

I'm also interested in hearing how to achieve this with barista

sha1dy avatar Mar 31 '11 09:03 sha1dy

I'm working on this now as part of the 1.1 release - I'll update this once it's implemented.

Sutto avatar Apr 18 '11 06:04 Sutto

Could you guys take a looker at the current master? You should now be able to simply drop js files along side your coffeescript files and barista will automatically copy them for you.

Sutto avatar Apr 18 '11 07:04 Sutto

I tried using the master (gem "barista", :git => "git://github.com/Sutto/barista.git"), here's what I get when I load the website in my browser:

uninitialized constant CoffeeScript::Engines

snitko avatar Apr 18 '11 12:04 snitko

Try again - I think I've fixed this (temporarily at least) on head.

Sutto avatar Apr 27 '11 01:04 Sutto

Well, there are no more errors, but .js files are not copied to the respective dirs.

snitko avatar Apr 29 '11 01:04 snitko