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

frontend-project-generator

v0.2.1

Published

Intent frontend project generator

Downloads

2

Readme

frontend-project-generator

Generate ready to use nextjs project with all basic tools setup.

Project default plugins

| Plugins | Version | Remarks | | --------------------------------- | -------- | -------------------------------- | | create-next-app | 13.0.2 | generator base installing module | | --------------------------------- | -------- | -------------------------------- | | prettier | 2.7.1 | generated repository plugin | | --------------------------------- | -------- | -------------------------------- | | eslint | 8.26.0 | generated repository plugin | | eslint-config-prettier | 8.5.0 | eslint dependent plugin | | eslint-plugin-prettier | 4.2.1 | eslint dependent plugin | | @typescript-eslint/parser | 5.42.0 | eslint dependent plugin | | @typescript-eslint/eslint-plugin | 5.42.0 | eslint dependent plugin | | eslint-import-resolver-typescript | 3.5.0 | eslint dependent plugin | | --------------------------------- | -------- | -------------------------------- | | husky | 8.0.1 | generated repository plugin | | --------------------------------- | -------- | -------------------------------- | | lint-staged | 13.0.3 | generated repository plugin | | @commitlint/cli | 17.1.2 | lint-staged dependent plugin | | @commitlint/config-conventional | 17.2.0 | lint-staged dependent plugin |

Project requirements

  • node 16.*
  • npm 8.*

Installing Node and npm

  • Install nvm (Node Version Manager) to make sure we're using the same versions
  • Run nvm install (uses the .nvmrc file)

Package installation

npm i -g frontend-project-generator

Usage

Usage: cfp <project-name> |
       create-frontend-project <project-name> |
       frontend-project-generator <project-name>

Options

| Option | Description | | ------------ | -------------------------------------- | | project-name | optional argument for the project name |

Local development

npm run build && node lib/index.js

Environment Variables

DEV_ENVIRONMENT=true   // It prevents script from running `create-next-app` and executes pure initializer (npm/yarn init)

Frontend Project Generator development

  • Plugins update:
    • update plugin version property inside plugins.config.ts file.
    • test if package works, by running script locally.
    • update plugin version inside README.md file, section > Project default plugins
    • update plugin in frontend-project-generator devDependencies (dependaBot purposes).
  • Plugins config file update:
    • check if config file exist in configs/${pluginName} directory:
      • exist:
        • update file
      • doesn't exist:
        • add file
        • update plugin config property inside plugins.config.ts file.
        • add createNextProject.ts > installProjectPlugin function parameter object config property .
    • add property to existing .json file:
      • go to configs/snippets/addProperty
        • add ${plugin}.json file with plugin name and wanted content
        • update plugin snippets property inside plugins.config.ts file. Property should consist of with three mandatory properties (action, inputCode, outputFile)
        • add snippet property for wanted project in createNextProject.ts > installProjectPlugin functions object property
    • edit property to existing .json file:
      • go to configs/snippets/editProperty
      • edit ${plugin}.json file and amend its content.