karma-jasmine 1.x is the last major version that: - Works with karma 6.x (peer dep: karma: '*') - Works with jasmine-core 2.x (peer dep: jasmine-core: '*') Version 2.x+ requires jasmine-core 3.x which is incompatible with the pinned jasmine-core@2.6.4 (required for edx-ui-toolkit). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
129 lines
5.3 KiB
JSON
129 lines
5.3 KiB
JSON
{
|
|
"name": "edx",
|
|
"version": "0.1.0",
|
|
"repository": "https://github.com/openedx/edx-platform",
|
|
"scripts": {
|
|
"postinstall": "scripts/copy-node-modules.sh",
|
|
"build": "npm run webpack && npm run compile-sass",
|
|
"build-dev": "npm run webpack-dev && npm run compile-sass-dev",
|
|
"webpack": "NODE_ENV=${NODE_ENV:-production} webpack --config=${WEBPACK_CONFIG_PATH:-webpack.prod.config.js}",
|
|
"webpack-dev": "NODE_ENV=development webpack --config=webpack.dev.config.js",
|
|
"compile-sass": "scripts/compile_sass.py --env=${NODE_ENV:-production}",
|
|
"compile-sass-dev": "scripts/compile_sass.py --env=development",
|
|
"watch": "{ npm run watch-webpack& npm run watch-sass& } && sleep infinity",
|
|
"watch-webpack": "npm run webpack-dev -- --watch",
|
|
"watch-sass": "scripts/watch_sass.sh",
|
|
"test": "npm run test-jest && npm run test-karma",
|
|
"test-jest": "jest",
|
|
"test-karma": "npm run test-karma-vanilla && npm run test-karma-require && npm run test-xmodule-webpack && echo 'WARNING: Skipped broken lms-webpack and cms-webpack tests. For details, see: https://github.com/openedx/edx-platform/issues/35956'",
|
|
"test-karma-vanilla": "npm run test-cms-vanilla && npm run test-xmodule-vanilla && npm run test-common-vanilla",
|
|
"test-karma-require": "npm run test-cms-require && npm run test-common-require",
|
|
"test-karma-webpack": "npm run test-cms-webpack && npm run test-lms-webpack && npm run test-xmodule-webpack",
|
|
"test-karma-conf": "${NODE_WRAPPER:-xvfb-run --auto-servernum} node --max_old_space_size=4096 node_modules/.bin/karma start --single-run=true --capture-timeout=60000 --browsers=FirefoxNoUpdates",
|
|
"test-cms": "npm run test-cms-vanilla && npm run test-cms-require && npm run test-cms-webpack",
|
|
"test-cms-vanilla": "npm run test-karma-conf -- cms/static/karma_cms.conf.js",
|
|
"test-cms-require": "npm run test-karma-conf -- cms/static/karma_cms_squire.conf.js",
|
|
"test-cms-webpack": "npm run test-karma-conf -- cms/static/karma_cms_webpack.conf.js",
|
|
"test-lms": "npm run test-jest && npm run test-lms-webpack",
|
|
"test-lms-webpack": "npm run test-karma-conf -- lms/static/karma_lms.conf.js",
|
|
"test-xmodule": "npm run test-xmodule-vanilla && npm run test-xmodule-webpack",
|
|
"test-xmodule-vanilla": "npm run test-karma-conf -- xmodule/js/karma_xmodule.conf.js",
|
|
"test-xmodule-webpack": "npm run test-karma-conf -- xmodule/js/karma_xmodule_webpack.conf.js",
|
|
"test-common": "npm run test-common-vanilla && npm run test-common-require",
|
|
"test-common-vanilla": "npm run test-karma-conf -- common/static/karma_common.conf.js",
|
|
"test-common-require": "npm run test-karma-conf -- common/static/karma_common_requirejs.conf.js"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7",
|
|
"@babel/plugin-transform-object-assign": "^7",
|
|
"@babel/preset-env": "^7",
|
|
"@babel/preset-react": "^7",
|
|
"@edx/brand": "npm:@openedx/brand-openedx@^1",
|
|
"@edx/edx-bootstrap": "^1",
|
|
"@edx/edx-proctoring": "^4",
|
|
"@edx/frontend-component-cookie-policy-banner": "2.2.0",
|
|
"@edx/paragon": "^2",
|
|
"@testing-library/jest-dom": "^6",
|
|
"@testing-library/react": "^12",
|
|
"@testing-library/user-event": "^12",
|
|
"babel-loader": "^9",
|
|
"babel-plugin-transform-class-properties": "^6",
|
|
"babel-polyfill": "^6",
|
|
"backbone": "^1",
|
|
"backbone-associations": "^0.6",
|
|
"backbone.paginator": "^2",
|
|
"bootstrap": "4.0.0",
|
|
"camelize": "^1",
|
|
"classnames": "^2",
|
|
"css-loader": "^7",
|
|
"datatables": "^1",
|
|
"datatables.net-fixedcolumns": "^5",
|
|
"edx-ui-toolkit": "^1",
|
|
"exports-loader": "^0.6",
|
|
"file-loader": "^6",
|
|
"font-awesome": "^4",
|
|
"hls.js": "^1",
|
|
"imports-loader": "^0.8",
|
|
"jest-environment-jsdom": "^29",
|
|
"jquery": "^2",
|
|
"jquery-migrate": "^1",
|
|
"jquery.scrollto": "^2",
|
|
"js-cookie": "^3",
|
|
"moment": "^2",
|
|
"moment-timezone": "^0.5",
|
|
"node-gyp": "^11",
|
|
"popper.js": "^1",
|
|
"prop-types": "^15",
|
|
"raw-loader": "^0.5",
|
|
"react": "^16",
|
|
"react-dom": "^16",
|
|
"react-focus-lock": "^1",
|
|
"react-redux": "^5",
|
|
"react-router-dom": "^5",
|
|
"react-slick": "^0.30",
|
|
"redux": "3.7.2",
|
|
"redux-thunk": "2.2.0",
|
|
"requirejs": "^2",
|
|
"rtlcss": "^4",
|
|
"sass": "^1",
|
|
"sass-loader": "^16",
|
|
"scriptjs": "^2",
|
|
"style-loader": "^4",
|
|
"svg-inline-loader": "^0.8",
|
|
"uglify-js": "^3",
|
|
"underscore": "^1",
|
|
"underscore.string": "^3",
|
|
"webpack": "^5",
|
|
"webpack-bundle-tracker": "^3",
|
|
"webpack-merge": "^6",
|
|
"which-country": "^1"
|
|
},
|
|
"devDependencies": {
|
|
"@edx/stylelint-config-edx": "^2",
|
|
"babel-jest": "^29",
|
|
"jasmine-core": "2.6.4",
|
|
"jasmine-jquery": "git+https://git@github.com/velesin/jasmine-jquery.git#ebad463d592d3fea00c69f26ea18a930e09c7b58",
|
|
"jest": "^29",
|
|
"karma": "^6.0.0",
|
|
"karma-chrome-launcher": "^3",
|
|
"karma-coverage": "^2",
|
|
"karma-firefox-launcher": "^2",
|
|
"karma-jasmine": "^1",
|
|
"karma-jasmine-html-reporter": "^0.2",
|
|
"karma-junit-reporter": "^2",
|
|
"karma-requirejs": "^1",
|
|
"karma-sourcemap-loader": "^0.4",
|
|
"karma-spec-reporter": "^0.0",
|
|
"karma-webpack": "^5",
|
|
"plato": "^1",
|
|
"react-test-renderer": "^16",
|
|
"selenium-webdriver": "^4",
|
|
"sinon": "^19",
|
|
"squirejs": "^0.1",
|
|
"string-replace-loader": "^3",
|
|
"stylelint-formatter-pretty": "^4",
|
|
"webpack-cli": "^5"
|
|
}
|
|
}
|