mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-05 21:41:53 +08:00
revert generator
This commit is contained in:
parent
496ed7f4b4
commit
d8337c8120
29
generator.js
29
generator.js
@ -30,10 +30,37 @@ async function generate(dir, files, base = '') {
|
||||
module.exports = (api, options, rootOptions) => {
|
||||
|
||||
api.extendPackage(pkg => {
|
||||
delete pkg.postcss
|
||||
delete pkg.browserslist
|
||||
return {
|
||||
scripts: {
|
||||
'serve': 'npm run dev:h5',
|
||||
'build': 'npm run build:h5',
|
||||
'dev:h5': 'cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve',
|
||||
'build:h5': 'cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build',
|
||||
'dev:mp-weixin': 'cross-env NODE_ENV=development UNI_PLATFORM=mp-weixin vue-cli-service uni-build --watch',
|
||||
'dev:mp-baidu': 'cross-env NODE_ENV=development UNI_PLATFORM=mp-baidu vue-cli-service uni-build --watch',
|
||||
'dev:mp-alipay': 'cross-env NODE_ENV=development UNI_PLATFORM=mp-alipay vue-cli-service uni-build --watch',
|
||||
'build:mp-weixin': 'cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build',
|
||||
'build:mp-baidu': 'cross-env NODE_ENV=production UNI_PLATFORM=mp-baidu vue-cli-service uni-build',
|
||||
'build:mp-alipay': 'cross-env NODE_ENV=production UNI_PLATFORM=mp-alipay vue-cli-service uni-build'
|
||||
},
|
||||
dependencies: {
|
||||
'flyio': '^0.6.2',
|
||||
'vuex': '^3.0.1',
|
||||
'@dcloudio/uni-h5': '*',
|
||||
'@dcloudio/uni-mp-weixin': '*',
|
||||
'@dcloudio/uni-mp-baidu': '*',
|
||||
'@dcloudio/uni-mp-alipay': '*'
|
||||
},
|
||||
devDependencies: {
|
||||
'@dcloudio/vue-cli-plugin-uni': '*'
|
||||
}
|
||||
},
|
||||
browserslist: [
|
||||
'last 3 versions',
|
||||
'Android >= 4.4',
|
||||
'ios >= 8'
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user