(configFile)
| 125 | |
| 126 | // 显示使用说明 |
| 127 | function showUsageInstructions(configFile) { |
| 128 | console.log('\n🎉 Installation completed successfully!\n'); |
| 129 | |
| 130 | console.log('🆕 What\'s new in v1.1.1:'); |
| 131 | console.log(' - 🎨 Integrated CSS-Inspiration with 160+ complete demos'); |
| 132 | console.log(' - 🔍 Search both iCSS articles and CSS-Inspiration demos'); |
| 133 | console.log(' - 💾 Complete runnable code for all demos'); |
| 134 | console.log(' - 📊 Smart categorization by difficulty and type\n'); |
| 135 | |
| 136 | console.log('📋 Next steps:'); |
| 137 | console.log('1. Restart Cursor IDE completely'); |
| 138 | console.log('2. The iCSS MCP Server should be available automatically'); |
| 139 | console.log('3. Try asking Cursor about CSS techniques from both libraries\n'); |
| 140 | |
| 141 | console.log('🛠️ Configuration details:'); |
| 142 | console.log(` Config file: ${configFile}`); |
| 143 | console.log(` Server path: ${path.join(getPackagePath(), 'server.js')}`); |
| 144 | |
| 145 | console.log('\n💡 Enhanced usage examples:'); |
| 146 | console.log(' - "Show me CSS techniques for flex layout"'); |
| 147 | console.log(' - "Find 3D animation demos from CSS-Inspiration"'); |
| 148 | console.log(' - "Get complete code for demo ID 25"'); |
| 149 | console.log(' - "Search for border effects with runnable code"'); |
| 150 | console.log(' - "Get a random CSS tip from both libraries"'); |
| 151 | |
| 152 | console.log('\n🔧 Manual testing:'); |
| 153 | console.log(' Run: npx icss-mcp-server'); |
| 154 | console.log(' Or: icss-mcp'); |
| 155 | |
| 156 | console.log('\n📚 More info: https://github.com/chokcoco/iCSS'); |
| 157 | console.log('📚 CSS-Inspiration: https://github.com/chokcoco/CSS-Inspiration'); |
| 158 | } |
| 159 | |
| 160 | // 主安装流程 |
| 161 | async function main() { |
no test coverage detected