2015-11-24 16:03:00 +00:00
{
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"name" : "codemirror" ,
2017-08-01 13:45:07 +00:00
"private" : true ,
2017-07-18 18:13:46 +00:00
"scripts" : {
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"build" : "rollup -c" ,
2024-03-13 04:24:53 +00:00
"test" : "npm run test:lint && npm run test:unit && npm run check-built-assets" ,
2023-09-19 17:59:29 +00:00
"test:lint" : "npm run test:lint:styles && npm run test:lint:js && npm run test:lint:i18n" ,
"test:lint:js" : "eslint --cache ." ,
"test:lint:styles" : "stylelint \"resources/**/*.less\"" ,
"test:lint:i18n" : "banana-checker i18n/" ,
"test:unit" : "jest" ,
2024-08-09 06:04:19 +00:00
"check-built-assets" : "{ git status resources/lib/ | grep \"nothing to commit, working tree clean\"; } && { echo 'CHECKING BUILD SOURCES ARE COMMITTED' && npm run build && git status resources/lib/ | grep \"nothing to commit, working tree clean\" || { npm run node-debug; false; }; }" ,
2023-09-19 17:59:29 +00:00
"node-debug" : "node -v && npm -v && echo 'ERROR: Please ensure that production assets have been built with `npm run build` and commited, and that you are using the correct version of Node/NPM.'" ,
2024-03-19 03:10:11 +00:00
"selenium-test" : "wdio tests/selenium/wdio.conf.js" ,
"doc" : "jsdoc -c jsdoc.json"
2017-07-18 18:13:46 +00:00
} ,
2023-09-19 17:59:29 +00:00
"engines" : {
2024-04-16 18:00:43 +00:00
"node" : "18.20.2"
2023-09-19 17:59:29 +00:00
} ,
2017-07-18 18:13:46 +00:00
"devDependencies" : {
2023-09-19 17:59:29 +00:00
"@codemirror/commands" : "6.2.5" ,
2023-12-06 05:52:51 +00:00
"@codemirror/language" : "6.9.3" ,
2023-09-19 17:59:29 +00:00
"@codemirror/search" : "6.5.4" ,
"@codemirror/state" : "6.2.1" ,
2024-02-21 07:29:53 +00:00
"@codemirror/view" : "6.22.2" ,
2023-12-06 18:49:40 +00:00
"@lezer/highlight" : "1.2.0" ,
2024-03-13 04:24:53 +00:00
"@rollup/plugin-node-resolve" : "15.2.3" ,
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"@wdio/cli" : "7.36.0" ,
"@wdio/junit-reporter" : "7.35.0" ,
"@wdio/local-runner" : "7.36.0" ,
"@wdio/mocha-framework" : "7.33.0" ,
"@wdio/spec-reporter" : "7.33.0" ,
2023-09-19 17:59:29 +00:00
"@wikimedia/mw-node-qunit" : "7.2.0" ,
2020-12-18 16:32:22 +00:00
"dotenv" : "8.2.0" ,
2024-06-14 11:51:53 +00:00
"eslint-config-wikimedia" : "0.28.2" ,
2024-05-18 01:15:30 +00:00
"grunt-banana-checker" : "0.13.0" ,
2023-09-19 17:59:29 +00:00
"jest" : "29.7.0" ,
"jest-environment-jsdom" : "29.7.0" ,
"jquery" : "3.7.1" ,
2024-06-26 11:09:52 +00:00
"jsdoc" : "4.0.3" ,
"jsdoc-wmf-theme" : "1.1.0" ,
2024-03-13 04:24:53 +00:00
"rollup" : "4.13.0" ,
2024-08-10 05:03:19 +00:00
"stylelint-config-wikimedia" : "0.17.2" ,
Isolate build step to CM6 library and restructure files to work with RL
CodeMirror 6 requires the use of NPM, but we can still bundle all CM
packages into one file, and then everything else (i.e. our code) is
managed by ResourceLoader as per usual. This makes contribution
considerably easier as we no longer need a build step for each change.
CM5 files are now under resources/legacy, and the CM6 files are moved to
the root of the resources/ directory. Only one file,
codemirror.bundle.js, is managed by Rollup, while everything else is RL.
The Rollup output for now is put under resources/lib/ alongside the CM5
upstream files.
This patch is *mostly* renames of files, along with changing ECMAScript
Module (ESM) syntax into the CommonJS style that ResourceLoader prefers.
We also remove more modern JS syntax (i.e. private class methods) that
we were able to use before because we had a build step with Babel.
This patch should effectively make no user-facing changes, or to the
ResourceLoader modules we offer in Extension:CodeMirror.
Finally, bump version in extension.json to 6, to match the upstream lib,
and add Bhsd as an author :-)
Bug: T368053
Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
2024-06-21 03:21:09 +00:00
"wdio-mediawiki" : "2.5.0"
2024-03-13 04:24:53 +00:00
}
2015-11-24 16:03:00 +00:00
}