After Framework

Strumenti

Gli script di supercore, i comandi Flutter e il workflow di CI generato.

Versione della documentazione: supercore main · pacchetti 1.0.0

Informazioni sulla CLILink a questa sezione: Informazioni sulla CLI

After Framework non distribuisce un binario CLI. Il flusso di lavoro si basa sugli script PowerShell in supercore/scripts e sui comandi standard di Flutter e Dart.

ScriptLink a questa sezione: Script

ScriptScopo
scripts/validate_product_spec.ps1 (si apre in una nuova scheda)Valida rapidamente un product.spec.yaml, senza Flutter.
scripts/generate_product.ps1 (si apre in una nuova scheda)Genera o aggiorna una Super App affiancata da una spec o da un nome. Supporta -DryRun.
scripts/check_reuse_contract.ps1 (si apre in una nuova scheda)Verifica un prodotto rispetto al contratto di riuso della piattaforma; -Strict trasforma gli avvisi in errori.
scripts/wire_play_release_signing.ps1 (si apre in una nuova scheda)Configura la firma delle release Play per le app affiancate; -BuildAab genera anche gli app bundle.

Comandi FlutterLink a questa sezione: Comandi Flutter

flutter
cd ..\superairport
flutter create .
flutter pub get
flutter analyze
flutter test

Sorgente supercore/scripts/generate_product.ps1 (si apre in una nuova scheda)

dart format · flutter test · check_reuse_contract.ps1
dart format --output=none --set-exit-if-changed .
flutter analyze
flutter test --coverage

# Platform doctrine check against a generated product
powershell -File scripts\check_reuse_contract.ps1 -AppRoot ..\superairport

Sorgente supercore/scripts/generate_product.ps1 · docs/PLATFORM_DOCTRINE.md (si apre in una nuova scheda)

Testare i pacchettiLink a questa sezione: Testare i pacchetti

powershell
cd packages/after_core && flutter pub get && flutter test
cd packages/after_design_system && flutter pub get && flutter test
cd packages/after_consumer && flutter pub get && flutter test
cd packages/after_enterprise && flutter pub get && flutter test

Sorgente supercore/README.md (si apre in una nuova scheda)

Workflow di CI generatoLink a questa sezione: Workflow di CI generato

.github/workflows/ci.yml
name: analyze-and-test
on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
jobs:
  analyze-and-test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - name: Checkout supercore (sibling)
        uses: actions/checkout@v5
        with:
          repository: oversteintech/supercore
          path: ../supercore
      - uses: subosito/flutter-action@v2
        with:
          channel: stable
      - run: dart format --output=none --set-exit-if-changed .
      - run: flutter pub get
      - run: flutter analyze
      - run: flutter test --coverage

Sorgente supercore/scripts/generate_product.ps1 (.github/workflows/ci.yml) (si apre in una nuova scheda)

wire_play_release_signing.ps1
# Wires Play release signing for sibling apps; -BuildAab also builds bundles.
# key.properties / *.jks stay local and gitignored.
powershell -File scripts\wire_play_release_signing.ps1 -BuildAab

Sorgente supercore/scripts/wire_play_release_signing.ps1 (si apre in una nuova scheda)