Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

psc-pane

Auto reloading PureScript compiler

Subscribe to updates I use psc-pane


Statistics on psc-pane

Number of watchers on Github 21
Number of open issues 4
Average time to close an issue 10 months
Main language PureScript
Average time to merge a PR 6 days
Open pull requests 1+
Closed pull requests 0+
Last commit over 2 years ago
Repo Created over 3 years ago
Repo Last Updated over 1 year ago
Size 1.52 MB
Organization / Authoranttih
Latest Releasev3.0.0
Contributors1
Page Updated
Do you use psc-pane? Leave a review!
View open issues (4)
View psc-pane activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating psc-pane for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

psc-pane

npm version

Auto reloading compiler for PureScript inspired by ghcid.

psc-pane helps you get quick feedback on your PureScript code by watching your source files for changes. It will

  1. try to first compile the file that changed with psc-ide and show the first error if any. If there are no errors it will
  2. run a full build using psc and show the first error if any. If there are no errors it will then
  3. (optionally) run your test suite.

psc-pane is designed to be run in a terminal multiplexer like tmux side-by-side with your editor, or in a normal terminal window. You can resize the terminal window and the output is reformatted on the fly to fit the new height of the window.

screencast

Installation

npm install psc-pane -g

Usage

If you have a pulp-style project directory structure you can run psc-pane with no arguments

psc-pane

This will compile your project with psc and then start listening for changes to files in src/. It will start a psc-ide-server for you in some port between 4242-4245 and compile any file you save with psc-ide. If you change a .js file then psc is used to compile the whole project.

By default psc-pane assumes you have installed your dependencies with bower and uses bower_components as the dependency path. You can specify a different directory with --dependency-path.

psc-pane --dependency-path lib

You can change the source directory (src by default) with --src-path.

psc-pane --src-path sources

For the full list of options see --help.

Single-module mode

By default psc-pane does a full rebuild of your project after psc-ide compiles the most recently changed file successfully. You can turn this off and only rebuild one module at a time with psc-ide using --norebuild (-m).

Running tests

psc-pane won't run any tests unless you use the -t (--test) flag. When -t is given the tests will be run after every successful rebuild. The default location of test source files is test, you can change it with --test-path. This path is watched for changes in addition to the src path (--src-path) when -t is given.

By default the test suite is run by calling the main function from the module Test.Main. You can change the module name with --test-main. If the test suite exits with a non-zero exit code the output from stderr (or stdout if empty) will be displayed.

Turning off colors

You can turn off colors with --nocolor.

psc-pane open issues Ask a question     (View All Issues)
  • almost 3 years Add a mode flag which does single module builds only
  • almost 3 years Force a full build until successful
  • almost 3 years Add psa style file error range feedback
  • over 3 years Add --height option
  • over 3 years Make it fit horizontally as well
psc-pane open pull requests (View All Pulls)
  • package.json: link to repository
psc-pane list of languages used
psc-pane latest release notes
v3.0.0 v3.0.0
  • BREAKING: now only works with the combined executable purs introduced in psc v0.11.x
v2.1.0 v2.1.0
  • Add flag -m (--norebuild) to only build one module at a time using psc-ide. That is, do not make a full rebuild using psc after module compiles successfully.
  • Better error reporting for failures reading Json output from psc.
v1.2.0 v1.2.0
  • Add color/no-color flag (@MichaelXavier)
More projects by anttih View all
Other projects in PureScript