mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
22 lines
385 B
JavaScript
22 lines
385 B
JavaScript
|
#!/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');
|
||
|
}
|