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

boards-preset-default

v1.1.1

Published

Default presets for the Boards CLI

Downloads

9

Readme

boards-preset-default

Default preset for Boards CLI.

Note: Don't install this project directly. Instead, install the Boards CLI.

Installing

These presets get installed by default when installing Boards CLI.

Tasks

Following are the tasks bundled with this preset. You can list them in your console by running:

boards default:tasks

tasks

boards default:tasks

Outputs the tasks for this preset.

preset

boards default:preset <name>

Create a new preset template to simplify creating your own preset.

init

boards default:init [src]

Create a boards.js file in your current directory. Provsided src is used to set the path to your project's source code.

ensureNew

boards default:ensureNew

Utility task to use in your own tasks / preset tasks. Throws an error if there's a boards.js file in the current directory.

{definedTask: 'default:ensureNew'}

ensureNotNew

boards default:ensureNotNew

Utility task to use in your own tasks / preset tasks. Throws an error if there's no boards.js file in the current directory.

{definedTask: 'default:ensureNotNew'}

ensureExists

boards default:ensureExists

Utility task to use in your own tasks / preset tasks. Throws an error if provided file doesn't exist.

{
  definedTask: 'default:ensureExists',
  prepare: p => p.ensureExists = 'path to check (can be relative to cwd)'
}

ensureNotExists

boards default:ensureNotExists

Utility task to use in your own tasks / preset tasks. Throws an error if provided file exists.

{
  definedTask: 'default:ensureNotExists',
  prepare: p => p.ensureNotExists = 'path to check (can be relative to cwd)'
}

addDep

boards default:addDep

Utility task to use in your own tasks / preset tasks. Adds a dependency to an existing project.

This task detects which package manager is being used in the project (yarn or npm).

{
  definedTask: 'default:addDep',
  prepare: {
    addDep: {
      dev: true,
      dependency: 'boards-preset-aor'
    }
  }
}

If you simply want to add a dependency (non-dev) you can also use a string:

{
  definedTask: 'default:addDep',
  prepare: 'boards-preset-aor'
}

cd

boards default:cd

Utility task to use in your own tasks / preset tasks. Navigates to a new directory. Useful for example after creating a new directory (by using create-react-app for example).

{ definedTask: 'default:cd', prepare: p => p.cd = p.name }

Note: You might want to call default:prepare after this, to reinitialize the package manager used in the new directory.

checkBinary

boards default:checkBinary

Utility task to use in your own tasks / preset tasks. Verifies a global binary exists on the system. Throws an error when the binary wasn't found.

{ definedTask: 'default:checkBinary', prepare: { checkBinary: 'create-react-app' } }

exec

boards default:exec

Utility task to use in your own tasks / preset tasks. Executes a command on the cli.

{ definedTask: 'default:exec', prepare: p => { p.exec = `create-react-app ${p.name}`} }

prepare

boards default:prepare

Internal command, automatically called before the main task. This task sets default parameters holding information needed for boards to function.

Warning: Only call this method when needed (for example after default:cd)

License

MIT