Command line tool used to parse content written in markdown for our LMS at @Laboratoria (curricula-js, curricula-ux, ...).
You can install curriculum-parser
globally using npm
like this:
npm i -g Laboratoria/curriculum-parser
If you get a permission error please try using sudo
(you may need admin
permissions depending on your node installation).
# using `sudo` (only if previous step failed)
sudo npm i -g Laboratoria/curriculum-parser
Alternatively you can install using a local clone.
# clone from your own fork
git clone [email protected]:<your-username>/curriculum-parser.git
cd curriculum-parser
npm install
npm link
If the above command fails, try using sudo
:
sudo npm link
If you installed globally using npm
you can simply re-install like so:
npm i -g Laboratoria/curriculum-parser
If you chose to install using a local clone, you can update your clone to upstream master:
# go into local copy of repo
cd curriculum-parser
# if not yet added a reference to upstream remote we add it
git remote add upstream [email protected]:Laboratoria/curriculum-parser.git
# fetch changes and merge upstream/master into local master
git fetch upstream
git merge upstream/master
# you may also want to push changes to your fork
git push origin master
After installing globally (or linking with npm link
) you should have the
curriculum-parser
command available in your PATH
.
Usage: curriculum-parser [command] [options]
Commands:
help
topic <dir> --repo --version --locale --track [--suffix]
project <dir> --repo --version --locale --track --rubric
Global options:
-h, --help Show help
-V Show version
curriculum-parser topic topics/babel \
--repo Laboratoria/curricula-js \
--version 2.2.0 \
--locale es-ES \
--track js \
> "build/topics/${topic}.json"
curriculum-parser project projects/01-cipher \
--repo Laboratoria/curricula-js \
--version 2.2.0 \
--locale es-ES \
--track js \
--rubric 2 \
> "build/projects/01-cipher.json"
curriculum-parser topic 00-topics/00-intro-ux \
--repo Laboratoria/curricula-ux \
--version 1.0.0 \
--track ux \
--locale es-ES
curriculum-parser topic . \
--repo some-github-user/some-github-repo \
--path . \
--version 1.0.0 \
--track business \
--locale es-ES