npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

psc-pane

v3.0.0

Published

Auto reloading PureScript compiler

Downloads

5

Readme

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.