Skip to content

A simple script for creating Next(js)-level boilerplate components

Notifications You must be signed in to change notification settings

AlephSF/create-next-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Next Component

From anywhere in your project run npx @aleph/create-next-component

This is a tiny, opinionated command line script that, when run, will ask you for a component name (CapitalizeAndCamelCaseItPlease) and then generate a simple boilerplate component in the app/(frontend)/components folder of your NextJS (or really any) project. The boilerplate includes, all in a folder like app/(frontend)/components/ComponentName:

  • The TypeScript component in ComponentName.tsx
  • A Sass-driven css module like componentName.module.scss
  • A Storybook story at like ComponentName.stories.tsx
  • A Document file in MDX like ComponentNameDoc.mdx

That's all it does, there ain't no more.

About

A simple script for creating Next(js)-level boilerplate components

Resources

Stars

Watchers

Forks

Packages

No packages published