[tor-commits] [snowflake/master] Make "npm run build" include .htaccess.

dcf at torproject.org dcf at torproject.org
Sat Jul 27 15:43:01 UTC 2019


commit 695554cbc5fc2af18fd978c15f38706b42b9d842
Author: David Fifield <david at bamsoftware.com>
Date:   Sat Jul 27 09:42:12 2019 -0600

    Make "npm run build" include .htaccess.
    
    Formerly it was copying static/*, and the wildcard skipped the dotfile.
---
 proxy/make.js | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/proxy/make.js b/proxy/make.js
index b614864..5d6e013 100755
--- a/proxy/make.js
+++ b/proxy/make.js
@@ -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.');
 });



More information about the tor-commits mailing list