-
Notifications
You must be signed in to change notification settings - Fork 19
/
language.js
151 lines (130 loc) · 2.78 KB
/
language.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
var language = {};
var all = 'All';
var go = 'Go';
var javascript = 'Javascript';
var php = 'PHP';
var coffeescript = 'CoffeeScript';
var c = 'C';
var cpp = 'C++';
var csharp = 'C#';
var objectivec = 'Objective-C';
var python = 'Python';
var ruby = 'Ruby';
var swift = 'Swift';
var typescript = 'TypeScript';
var visualbasic = 'VisualBasic';
var rust = 'Rust';
var elm = "Elm"
var typescriptReact = 'TypeScript-React'
language[all] = {
name: all,
extension: '**/*',
exclude: '',
};
language[go] = {
name: go,
alias: 'go',
extension: '**/*.go',
exclude: '',
};
language[javascript] = {
name: javascript,
alias: 'javascript',
extension: '**/*.js',
exclude: '**/node_modules/**',
};
language[php] = {
name: php,
alias: 'php',
extension: '**/*.php',
exclude: '',
};
language[coffeescript] = {
name: coffeescript,
alias: 'coffeescript',
extension: '**/*[.js].coffee',
exclude: '**/node_modules/**',
};
language[c] = {
name: c,
alias: 'c',
extension: '**/*.c',
exclude: '',
};
language[cpp] = {
name: cpp,
alias: 'cpp',
extension: '**/*.cpp',
exclude: '',
};
language[csharp] = {
name: csharp,
alias: 'csharp',
extension: '**/*.cs',
exclude: '',
};
language[objectivec] = {
name: objectivec,
alias: 'objectivec',
extension: '**/*.m',
exclude: '',
};
language[python] = {
name: python,
alias: 'python',
extension: '**/*.py',
exclude: '',
};
language[ruby] = {
name: ruby,
alias: 'ruby',
extension: '**/*.rb',
exclude: '',
};
language[swift] = {
name: swift,
alias: 'swift',
extension: '**/*.swift',
exclude: '',
};
language[typescript] = {
name: typescript,
alias: 'typescript',
extension: '**/*.ts',
exclude: '**/node_modules/**',
};
language[visualbasic] = {
name: visualbasic,
alias: 'visualbasic',
extension: '**/*.vb',
exclude: '',
};
language[rust] = {
name: rust,
alias: 'rust',
extension: '**/*.rs',
exclude: '',
};
language[elm] = {
name: elm,
alias: 'elm',
extension: '**/*.elm',
exclude: '',
}
language[typescriptReact] = {
name: typescriptReact,
alias: 'typescriptreact',
extension: '**/*.tsx',
exclude: '',
}
language.all = [language[all], language[go], language[javascript],
language[php], language[coffeescript], language[c], language[cpp],
language[csharp], language[objectivec], language[python], language[ruby],
language[swift], language[typescript], language[visualbasic], language[rust],
language[elm], language[typescriptReact]
];
language.allName = [all, go, javascript, php, coffeescript, c, cpp, csharp,
objectivec, python, ruby, swift, typescript, visualbasic, rust, elm,
typescriptReact
];
module.exports = language;