In the process of creating a Desktop version of my Web app, I’d like to automate a number of tasks:
-
The folders a, b, c need to be copied from project/ to project/desktop/
-
I need to run this node.js command on a number of css files: “node lessc styles.less > styles.css”
-
I need to remove this line from my index.html file:
<link rel="stylesheet/less" href="../assets/css/styles.less"> -
I need to add this line to my index.html file:
<link rel="text/css" href="../assets/css/styles.css">
How do I write this in Mac OSX?
This can easily be achieved using a short bash script.
The “replace” command used in 3 and 4 is only available if you have MySQL installed, which I assume you do have as a web developer. 🙂