Skip to content

Commit 4527449

Browse files
committed
feat: Syllabus page for learner MFE
1 parent 0faaa68 commit 4527449

File tree

10 files changed

+20334
-0
lines changed

10 files changed

+20334
-0
lines changed

LICENSE

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.

README.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
frontend-slot-syllabus-tab
2+
##########################
3+
4+
Purpose
5+
*******
6+
7+
This repo contains slots that add a Syllabus tab to the learning MFE.
8+
9+
Getting Started
10+
***************
11+
12+
In ``frontend-app-learning`` create a file called ``env.config.jsx`` with the
13+
following contents:
14+
15+
```javascript
16+
import { slotConfig } from '@open-craft/frontend-slot-syllabus-tab';
17+
18+
19+
const config = {
20+
pluginSlots: {
21+
...slotConfig,
22+
},
23+
};
24+
25+
export default config;
26+
```
27+
28+
Install this repo as:
29+
30+
```bash
31+
npm install --no-save https://github.com/open-craft/frontend-slot-syllabus-tab.git
32+
```

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const { createConfig } = require('@openedx/frontend-build');
2+
3+
module.exports = createConfig('babel-preserve-modules');

codecov.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: auto
6+
threshold: 0%
7+
patch:
8+
default:
9+
target: auto
10+
threshold: 0%

jest.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const { createConfig } = require('@openedx/frontend-build');
2+
3+
module.exports = createConfig('jest', {
4+
// setupFilesAfterEnv is used after the jest environment has been loaded. In general this is what you want.
5+
// If you want to add config BEFORE jest loads, use setupFiles instead.
6+
coveragePathIgnorePatterns: [
7+
'src/setupTest.js',
8+
'src/i18n',
9+
],
10+
});

0 commit comments

Comments
 (0)