Revert "Unpin react-sdk and js-sdk"

I messed this up and removed staticfiles.js by accident

This reverts commit 21334cab28.
This commit is contained in:
Richard van der Hoff 2016-08-15 12:13:58 +01:00
parent 21334cab28
commit 8a2b2daad7
2 changed files with 23 additions and 2 deletions

21
scripts/staticfiles.js Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env node
// copy static files from node_modules to the vector directory
//
var fs = require('fs-extra');
function exists(f) {
try {
fs.statSync(f);
return true;
} catch(e) {
return false;
}
}
const olm = 'node_modules/olm/olm.js';
if (exists(olm)) {
console.log("copy", olm, "-> vector");
fs.copySync(olm, 'vector/olm.js');
}