Assume everything in this folder is either cloned to start a new repository for a site. Or it is somehow generated using a CLI command (similar to Ember). For example: nextjs-website new officer
. For now we'll pretend the command was run.
.gitignore
- Should be built/pulled from the standard Node gitgnore
package.json
- Should represent the site/project name and should properly install the required peer deps of the core package?
- Still need to determine what comes with core and what doesn't
react
andreact-dom
are peer deps ofnext
next
is currently a peer dep of@base-cms/base4-website-nextjs
- Can
next
be exclusively loaded into the core package?
.env
- Needs to be initially created with the proper variables?
next.config.js
- Needs to be created with the
buildDir
value set... eventually needs to use a plugin to addgraphql-loader
and the like - This could be removed if
next
can be moved to core.
- Needs to be created with the
/site
- Folder should be initially created
/site/routes.js
- Should be generated with the default routes
/site/pages
- Should be generated with some defaults. How will
_app.js
and_document.js
be handled?
- Should be generated with some defaults. How will
/site/components
- Folder should be create with a .gitkeep and empty
/server
- Folder should be initially created with the proper base4 server requirements
- Where does bootstrap live? As a part of the starter or somewhere else??