Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shmygol/exercism-purescript
Solutions for PureScript exercises from exercism.org
https://github.com/shmygol/exercism-purescript
exercises exercism purescript
Last synced: about 1 month ago
JSON representation
Solutions for PureScript exercises from exercism.org
- Host: GitHub
- URL: https://github.com/shmygol/exercism-purescript
- Owner: shmygol
- Created: 2024-10-13T12:20:27.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-30T10:33:11.000Z (2 months ago)
- Last Synced: 2024-10-30T11:28:57.392Z (2 months ago)
- Topics: exercises, exercism, purescript
- Language: PureScript
- Homepage: https://exercism.org/profiles/shmygol/solutions
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solutions for Exercism PureScript
Solutions for PureScript exercises from [exercism.org](https://exercism.org/tracks/purescript/exercises). Also published to [my Exercism Profile](https://exercism.org/profiles/shmygol/solutions).
## Description
Repository contains PureScript exercises with solutions. All solutions share the same package.json for JavaScript dependencies (PureScript compiler and Spago), but have own Spago packages.dhall for dedicated PureScript dependencies.
## Installing
To install PureScript and Spago (shared between all the exercises):
```sh
npm install
```PureScript dependencien will be installed by Spago when needed or you can do it with:
```sh
cd hello-world
npx spago install
```### Exercism CLI
Optionally you can install and configure Eercism CLI globally to download new exercieses and publish solutions. See [official documentation](https://exercism.org/docs/using/solving-exercises/working-locally).
## NPM Scripts
If you want to run a spago command in the current exercise folder just use `npx`:
```sh
npx spago test
``````sh
npx spago repl
```You can use NPM Scripts and CLI argument `--exercise` to run commands for a specific exercise regardless of the current folder.
### `spago`
Run spago command in the folder of the provided exercise
```sh
npm run spago test --exercise="hello-world"
``````sh
npm run spago repl --exercise="hello-world"
```### `exercism:download`
Shortcut for Exercism CLI, which has to be installed and configured. The exercise is downloaded to the configured exercism workspace.
```sh
npm run exercism:download --exercise="hello-world"
```### `exercism:submit`
Submit an exercise.
```sh
npm run exercism:submit --exercise="hello-world"
```