Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwalters512/pl-question-migration
https://github.com/nwalters512/pl-question-migration
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nwalters512/pl-question-migration
- Owner: nwalters512
- Created: 2018-05-31T19:40:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-30T11:37:41.000Z (over 3 years ago)
- Last Synced: 2024-10-10T03:10:51.968Z (27 days ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pl-question-migration
A utility for migrating PrairieLearn questions. This will replace self-closing
tags with proper open/close tags, and will replace any element names with
underscores with their dashed name equivalent. Example:```
```
will become:
```
```
If you've decided to fork one of PrairieLearn's elements and it has the same name
as one of the existing elements, then it will be skipped when doing tag
conversions. For example, if you have an `elements/pl_question_panel` element
in your course, then `pl_question_panel` will not be converted to `pl-question-panel`.### Usage
Clone this repository and run `npm install` to install all dependencies.
To convert an entire course:
```sh
node index.js --course ~/path/to/your/course
```To convert just a single question:
```sh
node index.js --question ~/path/to/your/course/questions/question
```