* 生成项目设置 * @returns {Object} 项目设置对象
()
| 145 | facebook: { |
| 146 | appID: '', |
| 147 | audience: { |
| 148 | enable: false, |
| 149 | }, |
| 150 | enable: false, |
| 151 | live: { |
| 152 | enable: false, |
| 153 | }, |
| 154 | }, |
| 155 | 'migrate-history': [], |
| 156 | 'start-scene': 'current', |
| 157 | }; |
| 158 | |
| 159 | if (global.settings) { |
| 160 | const cc = global.settings.CCSettings || global.settings; |
| 161 | if (cc.groupList) { |
| 162 | settings['group-list'] = cc.groupList; |
| 163 | } |
| 164 | if (cc.collisionMatrix) { |
| 165 | settings['collision-matrix'] = cc.collisionMatrix; |
| 166 | } |
| 167 | if (cc.launchScene) { |
| 168 | settings['start-scene'] = path.basename(cc.launchScene).split('.')[0]; |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | return settings; |
| 173 | }, |
| 174 | }; |
| 175 | |
| 176 | module.exports = { projectGenerator }; |
nothing calls this directly
no outgoing calls
no test coverage detected