feat: initialize Ballet Island 微信小程序 with basic structure and functionality
- Add project configuration for WeChat mini program. - Create skills lock file for Taroify integration. - Set up app configuration and styles. - Implement main app component and index page with welcome message. - Add health check service to verify backend readiness. - Configure TypeScript settings and global types.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { defineConfig } from '@tarojs/cli'
|
||||
|
||||
export default defineConfig<'webpack5'>({
|
||||
projectName: 'ballet-island',
|
||||
designWidth: 375,
|
||||
deviceRatio: {
|
||||
375: 2,
|
||||
640: 1.17,
|
||||
750: 1,
|
||||
828: 0.905,
|
||||
},
|
||||
sourceRoot: 'src',
|
||||
outputRoot: 'dist',
|
||||
framework: 'react',
|
||||
compiler: {
|
||||
type: 'webpack5',
|
||||
prebundle: { enable: false },
|
||||
},
|
||||
cache: { enable: true },
|
||||
defineConstants: {
|
||||
__API_BASE_URL__: JSON.stringify(
|
||||
(process.env.TARO_APP_API_BASE_URL || 'http://127.0.0.1:8080').replace(/\/$/, ''),
|
||||
),
|
||||
},
|
||||
mini: {
|
||||
postcss: {
|
||||
pxtransform: { enable: true },
|
||||
cssModules: { enable: false },
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user