nextjs-craftcms-mono
                                
                                
                                
                                    nextjs-craftcms-mono copied to clipboard
                            
                            
                            
                        Starter kit for Headless CraftCMS with Next JS
NextJS, CraftCMS mono
Features
- Next JS
 - Tailwind
 - Storybook
 - Typescript
 - graphql-codegen/typescript
 - CraftCMS
 - @svgr/webpack
 - Hygen generator
 - Lerna
 - Husky
 - Jest
 - Cypruss
 - eslint
 - prettier
 - stylelint
 - commitlint
 
CraftCMS/Next
- GraphQL api
 - Blog listing/pagination + entries
 - Home page entry
 - Pages structure (supports multiple types)
 - Global (build time) data
 - SEOMatic component
 - Formie helpers, including auto generated graphql mutations
 
Installation
- To setup the frontend tooling and nextjs run 
yarn installornpm install - To install CraftCMS please refer to the CraftCMS Docs
 
Commands
yarn dev: starts the app package nextjs serveryarn test: run all of the testsyarn build: build the next js appyarn start: start the production siteyarn lint: lint the frontend codeyarn storybook: runs the ui package storybook serveryarn release: tag a release, update changelog
Code scaffold
yarn new:component: create a new componentyarn new:page: create a new nextjs pageyarn new:context: create a new context provider
Packages
/packages/cms: Craft CMS/packages/app: Next JS codebase/packages/ui: Design system
TypeScript GraphQL-Request
See https://www.graphql-code-generator.com/docs/plugins/typescript-graphql-request for docs