Document CLI and tutorial workflow
@StuffByLiang がすでに取り組んでいます。
2020年12月21日 から。
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- JavaScript
- スター
- 6
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MLH-Fellowship/react-native-tutorial のほかの issue
-
Meeting notes オープン
難易度 1/5 1時間未満 初心者へのやさしさ 30/100
MLH-Fellowship/react-native-tutorial#39 · コメント 1 件 · リアクション 4 件 ·
-
MLH-Fellowship/react-native-tutorial#36 · コメント 1 件 · 担当者 1 名 ·
-
MLH-Fellowship/react-native-tutorial#35 · コメント 3 件 · 担当者 1 名 ·
-
MLH-Fellowship/react-native-tutorial#34 · 担当者 1 名 ·
-
MLH-Fellowship/react-native-tutorial#20 · コメント 2 件 · 担当者 2 名 ·
MLH-Fellowship/react-native-tutorial の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
avniproject/avni-client#2135 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bevyengine/bevy-website#2595 ·
-
ecosystem wording
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
matrix-org/matrix.org#3649 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
vadimdemedes/ink#1029 ·