Skip to content

Commit 3c661e1

Browse files
Convert "Pages & Resources" page to a plugin system (#638)
* feat: Make "Pages & Resources" course apps into plugins * feat: move ora_settings * feat: move proctoring * feat: move progress * feat: move teams * feat: move wiki * feat: move Xpert settings * fix: add webpack.prod.config.js * fix: clean up unused parts of package.json files * feat: Add an error message when displaying a Course App Plugin fails * chore: fix various eslint warnings * chore: fix jest tests * fix: error preventing "npm ci" from working * feat: better tests for <SettingsComponent> * chore: move xpert_unit_summary into same dir as other plugins * fix: eslint-import-resolver-webpack is a dev dependency * chore: move learning_assistant to be a plugin too * feat: for compatibility, install 2U plugins by default * fix: bug with learning_assistant package.json
1 parent 49fce46 commit 3c661e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+909
-253
lines changed

.eslintrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const path = require('path');
12
// eslint-disable-next-line import/no-extraneous-dependencies
23
const { createConfig } = require('@openedx/frontend-build');
34

@@ -13,5 +14,21 @@ module.exports = createConfig(
1314
indent: ['error', 2],
1415
'no-restricted-exports': 'off',
1516
},
17+
settings: {
18+
// Import URLs should be resolved using aliases
19+
'import/resolver': {
20+
webpack: {
21+
config: path.resolve(__dirname, 'webpack.dev.config.js'),
22+
},
23+
},
24+
},
25+
overrides: [
26+
{
27+
files: ['plugins/**/*.test.jsx'],
28+
rules: {
29+
'import/no-extraneous-dependencies': 'off',
30+
},
31+
},
32+
],
1633
},
1734
);

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = createConfig('jest', {
1111
],
1212
moduleNameMapper: {
1313
'^lodash-es$': 'lodash',
14+
'^CourseAuthoring/(.*)$': '<rootDir>/src/$1',
1415
},
1516
modulePathIgnorePatterns: [
1617
'/src/pages-and-resources/utils.test.jsx',

0 commit comments

Comments
 (0)