development-workflow

- Copy .env-example to .env

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "development-workflow" with this command: npx skills add bwl21/bwl-flyer-generator/bwl21-bwl-flyer-generator-development-workflow

Development Workflow

Environment Setup

Development Commands

npm run dev # Start dev server with hot-reload (port 5173) npm run build # Production build npm run preview # Preview production build npm run deploy # Build and package for ChurchTools npm run prettier:write # Format code

CORS Configuration

For local development, configure CORS in ChurchTools:

Safari Cookie Issues

Safari has stricter cookie handling. Solutions:

  • Use Vite proxy so API calls go through local server

  • Run dev server with HTTPS using mkcert

Testing Checklist

  • Start dev server: npm run dev

  • Check browser console for errors

  • Test responsive design

  • Verify ChurchTools integration

  • Build test: npm run build

  • Deploy test: npm run deploy

Deployment Process

  • Format code: npm run prettier:write

  • Build: npm run build

  • Package: npm run deploy

  • Upload .zip to ChurchTools Admin > Extensions

  • Configure extension settings

  • Test in production

Debugging

Browser console tests:

// Test API connection churchtoolsClient.get('/whoami').then(console.log).catch(console.error)

// Check extension context console.log('Extension context:', { url: window.location.href, parent: window.parent !== window, churchtoolsClient: !!window.churchtoolsClient })

Build Output

Check build output:

ls -la dist/ ls -lh dist/assets/

Extension Context

  • Extensions run in iframe context

  • Use window.parent.postMessage for communication with ChurchTools

  • Access ChurchTools API via churchtoolsClient

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

git-conventions

No summary provided by upstream source.

Repository SourceNeeds Review
General

vue-components

No summary provided by upstream source.

Repository SourceNeeds Review
General

churchtools-api

No summary provided by upstream source.

Repository SourceNeeds Review