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
reactandreact-domare peer deps ofnextnextis currently a peer dep of@base-cms/base4-website-nextjs- Can
nextbe 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
buildDirvalue set... eventually needs to use a plugin to addgraphql-loaderand the like - This could be removed if
nextcan 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.jsand_document.jsbe 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??