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

@teer/cli

v0.9.4

Published

Digiteer CLI commands

Downloads

12

Readme

teer-cli

Digiteer command line utility

Prerequisites

  • Nodejs v12.x or higher
  • npm v6.x or higher
  • rbenv or rvm for RoR projects
  • yarn for ReactJs and NodeJs projects
  • git source code management

Install

npm i -g @teer/cli

Verify installation by running:

teer --version

If you get a write access error on Windows, you'll need to run WSL or PowerShell as Administrator.

If you don't want to install or having trouble with installation, you can use npx. See usage below.

Usage

teer <command> [...options]

Using npx:

npx @teer/cli <command> [...options]

Commands

  1. new-ror
  2. new-react
  3. new-api
  4. heroku
  5. aws

new-ror

Create a new Ruby on Rails project.

teer new-ror <site-name> [<starter-url>]

| Arguments | Description | | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | site-name | Your Ruby on Rails site name which is also used to create the project directory. | | starter-url | A Ruby on Rails starter URL. Defaults to [email protected]:digiteerbit/ror-starter.git. |

Examples

teer new-ror my-awesome-site
  • Create an RoR site named my-ecom-site using a different starter repo.
teer new-ror my-ecom-site [email protected]:digiteerbit/kidlat-ror-starter.git

new-react

Create a new ReactJs project

teer new-react <site-name> [<starter-url>]

| Arguments | Description | | ----------- | --------------------------------------------------------------------------------------------------------------------------------------- | | site-name | Your ReactJs site name which is also used to create the project directory. | | starter-url | A ReactJs starter URL. Defaults to [email protected]:digiteerbit/react-starter.git. |

Examples

teer new-react my-awesome-site
  • Create a ReactJs site named my-ecom-site using a different starter repo.
teer new-react my-ecom-site [email protected]:digiteerbit/kidlat-react-starter.git

new-api

Create a new API project

teer new-api <api-name> [<starter-url>]

| Arguments | Description | | ----------- | -------------------------------------------------------------------------------------------------------------------------------- | | api-name | Your API name which is also used to create the project directory. | | starter-url | An API starter URL. Defaults to [email protected]:digiteerbit/api-starter.git. |

Examples

teer new-api my-awesome-api
  • Create an API named my-ecom-api using a different starter repo.
teer new-api my-ecom-api [email protected]:digiteerbit/kidlat-api-starter.git

heroku

Execute heroku commands

teer heroku <command> [...]

| commands | Description | | --------- | ------------------------------------------------------------------------------------------------------ | | setup | Setup RoR project. If app does not exist, it will be created if you are using Digiteer heroku account. | | pg:modify | Modify PostgreSQL server plan. | | pg:backup | Create and download PostgreSQL backup. |

aws

Execute aws commands

teer aws <command> [...]

| commands | Description | | -------- | ----------------------------------------------- | | create | Create AWS Account under Digiteer Client group. |

Contributing

  1. Clone

    git clone [email protected]:digiteerbit/teer-cli.git
    cd teer-cli
  2. Create your feature branch from next branch. Example: feature/new-feature-name.

    git checkout next
    git checkout -b feature/new-feature-name
  3. Install packages.

    npm i
  4. On a different terminal window, run build:watch.

    npm run build:watch

    The script will build the project when it detects code changes.

  5. Link this package locally so you can run it without publishing to npm.

    npm link
  6. Start coding your new feature.

  7. Assuming you did steps 4 and 5 correctly, test your changes locally by going to any folder and running the teer command.

  8. Create automated test for your new feature if possible.

  9. When you're done testing locally, unlink your package.

    npm unlink
  10. Push your branch feature/new-feature-name.

  11. Create pull request.

  12. Nudge your peers to approve your pull request.

  13. Wait for it to be merged.