removing `bower`: migrate `codemirror`

Signed-off-by: Pamplemousse <git@xaviermaso.com>
This commit is contained in:
Pamplemousse 2023-01-07 08:16:09 +01:00
parent f012d692de
commit fad1025f45
9 changed files with 26 additions and 12 deletions

View File

@ -19,7 +19,6 @@
], ],
"dependencies": { "dependencies": {
"components-font-awesome": "^4.6.3", "components-font-awesome": "^4.6.3",
"codemirror": "^5.19.0",
"requirejs": "2.3.5", "requirejs": "2.3.5",
"marked": "1.1.0", "marked": "1.1.0",
"rangy": "rangy-release#~1.3.0", "rangy": "rangy-release#~1.3.0",

13
package-lock.json generated
View File

@ -28,6 +28,7 @@
}, },
"devDependencies": { "devDependencies": {
"ckeditor": "^4.12.1", "ckeditor": "^4.12.1",
"codemirror": "^5.19.0",
"jquery": "3.6.0", "jquery": "3.6.0",
"jshint": "^2.13.4", "jshint": "^2.13.4",
"less": "3.7.1", "less": "3.7.1",
@ -1014,6 +1015,12 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/codemirror": {
"version": "5.65.11",
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.11.tgz",
"integrity": "sha512-Gp62g2eKSCHYt10axmGhKq3WoJSvVpvhXmowNq7pZdRVowwtvBR/hi2LSP5srtctKkRT33T6/n8Kv1UGp7JW4A==",
"dev": true
},
"node_modules/collection-visit": { "node_modules/collection-visit": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
@ -5498,6 +5505,12 @@
} }
} }
}, },
"codemirror": {
"version": "5.65.11",
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.65.11.tgz",
"integrity": "sha512-Gp62g2eKSCHYt10axmGhKq3WoJSvVpvhXmowNq7pZdRVowwtvBR/hi2LSP5srtctKkRT33T6/n8Kv1UGp7JW4A==",
"dev": true
},
"collection-visit": { "collection-visit": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",

View File

@ -31,6 +31,7 @@
}, },
"devDependencies": { "devDependencies": {
"ckeditor": "^4.12.1", "ckeditor": "^4.12.1",
"codemirror": "^5.19.0",
"jquery": "3.6.0", "jquery": "3.6.0",
"jshint": "^2.13.4", "jshint": "^2.13.4",
"less": "3.7.1", "less": "3.7.1",

View File

@ -9,6 +9,7 @@ Fse.mkdirpSync(componentsPath);
"jquery", "jquery",
"tweetnacl", "tweetnacl",
"ckeditor", "ckeditor",
"codemirror",
].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);

View File

@ -14,7 +14,7 @@ define([
"mermaid": "/lib/mermaid/mermaid.min", "mermaid": "/lib/mermaid/mermaid.min",
// json.sortify same // json.sortify same
"json.sortify": "/bower_components/json.sortify/dist/JSON.sortify", "json.sortify": "/bower_components/json.sortify/dist/JSON.sortify",
cm: '/bower_components/codemirror', cm: '/components/codemirror',
'tui-code-snippet': '/lib/calendar/tui-code-snippet.min', 'tui-code-snippet': '/lib/calendar/tui-code-snippet.min',
'tui-date-picker': '/lib/calendar/date-picker', 'tui-date-picker': '/lib/calendar/date-picker',
'netflux-client': '/bower_components/netflux-websocket/netflux-client', 'netflux-client': '/bower_components/netflux-websocket/netflux-client',

View File

@ -38,9 +38,9 @@ define([
'/bower_components/file-saver/FileSaver.min.js', '/bower_components/file-saver/FileSaver.min.js',
'css!/bower_components/codemirror/lib/codemirror.css', 'css!/components/codemirror/lib/codemirror.css',
'css!/bower_components/codemirror/addon/dialog/dialog.css', 'css!/components/codemirror/addon/dialog/dialog.css',
'css!/bower_components/codemirror/addon/fold/foldgutter.css', 'css!/components/codemirror/addon/fold/foldgutter.css',
'css!/lib/datepicker/flatpickr.min.css', 'css!/lib/datepicker/flatpickr.min.css',
'css!/bower_components/components-font-awesome/css/font-awesome.min.css', 'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
'less!/form/app-form.less', 'less!/form/app-form.less',

View File

@ -28,9 +28,9 @@ define([
'cm/addon/search/search', 'cm/addon/search/search',
'cm/addon/search/match-highlighter', 'cm/addon/search/match-highlighter',
'css!/bower_components/codemirror/lib/codemirror.css', 'css!/components/codemirror/lib/codemirror.css',
'css!/bower_components/codemirror/addon/dialog/dialog.css', 'css!/components/codemirror/addon/dialog/dialog.css',
'css!/bower_components/codemirror/addon/fold/foldgutter.css', 'css!/components/codemirror/addon/fold/foldgutter.css',
'less!/kanban/app-kanban.less' 'less!/kanban/app-kanban.less'
], function ( ], function (
$, $,

View File

@ -21,9 +21,9 @@ define([
'cm/mode/markdown/markdown', 'cm/mode/markdown/markdown',
'css!/bower_components/codemirror/lib/codemirror.css', 'css!/components/codemirror/lib/codemirror.css',
'css!/bower_components/codemirror/addon/dialog/dialog.css', 'css!/components/codemirror/addon/dialog/dialog.css',
'css!/bower_components/codemirror/addon/fold/foldgutter.css', 'css!/components/codemirror/addon/fold/foldgutter.css',
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css', 'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
'css!/bower_components/components-font-awesome/css/font-awesome.min.css', 'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
'less!/profile/app-profile.less', 'less!/profile/app-profile.less',

View File

@ -16,7 +16,7 @@ require.config({
"jquery": "/components/jquery/dist/jquery.min", "jquery": "/components/jquery/dist/jquery.min",
// json.sortify same // json.sortify same
"json.sortify": "/bower_components/json.sortify/dist/JSON.sortify", "json.sortify": "/bower_components/json.sortify/dist/JSON.sortify",
cm: '/bower_components/codemirror' cm: '/components/codemirror'
}, },
map: { map: {
'*': { '*': {