forked from matrix/element-web
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:
parent
21334cab28
commit
8a2b2daad7
|
@ -46,8 +46,8 @@
|
||||||
"gfm.css": "^1.1.1",
|
"gfm.css": "^1.1.1",
|
||||||
"highlight.js": "^9.0.0",
|
"highlight.js": "^9.0.0",
|
||||||
"linkifyjs": "^2.0.0-beta.4",
|
"linkifyjs": "^2.0.0-beta.4",
|
||||||
"matrix-js-sdk": "matrix-org/matrix-js-sdk#develop",
|
"matrix-js-sdk": "0.5.5",
|
||||||
"matrix-react-sdk": "matrix-org/matrix-react-sdk#develop",
|
"matrix-react-sdk": "0.6.4-r1",
|
||||||
"modernizr": "^3.1.0",
|
"modernizr": "^3.1.0",
|
||||||
"q": "^1.4.1",
|
"q": "^1.4.1",
|
||||||
"react": "^15.2.1",
|
"react": "^15.2.1",
|
||||||
|
|
|
@ -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');
|
||||||
|
}
|
Loading…
Reference in New Issue