I am looking for a solution to automate my project workflow a bit.
Let’s say I have the following folder structure:
project
—- less
——– project.less
—- css
——– project.min.css
—- js
——– project.js
——– project.min.js
—- index.html
Are there any tools (Mac) out there so I can manage this project so that:
- project.js is used while building the project but only project.min.js gets deployed
- again, project.less is used while building the project but only project.min.css gets deployed
Or do I manually need to change paths and minify files?
You could probably write something using Capistrano, which while Rails focussed can be used to deploy anything. I have used it for PHP projects, for example.
Another option would be to base your project off the HTML5 boiler plate (which uses ant) as this will build/concatenate stuff for you and could be extended to deploy just what you need.
I think I would use some local scripts and Capistrano.