Skip to content

Commit

Permalink
feat: convert this library to be "buildless"
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Aug 2, 2024
1 parent 5ff22c1 commit 77c0d1b
Show file tree
Hide file tree
Showing 15 changed files with 414 additions and 2,154 deletions.
2 changes: 0 additions & 2 deletions .env.development

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,4 @@ const config = createConfig('eslint', {
},
});

config.settings = {
'import/resolver': {
alias: {
map: [
['editors', './src/editors'],
],
},
node: {
paths: ['editors', 'node_modules'],
extensions: ['.js', '.jsx'],
},
},
};

module.exports = config;
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"path": "@semantic-release/github",
"assets": {
"path": "dist/*"
"path": "src/*"
}
}
],
Expand All @@ -18,7 +18,7 @@
{
"path": "@semantic-release/github",
"assets": {
"path": "dist/*"
"path": "src/*"
}
}
],
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,19 @@ It will also configure the editor to be viewable in the gallery view. Adding the
- To make this easier, we provide example files for `jest.config.js` and `setupTest.js` that are known to work.
You can find them in the example/ folder.

## Installing into Course Authoring MFE in dev mode

This is tricky to do correctly, but something like this should work, allowing
you to edit this code and see it reflected immediately in the MFE. Run these
commands, starting from the course authoring MFE's working directory:

```
npm install
rm -rf node_modules/@edx/frontend-lib-content-components && ln -s "$(realpath ../frontend-lib-content-components)" node_modules/@edx/frontend-lib-content-components
cd ../frontend-lib-content-components
rm -rf node_modules && ln -s ../frontend-app-course-authoring/node_modules node_modules
```

## License

The code in this repository is licensed under the AGPLv3 unless otherwise
Expand Down
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

42 changes: 0 additions & 42 deletions example/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions example/index.scss

This file was deleted.

30 changes: 0 additions & 30 deletions example/jest.config.example.js

This file was deleted.

51 changes: 0 additions & 51 deletions example/setupTest.example.js

This file was deleted.

Loading

0 comments on commit 77c0d1b

Please sign in to comment.