All Projects → kentcdodds → Nps Utils

kentcdodds / Nps Utils

Licence: mit
Utilities for http://npm.im/nps (npm-package-scripts)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nps Utils

linux-server-administration-scripts
Simple bash administration scripts for Linux to make your life easier.
Stars: ✭ 47 (-43.37%)
Mutual labels:  utilities, scripts
Gitlab Cli
Create a merge request from command line in gitlab
Stars: ✭ 224 (+169.88%)
Mutual labels:  command-line, utilities
Cz Cli
The commitizen command line utility. #BlackLivesMatter
Stars: ✭ 12,671 (+15166.27%)
Mutual labels:  command-line, utilities
.scripts
~/.scripts - Ready-to-Eat Command Line Scripts.
Stars: ✭ 12 (-85.54%)
Mutual labels:  scripts, command-line
Tsv Utils
eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
Stars: ✭ 1,215 (+1363.86%)
Mutual labels:  command-line
Scritch
A small CLI to help you write sharable scripts for your team
Stars: ✭ 74 (-10.84%)
Mutual labels:  scripts
As3 Universal Analytics
Google Universal Analytics for AS3
Stars: ✭ 73 (-12.05%)
Mutual labels:  command-line
Github Files Fetcher
Download a specific folder or file from a GitHub repo through command line
Stars: ✭ 73 (-12.05%)
Mutual labels:  command-line
Sampler
Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
Stars: ✭ 9,203 (+10987.95%)
Mutual labels:  command-line
Sqlite3 To Mysql
Transfer data from SQLite to MySQL
Stars: ✭ 79 (-4.82%)
Mutual labels:  command-line
Pilgo
Configuration-based dotfiles manager
Stars: ✭ 78 (-6.02%)
Mutual labels:  command-line
Useful Tools
A list of useful tools and programs for developers, DevOps and SysAdmins
Stars: ✭ 74 (-10.84%)
Mutual labels:  utilities
Alfred Cheat
Manage your self-defined cheat sheets & knowledge base in Alfred
Stars: ✭ 79 (-4.82%)
Mutual labels:  command-line
Awesome Vuetify
🎉 The best resources related to Vuetify
Stars: ✭ 1,189 (+1332.53%)
Mutual labels:  utilities
Bartlett
A simple Jenkins command line client to serve your needs.
Stars: ✭ 81 (-2.41%)
Mutual labels:  command-line
Nexmo Cli
Nexmo CLI (Command Line Interface)
Stars: ✭ 73 (-12.05%)
Mutual labels:  command-line
Oh
A new Unix shell.
Stars: ✭ 1,206 (+1353.01%)
Mutual labels:  command-line
Awesome Terminals
Terminal Emulators
Stars: ✭ 80 (-3.61%)
Mutual labels:  command-line
Totp Cli
A cli-based pass-backed TOTP app
Stars: ✭ 76 (-8.43%)
Mutual labels:  command-line
Ibcolortool
List all colors in Storyboards and XIB files
Stars: ✭ 76 (-8.43%)
Mutual labels:  command-line

nps-utils

Utilities for nps (npm-package-scripts)

Build Status Code Coverage Dependencies version downloads MIT License

All Contributors PRs Welcome Donate Code of Conduct Roadmap Examples

Watch on GitHub Star on GitHub Tweet

Sponsor

The problem

nps is a great package to empower your scripts and there are some common things you wind up doing to keep your package-scripts.js file clean, useful, and maintainable. So you wind up duplicating utility functions across projects.

This solution

This has several utility functions you'll often want when using nps.

Check out what the concurrent and runInNewWindow methods can do:

concurrent gif

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev nps-utils

Usage

You'll most likely use this in your package-scripts.js file:

const npsUtils = require('nps-utils')

module.exports = {
  scripts: {
    validate: npsUtils.concurrent.nps('lint', 'build', 'test --coverage'),
    lint: 'eslint .',
    build: 'webpack --env.production',
    test: 'jest'
  }
}

Available methods:

API docs can be found here

nps also exports common-tags as commonTags which can be really helpful for long scripts or descriptions.

Or, see the JSDoc right in the source code 😎

Inspiration

This package was inspired by the removal of --parallel from p-s here.

Other Solutions

I am unaware of other solutions, but if you come across any, please add a PR to list them here!

Contributors

Thanks goes to these people (emoji key):


Kent C. Dodds

💻 📖 🚇 ⚠️

Huy Nguyen

📖 🚇

Keith Gunn

🐛 💻 📖 ⚠️

Mike Cann

💻 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].