🚀 First off, thanks for taking the time to contribute! 🚀
When contributing to this project, please first discuss the changes you wish to make via an issue before making changes.
You can fork from the repo below or directly clone it using this command in the terminal:
git clone https://github.com/oslabs-beta/GatsbyHub.git
Prerequisites
From a terminal, where you have cloned the repository, execute the following command to install the required dependencies:
npm install
During development you can use a watcher to make builds on changes quick and easy. From a terminal, where you have cloned the repository, execute the following command:
npm run watch
Or use the provided watch
task in VS Code, execute the following from the command palette (be sure there is no >
at the start):
task watch
This will first do an initial full build and then watch for file changes, compiling those changes incrementally, enabling a fast, iterative coding experience.
This project uses prettier for code formatting.
To format the code as you make changes you can install the Prettier - Code formatter extension.
Add the following to your User Settings to run prettier:
"editor.formatOnSave": true,
This project uses ESLint for code linting TypeScript using the AirBnB Style Guide. Warnings from ESLint show up in the Errors and Warnings
quick box and you can navigate to them from inside VS Code.
To lint the code as you make changes you can install the ESLint extension.
- Ensure the required dependencies are installed
- Start the
watch
task - Choose the
Launch GatsbyHub
launch configuration from the launch dropdown in the Debug viewlet and pressF5
.
Please follow all instructions in the PR template.