Document CLI and tutorial workflow

Đang mở
#41 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@StuffByLiang đang làm issue này rồi.

Từ ngày 21/12/2020.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.
    image

  • 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
Ngôn ngữ chính
JavaScript
Star
6
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MLH-Fellowship/react-native-tutorial

Tất cả issue của MLH-Fellowship/react-native-tutorial

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.