Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

frontend-project-generator

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frontend-project-generator

Intent frontend project generator

  • 0.2.0-alpha-1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

frontend-project-generator

Generate ready to use nextjs project with all basic setup.

Project default plugins

PluginsVersionRemarks
create-next-app12.3.1generator base installing module
-------------------------------------------------------------------------
prettier2.7.1generated repository plugin
-------------------------------------------------------------------------
eslint8.24.0generated repository plugin
eslint-config-prettier8.5.0eslint dependent plugin
eslint-plugin-prettier4.2.1eslint dependent plugin
@typescript-eslint/parser5.38.1eslint dependent plugin
@typescript-eslint/eslint-plugin5.38.1eslint dependent plugin
eslint-import-resolver-typescript3.5.0eslint dependent plugin
-------------------------------------------------------------------------
husky8.0.1generated repository plugin
-------------------------------------------------------------------------
lint-staged13.0.3generated repository plugin
@commitlint/cli17.1.2lint-staged dependent plugin
@commitlint/config-conventional17.1.0lint-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
    • macOS/Linux
    • Windows
  • 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

OptionDescription
project-nameoptional argument for the project name

Local development

npm run build && node lib/index.js

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.

FAQs

Package last updated on 04 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc