UNPKG

544 BJavaScriptView Raw
1const NeueApi = require('@vueneue/ssr-core/build/NeueApi');
2
3module.exports = api => {
4 const { projectOptions } = api.service;
5
6 // Install Neue API
7 api.neue = new NeueApi(api);
8
9 // Vue CLI commands
10 require('./commands/serve')(api, projectOptions);
11 require('./commands/build')(api, projectOptions);
12 require('./commands/start')(api, projectOptions);
13 require('./commands/generate')(api, projectOptions);
14};
15
16module.exports.defaultModes = {
17 'ssr:serve': 'development',
18 'ssr:build': 'production',
19 'ssr:start': 'production',
20};