feat: 增加 TypeScript 默认模板

This commit is contained in:
fxy060608
2019-01-04 18:13:10 +08:00
parent 17e4396c78
commit 5d6e63dca4
13 changed files with 329 additions and 144 deletions
+18 -18
View File
@@ -1,24 +1,24 @@
const plugins = []
process.UNI_LIBRARIES = process.UNI_LIBRARIES || ['@dcloudio/uni-ui']
process.UNI_LIBRARIES.forEach(libraryName => {
plugins.push([
'import',
{
'libraryName': libraryName,
'customName': (name) => {
return `${libraryName}/lib/${name}/${name}`
}
}
])
plugins.push([
'import',
{
'libraryName': libraryName,
'customName': (name) => {
return `${libraryName}/lib/${name}/${name}`
}
}
])
})
module.exports = {
presets: [
[
'@vue/app',
{
useBuiltIns: 'entry'
}
]
],
plugins
presets: [
[
'@vue/app',
{
useBuiltIns: 'entry'
}
]
],
plugins
}