Document CLI and tutorial workflow
@StuffByLiang já está trabalhando nisso.
Desde 21/12/2020.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Goals
One of the main goals this fall was to build a scaffold/basic structure for a react native tutorial project, and to plan out how the end user would go from start to finish while navigating through each tutorial step.
Approach Summary
Our approach was to use git to manage the tutorial steps.
The user would clone the tutorial repository, which is the default react-native application shell and would immediately work on step one. Once finished, their code would be ran against a set of test suites created for that tutorial step, and upon passing, the set of tests for the next tutorial step would automatically be added to the project and the user would continue to work on the next task.
Implementation Details
When do we run the test suite against their code?
-
We use Git Hooks to run custom commands when certain important actions occur. Specifically, we will use git 'pre-commit' and 'post-commit' hooks. We use Husky to help us implement these.
- pre-commit: this hook is run before the git commit runs through to 'inspect' the commit. You can run tests and if they fail, the git commit will also faill
- post-commit: this hook is run when the git commit succeeds and is completed.
-
This is what how we use husky: the following code is located in the package.json folder.

-
When the tutorial user thinks they have completed the tutorial step, they should perform a 'git commit'. we run npm test, and if that fails, then the commit message is rejected. If all tests pass, we run a post-commit hook that calls our cli and asks it to add the next set of tests to the current branch that the user is working on
Command Line Interface Implementation
Libraries used
- in progress
- Linguagem predominante
- JavaScript
- Estrelas
- 6
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de MLH-Fellowship/react-native-tutorial
-
Meeting notes Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 30/100
MLH-Fellowship/react-native-tutorial#39 · 1 comentário · 4 reações ·
-
MLH-Fellowship/react-native-tutorial#36 · 1 comentário · 1 responsável ·
-
MLH-Fellowship/react-native-tutorial#35 · 3 comentários · 1 responsável ·
-
MLH-Fellowship/react-native-tutorial#34 · 1 responsável ·
-
MLH-Fellowship/react-native-tutorial#20 · 2 comentários · 2 responsáveis ·
Todas as issues de MLH-Fellowship/react-native-tutorial
Issues semelhantes
-
code-quality refactoring
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100