Not sure if I'm doing something wrong but the mkdirs command is just copying everything in my root directory to my publish and intermediate folders, I'm using the basic grunt config that gets generated with h5bp init:
// the staging directory used during the process
// final build output
output = 'publish';
// filter any files matching one of the below pattern during mkdirs task
// the pattern in the .gitignore file should work too.
exclude: '.git* build/** node_modules/** grunt.js package.json *.md'.split(' '),
But the exclude option looks like it's getting ignored
Thanks for the feedback Javier. You're not doing anything wrong, it's the build script that does.
I'll update the generated gruntfile today, and the matching documentation in the wiki:
Does it make sense?
Thanks for the clarification I just tested it and it's working fine 👍
Just noticed that my 404.html file wasn't getting copied over. My .buildignore file looks like this:
However if I remove the last line then it works but my .buildignore file gets copied as well. I'm using the default h5bp file structure with the exception that I put my grunt.js and config files in a sub-directory called build
Hmm.. Interesting. I'll try to reproduce the issue locally.
I've come across some odd behaviour in a similar vein.
h5bp init (default options)
mkdir foo bar test
echo -e ".git*\n.buildignore" > .buildignore
In the above example, the test folder is omitted in both intermediate and publish folders.