forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
45 lines (38 loc) · 1.47 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* jshint node: true */
'use strict';
const config = require('../models/config');
const path = require('path');
module.exports = {
name: 'ng2',
config: function () {
this.project.ngConfigObj = this.project.ngConfigObj || config.CliConfig.fromProject();
this.project.ngConfig = this.project.ngConfig || (
this.project.ngConfigObj && this.project.ngConfigObj.config);
},
blueprintsPath: function () {
return path.join(__dirname, '../blueprints');
},
includedCommands: function () {
return {
'build': require('../commands/build').default,
'serve': require('../commands/serve').default,
'new': require('../commands/new').default,
'generate': require('../commands/generate').default,
'destroy': require('../commands/destroy').default,
'init': require('../commands/init').default,
'test': require('../commands/test').default,
'e2e': require('../commands/e2e').default,
'help': require('../commands/help').default,
'lint': require('../commands/lint').default,
'version': require('../commands/version').default,
'completion': require('../commands/completion').default,
'doc': require('../commands/doc').default,
'xi18n': require('../commands/xi18n').default,
// Easter eggs.
'make-this-awesome': require('../commands/easter-egg').default,
// Configuration.
'set': require('../commands/set').default,
'get': require('../commands/get').default
};
}
};