Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serlo/serlo-editor-moodle-plugin
https://github.com/serlo/serlo-editor-moodle-plugin
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/serlo/serlo-editor-moodle-plugin
- Owner: serlo
- Created: 2024-06-07T08:17:15.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-11-10T07:59:37.000Z (5 days ago)
- Last Synced: 2024-11-10T08:30:03.892Z (5 days ago)
- Language: JavaScript
- Size: 21.2 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serlo moodle integration
This plugin adds a serlo activity to moodle
## Development
This plugin uses the @serlo/editor-web-component npm package which need to be bundled to be used correctly by moodle.
The package.json includes a `build` script which bundles the package and runs the moodle grunt task to generate the file used by moodle.
Since the complete task takes some time you might want to use the `npx grunt watch` task in the moodle root directory.
To make this work, you have to patch the watch task to not run the eslint stage:
```js
//moodle/.grunt/tasks/javascript.js
- 189 tasks: ['amd']
+ 189 tasks: ['rollup']
```Also you need the `watchman` binary to be present in your path: See [here](https://facebook.github.io/watchman/docs/install.html) on how to get it.
> If this binary is missing grunt may mistakenly throw the "Watchman CLI is installed but failed due to permission errors" error.
then you can start `npx grunt watch` in the moodle root dir.
Afterwards start the `watch` script out of the serlo plugin dir to start esbuild in watch mode.