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

@phase2/outline-cli

v0.0.57

Published

Outline command-line interface for creating new Outline projects and Outline commands

Downloads

138

Readme

Outline CLI

The command line tool for Outline.

oclif Version Downloads/week License

Features

The @phase2/outline-cli handles a multitude (1 presently) of common day to day tasks when using Outline.

  • Scaffold new design system project(s) using the CLI.
  • @todo: Scaffold new components using the CLI.
  • @todo: Scaffold new controllers using the CLI.
  • @debug: Do some things.
  • @review: Do some things.
  • @note: Do some things.
  • @hack: Do some things.
  • @todo: Do some things.

Usage

Using NPX (Recommended)

Using npx will ensure you are always using the latest version of the CLI without having to ensure your global dependencies are up to date.

npx @phase2/outline-cli COMMAND

Checking the version being used via NPX

You will want this version to match up with the latest version at npmjs Version.

npx @phase2/outline-cli --version

Updating Version used by NPX

Ensure cache is cleared if local environment is not looking for the latest version. Uses the clear-npx-cache package.

npx clear-npx-cache

Check the version with the cli again

npx @phase2/outline-cli --version

Global NPM Installation

npm install -g @phase2/outline-cli

If you install @phase2/outline-cli locally, rather than running the commands with npx @phase2/outline-cli, you'd preface those commands with outline COMMAND instead.

outline --version
outline help init
outline init

Commands

outline init

Scaffolds a new Outline project based on prompts or automated via arguments.

Scaffolds a new Outline Project

USAGE
  $ outline init [-a] [-n <value>] [-s <value>] [-p <value>] [-d <value>] [-t <value>]

FLAGS
  -a, --automated            Enable/disable interactive mode.
  -d, --description=<value>  Project description.
  -n, --name=<value>         Project name.
  -p, --packageName=<value>  Project package name.
  -s, --slug=<value>         Project slug.
  -t, --template=<value>     Project template.

DESCRIPTION
  Scaffolds a new Outline Project

EXAMPLES
  $ outline init
  $ npx @phase2/outline-cli init

Interactive

The following is the simplest method that will prompt you step by step through providing the name, slug, packageName, description, and template that will be sent to the init functionality.

npx @phase2/outline-cli init

Automated

This method enables you to scaffold a design system by a set of provided values. The required automated flag must be provided in order to "disable" the default inquirer prompts.

When providing flags to the init command, it should be assumed that ALL prompts are provided through flags, and not just one. Using the --automated flag turns off the inquirer functionality and would otherwise provide default values for all missing flags.

Sample 1
npx @phase2/outline-cli init \
  --automated \
  --name="Design System: 1" \
  --slug="design-system-one" \
  --packageName="@phase2/design-system-one" \
  --description="Web component library powered by OutlineJS." \
  --template="default" 
Sample 2
npx @phase2/outline-cli init \
  --automated \
  --name="Design System: 2" \
  --slug="design-system-two" \
  --packageName="@phase2/design-system-two" \
  --description="Web component library powered by OutlineJS." \
  --template="default"
Sample 3
npx @phase2/outline-cli init \
  --automated \
  --name="Design System: 3" \
  --slug="design-system-three" \
  --packageName="@phase2/design-system-three" \
  --description="Web component library powered by OutlineJS." \
  --template="default"