0.2.1 • Published 2 years ago

frontend-project-generator v0.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

frontend-project-generator

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

Project default plugins

PluginsVersionRemarks
create-next-app13.0.2generator base installing module
-------------------------------------------------------------------------
prettier2.7.1generated repository plugin
-------------------------------------------------------------------------
eslint8.26.0generated repository plugin
eslint-config-prettier8.5.0eslint dependent plugin
eslint-plugin-prettier4.2.1eslint dependent plugin
@typescript-eslint/parser5.42.0eslint dependent plugin
@typescript-eslint/eslint-plugin5.42.0eslint 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.2.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
  • 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

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.
0.2.1-alpha1

2 years ago

0.2.0-alpha-9

2 years ago

0.2.0-alpha-8

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.0-alpha-7

2 years ago

0.2.0-alpha-6

2 years ago

0.2.0-alpha-1

2 years ago

0.1.1

2 years ago

0.2.0-alpha-3

2 years ago

0.2.0-alpha-2

2 years ago

0.2.0-alpha-5

2 years ago

0.2.0-alpha-4

2 years ago

0.1.0

2 years ago

0.1.0-alpha8

2 years ago

0.1.0-alpha7

2 years ago

0.1.0-alpha6

2 years ago

0.1.0-alpha5

2 years ago

0.1.0-alpha4

2 years ago

0.1.0-alpha3

2 years ago

0.1.0-alpha2

2 years ago

0.1.0-alpha1

2 years ago

1.0.0

2 years ago