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

task-library

v0.274.0

Published

A collection of bash scripts to support build, test, deploy and chores associated with developing and maintaining Node apps.

Downloads

936

Readme

Task Library

A collection of bash scripts to support build, test, deploy and chores associated with developing and maintaining Node apps.

Table of Contents

Install

https://www.npmjs.com/package/task-library
npm install task-library

Usage

npx task [TASK_NAME] [OPTIONS]

Try npx task vars and npx task tasks to list variables and tasks respectively.

Overriding variable defaults

To override the default value of any variable listed by npx task vars, simply create a shell script named task-vars in the package root directory and export those variables with the desired values, e.g.

#!/bin/bash
export NODE_VERSION="20.0.0"

To obtain the default value for any variable, invoke a function of the same name, e.g.

#!/bin/bash
echo $(NODE_VERSION)

Tasks

install

Installs NPM packages based on inference (to be elaborated).

update / upgrade / latest

Updates all NPM packages to the latest version regardless of semver.

configure / config

Generates config files based on inference (to be elaborated).

test

Runs tests using inferred test runner.

test-watch

Runs tests in watch mode using inferred test runner.

cov

Runs tests with code coverage using inferred test runner.

lint

Runs lint using inferred linters.

Currently supports ESLint and Shellcheck.

fix

Runs lint with fix option using inferred linters.

start / run

Starts the application using inferred launcher.

Currently supports Nodemon (for console applications), Serve (for static websites) and Parcel (for single page apps).

build / dist

Creates a build based on inference (to be elaborated).

deploy / publish

Deploys application based on inference (to be eleborated).

Currently supports GitHub Pages, NPM packages and Serverless.

pre-commit / pre

Runs config, code-gen, lint, cov, sloc, metrics-summary, readme (to be eleborated).

Developer Notes

  • find -exec does not return exit code of exec command. Workaround: Use xargs instead.