1 | const NeueApi = require('@vueneue/ssr-core/build/NeueApi');
|
2 |
|
3 | module.exports = api => {
|
4 | const { projectOptions } = api.service;
|
5 |
|
6 |
|
7 | api.neue = new NeueApi(api);
|
8 |
|
9 |
|
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 |
|
16 | module.exports.defaultModes = {
|
17 | 'ssr:serve': 'development',
|
18 | 'ssr:build': 'production',
|
19 | 'ssr:start': 'production',
|
20 | };
|