1 |
|
2 | module.exports = {
|
3 | actions: defaultActions()
|
4 | };
|
5 |
|
6 | function defaultActions() {
|
7 | var actions = [
|
8 | 'concat',
|
9 | 'copy',
|
10 |
|
11 | 'custom',
|
12 | 'template',
|
13 |
|
14 | 'config',
|
15 | 'import',
|
16 |
|
17 | 'jshint',
|
18 | 'uglify',
|
19 | 'watch',
|
20 |
|
21 | 'release',
|
22 | 'bump',
|
23 | 'npm',
|
24 | 'plugin',
|
25 |
|
26 | 'reference',
|
27 | 'server',
|
28 | 'shell',
|
29 |
|
30 | 'transpile',
|
31 |
|
32 |
|
33 | 'build',
|
34 | 'project-import',
|
35 | 'project-reference',
|
36 |
|
37 | 'atma-clone'
|
38 | ];
|
39 |
|
40 | var paths = actions.reduce((obj, action) => {
|
41 | obj[action] = `/src/action/${action}.js`;
|
42 | return obj;
|
43 | }, {});
|
44 |
|
45 |
|
46 | var solution = '/src/action/solution.js';
|
47 | paths['project-import'] =
|
48 | paths['project-reference'] =
|
49 | paths['build'] = solution;
|
50 |
|
51 |
|
52 |
|
53 | paths['gen'] = paths['template'];
|
54 | paths['run'] = paths['custom'];
|
55 | return paths;
|
56 | } |
\ | No newline at end of file |