- run the following in your terminal:
git clone https://github.com/sparkbox/apprentices-page-next.git
npm install
npm run dev
npm run lint
npm test
npm test:ci
- Netlify is used for automatic deployments and deployment previews.
- Github Actions allows us to make sure all tests and linters pass for each PR.
- Sparkbox eslint config is used to enforce JavaScript code styles.
- Sparkbox stylelint config is used to enforce Scss code styles.
- When you want to make a contribution please follow the Sparkbox git process for naming branches, writing commit messages, and rebasing before submitting PRs.
- All image files should be added to
/public/apprentices
with the file name being[ApprenticeName].png
-
To add/change the current apprentices or previous apprentices data navigate to
/data
folder and find theapprentices.json
file -
Add to and/or adjust the data, see below how the data for each group is structured:
- Current Apprentices:
"currentApprentices": { "version": "[Version Number]", "apprentices": [ ..., { "name": "[Apprentice Name]", "image": "/apprentices/[Name].png", /* Links are optional and can be any link the apprentice provides as long as it follows the structure of the objects below: */ "links": [ { "href": "https://www.personalportfolio.com", "text": "Personal" }, { "href": "https://www.linkedin.com/", "text": "Linkedin" }, { "href": "https://www.github.com/", "text": "Github" }, ], }, ], },
- Previous Apprentices:
"previousApprentices": [ ..., { "version": "[Version Number]", "apprentices": [ ..., { "name": "[Apprentice Name]", /* Status is optional and states the apprentice employment status with Sparkbox and can be one of the following values, if the apprentice was never an employee omit status entirely: */ "status": [ "current" || "previous" ] } ] } ]
- If any markup is changed the snapshot will need to be updated to represent those changes in the test
- run
npm run test:snapshot:update
to update the snapshot
- Use your Sparkbox affiliated 1Password account to get access to the Sparkbox developer account in Netlify.
- There you can make any necessary changes to the Netlify deploy such as editing the name of the url, the automatic deploy process or evironmental variables.