2018-10-17 21:28:25 +00:00
|
|
|
export default {
|
|
|
|
build: true,
|
2018-11-27 15:32:00 +00:00
|
|
|
hooks: {
|
2019-07-10 10:45:49 +00:00
|
|
|
async 'build:done' (pkg) {
|
2018-11-27 15:32:00 +00:00
|
|
|
const mono = pkg.load('../..')
|
|
|
|
const nuxt = pkg.load('../nuxt')
|
2018-10-17 21:28:25 +00:00
|
|
|
|
2018-11-27 15:32:00 +00:00
|
|
|
await pkg.copyFilesFrom(mono, [
|
2018-10-17 21:28:25 +00:00
|
|
|
'LICENSE'
|
|
|
|
])
|
|
|
|
|
|
|
|
pkg.copyFieldsFrom(nuxt, [
|
|
|
|
'license',
|
|
|
|
'repository',
|
|
|
|
'contributors',
|
|
|
|
'keywords',
|
|
|
|
'engines'
|
|
|
|
])
|
|
|
|
|
2018-11-27 15:32:00 +00:00
|
|
|
await pkg.writePackage()
|
|
|
|
}
|
2020-12-22 17:07:50 +00:00
|
|
|
},
|
|
|
|
ignoreUnused: [
|
|
|
|
// directly used by bin
|
|
|
|
'@nuxt/cli',
|
|
|
|
// discovered by config
|
|
|
|
'@nuxt/telemetry',
|
|
|
|
// vue-app externals for ssr
|
|
|
|
'node-fetch',
|
|
|
|
'vue',
|
|
|
|
'vue-client-only',
|
|
|
|
'vue-meta',
|
|
|
|
'vue-no-ssr',
|
|
|
|
'vue-router',
|
2020-12-22 22:06:08 +00:00
|
|
|
'vuex',
|
|
|
|
// Distro
|
|
|
|
'@nuxt/config',
|
|
|
|
'@nuxt/server',
|
|
|
|
'@nuxt/utils',
|
|
|
|
'@nuxt/vue-renderer'
|
2020-12-22 17:07:50 +00:00
|
|
|
]
|
2018-10-17 21:28:25 +00:00
|
|
|
}
|