← スキル一覧に戻る

development-workflow
by bwl21
This CT-Extenion can create Flyers from Appointments/Events in Churchtools
⭐ 0🍴 0📅 2026年1月6日
SKILL.md
name: development-workflow description: Apply when setting up the development environment, running dev server, building, testing, or deploying the extension. Covers npm commands, CORS configuration, debugging, and deployment to ChurchTools.
Development Workflow
Environment Setup
- Copy
.env-exampleto.env - Configure ChurchTools URL and extension key:
VITE_KEY=your-extension-key VITE_CHURCHTOOLS_URL=https://your-instance.church.tools
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:
- Admin > System Settings > Integrations > API > Cross-Origin Resource Sharing
- Add
http://localhost:5173
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
.zipto 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.postMessagefor communication with ChurchTools - Access ChurchTools API via
churchtoolsClient
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です