Skip to content

Develop Front Awesome

Clone the Front Awesome repository and switch to 1.x. From the checkout, install the PHP dependencies before the frontend dependencies.

Terminal window
composer install
npm ci
Command Purpose
php vendor/bin/maintainer quality:check --no-interaction Runs the configured PHP and frontend checks.
composer test Runs PHPStan, Pint, Pest, and PHP type coverage.
npm run build Builds the Vite consumer fixture. It uses Pro when Pro is installed and Core otherwise.
npm run test:browser Exercises the theme selector and both styling systems in Chromium.
npm run test:coverage Reports combined Node and Chromium coverage in build/coverage/frontend/.
composer test:coverage Reports PHP execution coverage. The command requires Xdebug or PCOV.

Before running the browser or frontend coverage command locally, install Chromium with npx playwright install chromium --only-shell.

CI runs both execution coverage commands in the Ubuntu job with stable dependencies. Download the coverage-reports artifact from that job to browse the PHP and frontend HTML reports. PHP type coverage runs across the support matrix.

Write Vue single-file components with the Composition API and <script setup lang="ts">. Put the template before the script block. Group related frontend integrations under the library they wrap. For example, the Web Awesome toast initializer lives at resources/js/WebAwesome/flashToast.ts.

Maintainer manages releases on 1.x and generates the README header. To regenerate the header after changing the logo or badges, run php vendor/bin/maintainer readme:update. When preparing the first release, replace the in-development badge in FrontAwesome::readmeHead() with the GitHub release badge.

The checkout keeps its skills in .agents/skills/. Claude Code can access the same directory through .claude/skills/. Composer and npm install the dependencies that supply the Inertia and Web Awesome references.

  • Use vue-best-practices and vue-testing-best-practices for Vue components, composables, and tests. Vue AI Skills
  • Use vueuse-functions to choose VueUse composables. The checkout includes a snapshot for VueUse 14.4.0. VueUse skills
  • Use inertia-vue-development for Inertia forms, navigation, shared props, and SSR. Inertia Vue skill
  • Use frontend-design to choose the visual direction for a new or redesigned interface. Frontend design skill
  • Use webawesome for component APIs and webawesome-design for layouts, themes, and design tokens. Web Awesome agent skills