Closed soapdog closed 9 years ago
Excellent work!
Node documentations says that fs.exists and fs.existsSync will be deprecated
I believe those are already deprecated in io.js.
Note to self:
fs.exists
/fs.existsSync
usage from Harmonic - #142Let's release on npm
this feature @UltCombo ?
@jaydson yep, sure. Go ahead with the Harmonic release while I work with @robsongajunior to release the new JS Rocks build. =]
Ok!
Nice!
Now I wonder if it wouldn't be better to place the resources
directory inside the src
dir. I guess it doesn't matter much either way.
This enhancement adds a user defined
resources
folder that is copied topublic
during build. This folder is copied after the theme's resources are copied so it can be used to overlay items as well.If there is no
resources
folder present then Harmonic displays a warning saying that no user resources were copied during build. This happens if the folder is not present or if there was an error in the copying process. Node documentations says thatfs.exists
andfs.existsSync
will be deprecated and I didn't want to use functions that will soon go away thus generating debug work for my future self.This was implemented by splitting the
copyResources()
function into two functions calledcopyThemeResources
andcopyUserResources
as mentioned in #138 (which is solved by this PR).Hope your folks like it, it makes things a lot easier for me at least.