mirror of https://github.com/xwiki-labs/cryptpad
removing `bower`: migrate `require-css`
Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
parent
67b7ea28b8
commit
05b09fdc7a
|
@ -18,7 +18,6 @@
|
||||||
"tests"
|
"tests"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"require-css": "0.1.10",
|
|
||||||
"bootstrap": "^v4.0.0",
|
"bootstrap": "^v4.0.0",
|
||||||
"diff-dom": "2.1.1",
|
"diff-dom": "2.1.1",
|
||||||
"nthen": "0.1.7",
|
"nthen": "0.1.7",
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
"lesshint": "6.3.7",
|
"lesshint": "6.3.7",
|
||||||
"marked": "^1.1.0",
|
"marked": "^1.1.0",
|
||||||
"rangy": "~1.3.0",
|
"rangy": "~1.3.0",
|
||||||
|
"require-css": "0.1.10",
|
||||||
"requirejs": "2.3.5",
|
"requirejs": "2.3.5",
|
||||||
"requirejs-plugins": "^1.0.2",
|
"requirejs-plugins": "^1.0.2",
|
||||||
"scrypt-async": "1.2.0",
|
"scrypt-async": "1.2.0",
|
||||||
|
@ -3945,6 +3946,12 @@
|
||||||
"node": ">= 6"
|
"node": ">= 6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/require-css": {
|
||||||
|
"version": "0.1.10",
|
||||||
|
"resolved": "https://registry.npmjs.org/require-css/-/require-css-0.1.10.tgz",
|
||||||
|
"integrity": "sha512-v9XczgOfDKMkHdndAwuEDEasYNJPbL3aVDTM9tbRoAefjLm3kUZdt/Fg6Xi+0HJzliL21gGPWTXDV87XuOwCIQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/requirejs": {
|
"node_modules/requirejs": {
|
||||||
"version": "2.3.5",
|
"version": "2.3.5",
|
||||||
"resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.5.tgz",
|
||||||
|
@ -8229,6 +8236,12 @@
|
||||||
"uuid": "^3.3.2"
|
"uuid": "^3.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"require-css": {
|
||||||
|
"version": "0.1.10",
|
||||||
|
"resolved": "https://registry.npmjs.org/require-css/-/require-css-0.1.10.tgz",
|
||||||
|
"integrity": "sha512-v9XczgOfDKMkHdndAwuEDEasYNJPbL3aVDTM9tbRoAefjLm3kUZdt/Fg6Xi+0HJzliL21gGPWTXDV87XuOwCIQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"requirejs": {
|
"requirejs": {
|
||||||
"version": "2.3.5",
|
"version": "2.3.5",
|
||||||
"resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.5.tgz",
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
"lesshint": "6.3.7",
|
"lesshint": "6.3.7",
|
||||||
"marked": "^1.1.0",
|
"marked": "^1.1.0",
|
||||||
"rangy": "~1.3.0",
|
"rangy": "~1.3.0",
|
||||||
|
"require-css": "0.1.10",
|
||||||
"requirejs": "2.3.5",
|
"requirejs": "2.3.5",
|
||||||
"requirejs-plugins": "^1.0.2",
|
"requirejs-plugins": "^1.0.2",
|
||||||
"scrypt-async": "1.2.0",
|
"scrypt-async": "1.2.0",
|
||||||
|
|
|
@ -24,6 +24,7 @@ Fse.mkdirpSync(componentsPath);
|
||||||
"file-saver",
|
"file-saver",
|
||||||
"alertify.js",
|
"alertify.js",
|
||||||
"scrypt-async",
|
"scrypt-async",
|
||||||
|
"require-css",
|
||||||
].forEach(l => {
|
].forEach(l => {
|
||||||
const source = Path.join("node_modules", l);
|
const source = Path.join("node_modules", l);
|
||||||
const destination = Path.join(componentsPath, l);
|
const destination = Path.join(componentsPath, l);
|
||||||
|
|
|
@ -26,7 +26,7 @@ define([
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
'*': {
|
'*': {
|
||||||
'css': '/bower_components/require-css/css.js',
|
'css': '/components/require-css/css.js',
|
||||||
'less': '/common/RequireLess.js',
|
'less': '/common/RequireLess.js',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ require.config({
|
||||||
},
|
},
|
||||||
map: {
|
map: {
|
||||||
'*': {
|
'*': {
|
||||||
'css': '/bower_components/require-css/css.js',
|
'css': '/components/require-css/css.js',
|
||||||
'less': '/common/RequireLess.js',
|
'less': '/common/RequireLess.js',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue