mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-15 18:51:44 +02:00
I messed this up and removed staticfiles.js by accident This reverts commit 21334cab2825bb6306507d4341a3df4a7a81d4f9.
22 lines
385 B
JavaScript
Executable File
22 lines
385 B
JavaScript
Executable File
#!/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');
|
|
}
|