Skip to content

moon-book/template

Repository files navigation

Template

style: very good analysis Powered by Mason License: MIT

Template package

Installation 💻

❗ In order to start using Template you must have the Flutter SDK installed on your machine.

Install via flutter pub add:

dart pub add template

Continuous Integration 🤖

Template comes with a built-in GitHub Actions workflow powered by Very Good Workflows but you can also add your preferred CI/CD solution.

Out of the box, on each pull request and push, the CI formats, lints, and tests the code. This ensures the code remains consistent and behaves correctly as you add functionality or make changes. The project uses Very Good Analysis for a strict set of analysis options used by our team. Code coverage is enforced using the Very Good Workflows.


Running Tests 🧪

For first time users, install the very_good_cli:

dart pub global activate very_good_cli

To run all unit tests:

very_good test --coverage

To view the generated coverage report you can use lcov.

# Generate Coverage Report
genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
open coverage/index.html

//Hướng dẫn sử dụng submodule template:
sử dụng git template dưới dạng submodule:
b1: xoá bỏ index nếu có template:
git submodule deinit -f packages/template
rm -rf .git/modules/packages/template
git rm -f packages/template
git submodule add https://github.com/thanhchelsea/template.git packages/template

b2: git submodule update --init --recursive (lấy code mới nhất về theo chỉ số được đánh)
=====> Mỗi khi thay đổi code trong template:
b1: cd packages/template
b2: cd vào template => commit và push code bên trong template
vd:
git add .
git commit -m “Commit thay đổi code”
git push origin your_bracnh

b3: cd …/…
b4: Cập nhật Tham chiếu Submodule trong Repo Chính: Sau khi đẩy lên packages/template, hãy cập nhật repo chính để trỏ đến commit mới nhất của submodule
vd:
git add .
git commit -m “Cập nhật submodule template đến commit mới nhất”
git push origin main

.????? xxx

About

Template for Moon project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages