https://exercism.org/tracks/purescript
- Uses local
spagoandpurescriptlibraries. - Prevents the downloading of equal packages in every exercise folder.
- Requirements:
exercism-clihttps://exercism.org/cli-walkthrough. - Install npm dependencies
npm i - Add an exercise with
npm run addex <exercise>(for example,pangram) - Go in the exercise folder
cd exercises/<exercise> - Run test
npm test
setup-dirs- creates./.spagoand./outputfolderssetup-link- links<exercism-workspace>/purescriptto./exercises
addex <exercise>consists of other twonpmscripts:ex-download <exercise>- downloads the exercise intoexericsm workspacefolder (in this case,<exercism-workspace>/purescript/<exercise>)ex-link <exercise>- links./exercises/<exercise>/{.spago,output}to./.spagoand./outputfolders.
vscode-workspacecreates (if not exists) vscode workspace file in./.vscode/with./exercises/*sub-folders, updatessettings.purescript.pursExeto./node_modules/.bin/purs.
- open the
.folder
Typical folders structure
.
├── exercism-workspace
│ └── purescript (1)
| └── pangram
└── exercism-purescript-setup
├── .spago (2)
├── output (3)
├── node_modules
└── exercises (-> 1)
└── pangram
├── .exercism
├── .spago (-> 2)
├── output (-> 3)
├── src
└── test