2017-05-30 13:14:10 +00:00
|
|
|
/*!
|
|
|
|
* Nuxt.js
|
|
|
|
* (c) 2016-2017 Chopin Brothers
|
|
|
|
* Released under the MIT License.
|
|
|
|
*/
|
2017-01-11 21:18:23 +00:00
|
|
|
|
2017-06-16 12:42:45 +00:00
|
|
|
const path = require('path')
|
|
|
|
|
2017-03-24 01:15:13 +00:00
|
|
|
process.noDeprecation = true
|
|
|
|
|
2017-06-16 12:42:45 +00:00
|
|
|
// Node Source Map Support
|
|
|
|
// https://github.com/evanw/node-source-map-support
|
|
|
|
require('source-map-support').install();
|
|
|
|
|
2017-06-18 07:36:00 +00:00
|
|
|
// Require Core
|
2017-06-16 12:42:45 +00:00
|
|
|
const Core = require('./dist/core.js')
|
2017-06-18 08:10:24 +00:00
|
|
|
// Object.assign(exports, Core.default || Core)
|
2017-06-18 07:36:00 +00:00
|
|
|
|
|
|
|
// Require Builder
|
|
|
|
const Builder = require('./dist/builder')
|
2017-06-18 08:10:24 +00:00
|
|
|
// Object.assign(exports, Builder.default || Builder)
|
|
|
|
|
|
|
|
// FIXME
|
|
|
|
Object.assign(Core.default || Core, Builder.default || Builder)
|
|
|
|
module.exports = Core.default || Core
|
2017-06-16 12:42:45 +00:00
|
|
|
|
|
|
|
// Use special env flag to specify app dir without modify builder
|
2017-06-16 13:04:42 +00:00
|
|
|
if (!process.env.NUXT_APP_DIR) {
|
2017-06-18 07:36:00 +00:00
|
|
|
process.env.NUXT_APP_DIR = path.resolve(__dirname, 'lib/app')
|
2017-06-16 12:42:45 +00:00
|
|
|
}
|