mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Make "npm run build" include .htaccess.
Formerly it was copying static/*, and the wildcard skipped the dotfile.
This commit is contained in:
parent
905f8b78c1
commit
695554cbc5
1 changed files with 2 additions and 6 deletions
|
@ -30,10 +30,6 @@ var OUTFILE = 'snowflake.js';
|
||||||
|
|
||||||
var STATIC = 'static';
|
var STATIC = 'static';
|
||||||
|
|
||||||
var copyStaticFiles = function() {
|
|
||||||
exec('cp ' + STATIC + '/* build/');
|
|
||||||
};
|
|
||||||
|
|
||||||
var concatJS = function(outDir, init) {
|
var concatJS = function(outDir, init) {
|
||||||
var files;
|
var files;
|
||||||
files = FILES.concat(`init-${init}.js`);
|
files = FILES.concat(`init-${init}.js`);
|
||||||
|
@ -70,8 +66,8 @@ task('test', 'snowflake unit tests', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
task('build', 'build the snowflake proxy', function() {
|
task('build', 'build the snowflake proxy', function() {
|
||||||
exec('mkdir -p build');
|
exec('rm -r build');
|
||||||
copyStaticFiles();
|
exec('cp -r ' + STATIC + '/ build/');
|
||||||
concatJS('build', 'badge');
|
concatJS('build', 'badge');
|
||||||
console.log('Snowflake prepared.');
|
console.log('Snowflake prepared.');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue