1 | 'use strict';
|
2 |
|
3 | module.exports = {
|
4 | spa: {
|
5 | key: 's',
|
6 | name: 'spa',
|
7 | description: 'Enables single page application mode',
|
8 | method: async function () { return true; }
|
9 | },
|
10 | cors: {
|
11 | key: 'c',
|
12 | name: 'cors',
|
13 | description: 'Enables cross origin resource sharing mode',
|
14 | method: async function () { return true; }
|
15 | },
|
16 | bundle: {
|
17 | key: 'b',
|
18 | name: 'bundle',
|
19 | description: 'Bundles the output',
|
20 | method: async function () { return true; }
|
21 | },
|
22 | minify: {
|
23 | key: 'm',
|
24 | name: 'minify',
|
25 | description: 'Minifies the output',
|
26 | method: async function () { return true; }
|
27 | },
|
28 | transpile: {
|
29 | key: 't',
|
30 | name: 'transpile',
|
31 | description: 'Transpile the output',
|
32 | method: async function () { return true; }
|
33 | },
|
34 | watch: {
|
35 | key: 'w',
|
36 | name: 'watch',
|
37 | description: 'Watches a file or folder',
|
38 | method: async function () { return true; }
|
39 | },
|
40 | domain: {
|
41 | key: 'd',
|
42 | name: 'domain',
|
43 | description: 'Inserts domain into sitemap',
|
44 | method: async function (domain) { return domain; }
|
45 | },
|
46 | path: {
|
47 | key: 'p',
|
48 | name: 'path',
|
49 | description: 'Defines the path to watch',
|
50 | method: async function (path) { return path; }
|
51 | }
|
52 | };
|