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

@folkforms/dev-info

v0.0.35

Published

Dev info and shortcuts

Downloads

43

Readme

dev-info

Used to provide help text or index all the things you need to remember in a new job. You have a single JSON file containing all the info, as opposed to having dozens of text files everywhere.

  1. Install dev-info globally: yarn add --global dev-info
  2. Create ~/.dev-info.json
{
  "data": {
    "frontend": {
      "run": {
        "_description": "The frontend uses yarn. Use 'yarn start' to run it.",
        "_executable: "yarn start"
      },
      "tests": {
        "_description": "Description of the frontend tests. Use 'yarn test' to run the tests.",
        "_executable: "yarn test"
      },
      "deploy": {
        "_duplicate": "misc deploy"
      }
    },
    "backend": {
      "build": {
        "_description": "The backend uses maven.",
        "_executable: "mvn compile"
      },
      "run": {
        "_description": "Run StartServer.jar to run the backend.",
        "_executable: "java -jar StartServer.jar"
      },
      "tests": {
        "_description": "Description of the backend tests.",
        "_executable: "mvn clean verify"
      },
      "deploy": {
        "_duplicate": "misc deploy"
      }
    },
    "misc": {
      "deploy": {
        "_description": "How to deploy stuff"
      }
    }
  },
  "paramOverrides": {
    "foo-project": {
      "appRoot": "overridden-app-root",
      "staticRoute": "overridden-static-root",
      "zkGroup": "overridden-zk-group"
    }
  },
  "projectDomains": {
    "domain-one.com": [
      "foo-project",
      "bar-project"
    ],
    "domain-two.com": [
      "muk-project"
    ]
  },
  "projectNotes": {
    "foo-project": {
      "frontend": {
        "run": {
          "_note": "This note only appears for 'frontend run' inside foo-project"
        }
      }
    },
    "bar-project": {
      "frontend": {
        "run": {
          "_note": "This note only appears for 'frontend run' inside bar-project"
        }
      }
    }
  },
}
  1. Type dev for a list of topics
frontend
    run
    tests
backend
    build
    run
    tests
  1. Type dev frontend run for detail
The frontend uses yarn.

Executable: yarn start
  1. Use the -x argument to execute a command. For example, dev frontend run -x will execute whatever is in the _executable field, in this case yarn start.

Data options

  • _description: Text that describes the given topic
  • _executable: An executable command that will be run when the -x option is specified
  • _duplicate: Link this entry to another entry
  • _file: Use the given file's contents as the description (and optionally executable as well)

_file options

Files loaded via the _file option can denote executables in the following two forms:

    ## Executable

    foo

or

    Executable: foo

Parameters

Most of the parameters are based on values taken from the HubSpot project yaml configuration name i.e. "hubspot.deploy/my-project.yaml".

You can override parameters using projectParamsMap.param if it's not getting the correct value.

The ${domain} param will be mapped to a value from projectDomains. For example:

    "projectDomains": {
      "foo-domain": [ "foo-project-a", "foo-project-b" ],
      "bar-domain": [ "bar-project-a", "bar-project-b" ]
    }

Overriding parameters

"paramOverrides": { "foo-project": { "appRoot": "overridden-app-root", "staticRoute": "overridden-static-root", "zkGroup": "overridden-zk-group" } },