fonts-packages/.env.example
bo.yu 5d2ef19207 chore(project-setup): Initialize project repository with core files and configurations
- Add comprehensive .env.example with detailed configuration options for OSS, AI, and NPM
- Create .gitignore with extensive ignore patterns for various environments and tools
- Add GNU General Public License (GPL v3) as project licensing
- Establish initial project structure with configuration and script files
- Include placeholder configuration files and documentation for npm package
- Add font files and related metadata for future processing
- Set up Python and JavaScript scripts for font analysis, conversion, and publishing
- Prepare initial package.json for npm package distribution
- Create README and supporting documentation files for the project
This initial commit establishes the foundational structure and configuration for the font processing and distribution project, ensuring comprehensive setup and clear documentation.
2025-11-13 15:33:01 +08:00

47 lines
1.7 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# OSS Configuration
# Aliyun OSS credentials and settings
OSS_ACCESS_KEY_ID=your_access_key_id
OSS_ACCESS_KEY_SECRET=your_access_key_secret
OSS_BUCKET=your_bucket_name
OSS_REGION=oss-cn-hangzhou
OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
OSS_BASE_PATH=build/fonts/
OSS_UPLOAD_DIRS=./dist,./metadata
# OSS_CDN_DOMAIN=cdn.example.com # 可选CDN 域名,用于生成 CDN 访问地址
# OSS_DRY_RUN=true # 可选:模拟上传,不实际上传文件
# AI Configuration - 方式1: OpenAI
# OpenAI-compatible API settings for font analysis and CSS normalization
OPENAI_API_KEY=your_api_key
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4o-mini
# AI Configuration - 方式2: 火山引擎 ARK推荐国内用户
# 使用火山引擎的 ARK API兼容 OpenAI 格式)
# 2a. 普通 Chat API不支持联网搜索
# ARK_API_KEY=your_ark_api_key
# ARK_BASE_URL=https://ark.cn-beijing.volces.com/api/v3
# ARK_MODEL=deepseek-v3-250324
# 2b. Bot API支持联网搜索推荐用于字体元信息分析
# ARK_API_KEY=your_ark_api_key
# ARK_BASE_URL=https://ark.cn-beijing.volces.com/api/v3/bots
# ARK_MODEL=bot-20XXX # 替换为你的智能体 ID
# USE_BOT_API=true # 启用 Bot API 模式(支持联网搜索)
# AI Configuration - 方式3: 其他兼容 API
# 支持任何 OpenAI 兼容的 APIDeepSeek、通义千问等
# OPENAI_API_KEY=your_api_key
# OPENAI_BASE_URL=https://api.deepseek.com/v1
# OPENAI_MODEL=deepseek-chat
# Legacy AI Configuration (for backward compatibility)
AI_API_KEY=your_ai_api_key
AI_API_ENDPOINT=https://api.openai.com/v1/chat/completions
AI_MODEL=gpt-4
# NPM Configuration
# NPM authentication token for package publishing
NPM_TOKEN=your_npm_token
NPM_REGISTRY=https://registry.npmjs.org/