After Framework

Tooling

The supercore scripts, Flutter commands and the generated CI workflow.

Docs version: supercore main · packages 1.0.0

About the CLILink to this section: About the CLI

After Framework does not ship a packaged CLI binary. The workflow is PowerShell scripts in supercore/scripts plus the standard Flutter and Dart commands.

ScriptsLink to this section: Scripts

ScriptPurpose
scripts/validate_product_spec.ps1 (opens in a new tab)Validates a product.spec.yaml quickly, without Flutter.
scripts/generate_product.ps1 (opens in a new tab)Generates or updates a sibling Super App from a spec or a name. Supports -DryRun.
scripts/check_reuse_contract.ps1 (opens in a new tab)Checks a product against the platform reuse contract; -Strict turns warnings into failures.
scripts/wire_play_release_signing.ps1 (opens in a new tab)Wires Play release signing for sibling apps; -BuildAab also builds app bundles.

Flutter commandsLink to this section: Flutter commands

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

Source supercore/scripts/generate_product.ps1 (opens in a new tab)

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

Source supercore/scripts/generate_product.ps1 · docs/PLATFORM_DOCTRINE.md (opens in a new tab)

Testing the packagesLink to this section: Testing the packages

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

Source supercore/README.md (opens in a new tab)

Generated CI workflowLink to this section: Generated CI workflow

.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

Source supercore/scripts/generate_product.ps1 (.github/workflows/ci.yml) (opens in a new tab)

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

Source supercore/scripts/wire_play_release_signing.ps1 (opens in a new tab)