Make "npm run build" include .htaccess.

Formerly it was copying static/*, and the wildcard skipped the dotfile.
This commit is contained in:
David Fifield 2019-07-27 09:42:12 -06:00
parent 905f8b78c1
commit 695554cbc5

View file

@ -30,10 +30,6 @@ var OUTFILE = 'snowflake.js';
var STATIC = 'static';
var copyStaticFiles = function() {
exec('cp ' + STATIC + '/* build/');
};
var concatJS = function(outDir, init) {
var files;
files = FILES.concat(`init-${init}.js`);
@ -70,8 +66,8 @@ task('test', 'snowflake unit tests', function() {
});
task('build', 'build the snowflake proxy', function() {
exec('mkdir -p build');
copyStaticFiles();
exec('rm -r build');
exec('cp -r ' + STATIC + '/ build/');
concatJS('build', 'badge');
console.log('Snowflake prepared.');
});