-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
back-endBack-end related taskBack-end related task
Description
The flow of initializing a new PaaW project bases on the inputs from user (these will be available as an object in a redux store that will take te shape defined in #79) is as follows:
- Validate node installation with the use of
nodeCheckfunction (defined here).- If absent install LTS version of node.
- Based on the chosen package manager validate presence of
yarnornpm.- If absent install it (mainly for yarn since npm installs with node).
- Validate presence of gatsby-cli with
checkForGatsbyfunction (defined here).- If absent install it with the
installGatsbyfunction (defined here).
- If absent install it with the
- Based on the chosen technologies decide, which publication template should be used.
- Generate a new PaaW project based on the chosen template.
- Modify the
package.jsondata andgatsby-config.jsorgatsby-config.tsbased on the input data. - Create the
publab.config.jsonfile in the project with correct data from user input. - Create project repo on GitHub.
- Initialize the repository with the
mainbranch. - Set the upstream branch / add remote
- Stage all files
- Create an initial commit
- Push the project to the repository
- Add collaborators to the GitHub repo based on the input data.
- Create
contentbranch and push it to the repo (it should stay as the working branch in the app)
Based on the flow above the following tasks need to be taken care of before the flow can be put together:
- Implement function to install node #73
- Implement function to pick the
PaaWtemplate based on technologies #74 - Implement generation of the
PaaWproject with gatsby-cli #75 - Validate the correctness of the
config-managerfunctions #76 - Implement modification of PaaW project config files #77
- Validate correctness of git functions available in draft PR #78
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
back-endBack-end related taskBack-end related task