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

generator-integrity

v1.1.7

Published

A Next.js + Prisma + Cypress project generator using current tools and frameworks at Integrity Web Consulting.

Downloads

91

Readme

Generator-Integrity Main Build

A Next.js + Prisma + Cypress project generator using current tools and frameworks (as of 2023) at Integrity Web Consulting.

Requirements

  • Node v16.x - Node version 16.x is required. Versions less than or greater than 16 will not build
  • Docker
  • Docker-Compose

Usage

# you do not need to enter a project name, it will ask you for one
npx -p yo -p generator-integrity@latest -c 'yo integrity'

# cd into new project
cd my-new-project

# startup new project
./local-start.sh

When you run it you'll be asked to pick your preferences for:

  • Project Name
  • Database Name (defaults to 'my-project-name_database')
  • Database User Name (defaults to 'admin')
  • Database User Password (default to 'password')
  • Database Port (default 3306)

Development

For development, you'll need to install the yo package globally, npm install -g yo

Make your changes and then:

# build/compile the generator /dist folder
yarn build
# link this package to your global npm packages
npm link

# now from any directory you can use the linked package just like a global package
cd ..
yo integrity

If making multiple changes, may need to unlink and relink.

npm unlink generator-integrity && yarn build && npm link

If you run into issues performing npm unlink generator-integrity such as peer dependency issues, you can also forcibly delete the it using npm uninstall -g generator-integrity

Note about generators

For any yeoman-generator, the repo name property must be prefixed by 'generator-'. The keywords property must contain "yeoman-generator" and the repo must have a description to be indexed by yeoman's generators page. The files property must be an array of files and directories that is used by this generator.

Pushing commits

Before pushing, make sure the linter and tests pass:

yarn lint
yarn test

There is no CI setup that runs these tests automatically, so make sure to run them before pushing.

Publishing to NPM

Example scenario, how to publish a new version called 1.2.3

  1. Update package.json version to be 1.2.3
  2. Build app with yarn build
  3. Run linter and tests with yarn lint && yarn test
  4. Add your changes to git and commit with a descriptive message.
  5. Push up to main branch
  6. Create tag with git tag 1.2.3
  7. Push tag up with git push --tags
  8. In Github, create a new Release using tag 1.2.3 and make sure to check the box to make latest release. Name is 'Release 1.2.3' and some description.
  9. In terminal, run npm publish and you will be asked by npmjs.com to enter the one-time-password which is emailed to [email protected].

Integrity has a [email protected] npm user in TeamPassword if you need to log into the NPM website to manage the package there.