UNPKG

10.6 kBJavaScriptView Raw
1'use strict';
2
3var file = require('./file');
4
5module.exports = function(app) {
6 /**
7 * Generate a(n) `afl-3.0` license file to the current working directory.
8 *
9 * ```sh
10 * $ gen license:afl-3.0
11 * $ gen license:afl-3.0 --dest ./foo
12 * ```
13 * @name afl-3.0
14 * @api public
15 */
16
17 app.task('afl-3.0', ['license-afl-3.0']);
18 app.task('license-afl-3.0', { silent: true }, function() {
19 return file(app, '../templates/afl-3.0.tmpl');
20 });
21
22 /**
23 * Generate a(n) `apache-2.0` license file to the current working directory.
24 *
25 * ```sh
26 * $ gen license:apache-2.0
27 * $ gen license:apache-2.0 --dest ./foo
28 * ```
29 * @name apache-2.0
30 * @api public
31 */
32
33 app.task('apache-2.0', ['license-apache-2.0']);
34 app.task('license-apache-2.0', { silent: true }, function() {
35 return file(app, '../templates/apache-2.0.tmpl');
36 });
37
38 /**
39 * Generate a(n) `artistic-2.0` license file to the current working directory.
40 *
41 * ```sh
42 * $ gen license:artistic-2.0
43 * $ gen license:artistic-2.0 --dest ./foo
44 * ```
45 * @name artistic-2.0
46 * @api public
47 */
48
49 app.task('artistic-2.0', ['license-artistic-2.0']);
50 app.task('license-artistic-2.0', { silent: true }, function() {
51 return file(app, '../templates/artistic-2.0.tmpl');
52 });
53
54 /**
55 * Generate a(n) `bsd-2-clause` license file to the current working directory.
56 *
57 * ```sh
58 * $ gen license:bsd-2-clause
59 * $ gen license:bsd-2-clause --dest ./foo
60 * ```
61 * @name bsd-2-clause
62 * @api public
63 */
64
65 app.task('bsd-2-clause', ['license-bsd-2-clause']);
66 app.task('license-bsd-2-clause', { silent: true }, function() {
67 return file(app, '../templates/bsd-2-clause.tmpl');
68 });
69
70 /**
71 * Generate a(n) `bsd-3-clause` license file to the current working directory.
72 *
73 * ```sh
74 * $ gen license:bsd-3-clause
75 * $ gen license:bsd-3-clause --dest ./foo
76 * ```
77 * @name bsd-3-clause
78 * @api public
79 */
80
81 app.task('bsd-3-clause', ['license-bsd-3-clause']);
82 app.task('license-bsd-3-clause', { silent: true }, function() {
83 return file(app, '../templates/bsd-3-clause.tmpl');
84 });
85
86 /**
87 * Generate a(n) `bsd-3-clause-clear` license file to the current working directory.
88 *
89 * ```sh
90 * $ gen license:bsd-3-clause-clear
91 * $ gen license:bsd-3-clause-clear --dest ./foo
92 * ```
93 * @name bsd-3-clause-clear
94 * @api public
95 */
96
97 app.task('bsd-3-clause-clear', ['license-bsd-3-clause-clear']);
98 app.task('license-bsd-3-clause-clear', { silent: true }, function() {
99 return file(app, '../templates/bsd-3-clause-clear.tmpl');
100 });
101
102 /**
103 * Generate a(n) `cc-by-4.0` license file to the current working directory.
104 *
105 * ```sh
106 * $ gen license:cc-by-4.0
107 * $ gen license:cc-by-4.0 --dest ./foo
108 * ```
109 * @name cc-by-4.0
110 * @api public
111 */
112
113 app.task('cc-by-4.0', ['license-cc-by-4.0']);
114 app.task('license-cc-by-4.0', { silent: true }, function() {
115 return file(app, '../templates/cc-by-4.0.tmpl');
116 });
117
118 /**
119 * Generate a(n) `cc-by-sa-4.0` license file to the current working directory.
120 *
121 * ```sh
122 * $ gen license:cc-by-sa-4.0
123 * $ gen license:cc-by-sa-4.0 --dest ./foo
124 * ```
125 * @name cc-by-sa-4.0
126 * @api public
127 */
128
129 app.task('cc-by-sa-4.0', ['license-cc-by-sa-4.0']);
130 app.task('license-cc-by-sa-4.0', { silent: true }, function() {
131 return file(app, '../templates/cc-by-sa-4.0.tmpl');
132 });
133
134 /**
135 * Generate a(n) `cc0-1.0` license file to the current working directory.
136 *
137 * ```sh
138 * $ gen license:cc0-1.0
139 * $ gen license:cc0-1.0 --dest ./foo
140 * ```
141 * @name cc0-1.0
142 * @api public
143 */
144
145 app.task('cc0-1.0', ['license-cc0-1.0']);
146 app.task('license-cc0-1.0', { silent: true }, function() {
147 return file(app, '../templates/cc0-1.0.tmpl');
148 });
149
150 /**
151 * Generate a(n) `wtfpl` license file to the current working directory.
152 *
153 * ```sh
154 * $ gen license:wtfpl
155 * $ gen license:wtfpl --dest ./foo
156 * ```
157 * @name wtfpl
158 * @api public
159 */
160
161 app.task('wtfpl', ['license-wtfpl']);
162 app.task('license-wtfpl', { silent: true }, function() {
163 return file(app, '../templates/wtfpl.tmpl');
164 });
165
166 /**
167 * Generate a(n) `epl-1.0` license file to the current working directory.
168 *
169 * ```sh
170 * $ gen license:epl-1.0
171 * $ gen license:epl-1.0 --dest ./foo
172 * ```
173 * @name epl-1.0
174 * @api public
175 */
176
177 app.task('epl-1.0', ['license-epl-1.0']);
178 app.task('license-epl-1.0', { silent: true }, function() {
179 return file(app, '../templates/epl-1.0.tmpl');
180 });
181
182 /**
183 * Generate a(n) `eupl-1.1` license file to the current working directory.
184 *
185 * ```sh
186 * $ gen license:eupl-1.1
187 * $ gen license:eupl-1.1 --dest ./foo
188 * ```
189 * @name eupl-1.1
190 * @api public
191 */
192
193 app.task('eupl-1.1', ['license-eupl-1.1']);
194 app.task('license-eupl-1.1', { silent: true }, function() {
195 return file(app, '../templates/eupl-1.1.tmpl');
196 });
197
198 /**
199 * Generate a(n) `agpl-3.0` license file to the current working directory.
200 *
201 * ```sh
202 * $ gen license:agpl-3.0
203 * $ gen license:agpl-3.0 --dest ./foo
204 * ```
205 * @name agpl-3.0
206 * @api public
207 */
208
209 app.task('agpl-3.0', ['license-agpl-3.0']);
210 app.task('license-agpl-3.0', { silent: true }, function() {
211 return file(app, '../templates/agpl-3.0.tmpl');
212 });
213
214 /**
215 * Generate a(n) `gpl-2.0` license file to the current working directory.
216 *
217 * ```sh
218 * $ gen license:gpl-2.0
219 * $ gen license:gpl-2.0 --dest ./foo
220 * ```
221 * @name gpl-2.0
222 * @api public
223 */
224
225 app.task('gpl-2.0', ['license-gpl-2.0']);
226 app.task('license-gpl-2.0', { silent: true }, function() {
227 return file(app, '../templates/gpl-2.0.tmpl');
228 });
229
230 /**
231 * Generate a(n) `gpl-3.0` license file to the current working directory.
232 *
233 * ```sh
234 * $ gen license:gpl-3.0
235 * $ gen license:gpl-3.0 --dest ./foo
236 * ```
237 * @name gpl-3.0
238 * @api public
239 */
240
241 app.task('gpl-3.0', ['license-gpl-3.0']);
242 app.task('license-gpl-3.0', { silent: true }, function() {
243 return file(app, '../templates/gpl-3.0.tmpl');
244 });
245
246 /**
247 * Generate a(n) `lgpl-2.1` license file to the current working directory.
248 *
249 * ```sh
250 * $ gen license:lgpl-2.1
251 * $ gen license:lgpl-2.1 --dest ./foo
252 * ```
253 * @name lgpl-2.1
254 * @api public
255 */
256
257 app.task('lgpl-2.1', ['license-lgpl-2.1']);
258 app.task('license-lgpl-2.1', { silent: true }, function() {
259 return file(app, '../templates/lgpl-2.1.tmpl');
260 });
261
262 /**
263 * Generate a(n) `lgpl-3.0` license file to the current working directory.
264 *
265 * ```sh
266 * $ gen license:lgpl-3.0
267 * $ gen license:lgpl-3.0 --dest ./foo
268 * ```
269 * @name lgpl-3.0
270 * @api public
271 */
272
273 app.task('lgpl-3.0', ['license-lgpl-3.0']);
274 app.task('license-lgpl-3.0', { silent: true }, ['gpl-3.0'], function() {
275 return file(app, '../templates/lgpl-3.0.tmpl');
276 });
277
278 /**
279 * Generate a(n) `isc` license file to the current working directory.
280 *
281 * ```sh
282 * $ gen license:isc
283 * $ gen license:isc --dest ./foo
284 * ```
285 * @name isc
286 * @api public
287 */
288
289 app.task('isc', ['license-isc']);
290 app.task('license-isc', { silent: true }, function() {
291 return file(app, '../templates/isc.tmpl');
292 });
293
294 /**
295 * Generate a(n) `lppl-1.3c` license file to the current working directory.
296 *
297 * ```sh
298 * $ gen license:lppl-1.3c
299 * $ gen license:lppl-1.3c --dest ./foo
300 * ```
301 * @name lppl-1.3c
302 * @api public
303 */
304
305 app.task('lppl-1.3c', ['license-lppl-1.3c']);
306 app.task('license-lppl-1.3c', { silent: true }, function() {
307 return file(app, '../templates/lppl-1.3c.tmpl');
308 });
309
310 /**
311 * Generate a(n) `mit` license file to the current working directory.
312 *
313 * ```sh
314 * $ gen license:mit
315 * $ gen license:mit --dest ./foo
316 * ```
317 * @name mit
318 * @api public
319 */
320
321 app.task('mit', ['license-mit']);
322 app.task('license-mit', { silent: true }, function() {
323 return file(app, '../templates/mit.tmpl');
324 });
325
326 /**
327 * Generate a(n) `ms-pl` license file to the current working directory.
328 *
329 * ```sh
330 * $ gen license:ms-pl
331 * $ gen license:ms-pl --dest ./foo
332 * ```
333 * @name ms-pl
334 * @api public
335 */
336
337 app.task('ms-pl', ['license-ms-pl']);
338 app.task('license-ms-pl', { silent: true }, function() {
339 return file(app, '../templates/ms-pl.tmpl');
340 });
341
342 /**
343 * Generate a(n) `ms-rl` license file to the current working directory.
344 *
345 * ```sh
346 * $ gen license:ms-rl
347 * $ gen license:ms-rl --dest ./foo
348 * ```
349 * @name ms-rl
350 * @api public
351 */
352
353 app.task('ms-rl', ['license-ms-rl']);
354 app.task('license-ms-rl', { silent: true }, function() {
355 return file(app, '../templates/ms-rl.tmpl');
356 });
357
358 /**
359 * Generate a(n) `mpl-2.0` license file to the current working directory.
360 *
361 * ```sh
362 * $ gen license:mpl-2.0
363 * $ gen license:mpl-2.0 --dest ./foo
364 * ```
365 * @name mpl-2.0
366 * @api public
367 */
368
369 app.task('mpl-2.0', ['license-mpl-2.0']);
370 app.task('license-mpl-2.0', { silent: true }, function() {
371 return file(app, '../templates/mpl-2.0.tmpl');
372 });
373
374 /**
375 * Generate a(n) `osl-3.0` license file to the current working directory.
376 *
377 * ```sh
378 * $ gen license:osl-3.0
379 * $ gen license:osl-3.0 --dest ./foo
380 * ```
381 * @name osl-3.0
382 * @api public
383 */
384
385 app.task('osl-3.0', ['license-osl-3.0']);
386 app.task('license-osl-3.0', { silent: true }, function() {
387 return file(app, '../templates/osl-3.0.tmpl');
388 });
389
390 /**
391 * Generate a(n) `ofl-1.1` license file to the current working directory.
392 *
393 * ```sh
394 * $ gen license:ofl-1.1
395 * $ gen license:ofl-1.1 --dest ./foo
396 * ```
397 * @name ofl-1.1
398 * @api public
399 */
400
401 app.task('ofl-1.1', ['license-ofl-1.1']);
402 app.task('license-ofl-1.1', { silent: true }, function() {
403 return file(app, '../templates/ofl-1.1.tmpl');
404 });
405
406 /**
407 * Generate a(n) `unlicense` license file to the current working directory.
408 *
409 * ```sh
410 * $ gen license:unlicense
411 * $ gen license:unlicense --dest ./foo
412 * ```
413 * @name unlicense
414 * @api public
415 */
416
417 app.task('unlicense', ['license-unlicense']);
418 app.task('license-unlicense', { silent: true }, function() {
419 return file(app, '../templates/unlicense.tmpl');
420 });
421
422 /**
423 * Generate a(n) `zlib` license file to the current working directory.
424 *
425 * ```sh
426 * $ gen license:zlib
427 * $ gen license:zlib --dest ./foo
428 * ```
429 * @name zlib
430 * @api public
431 */
432
433 app.task('zlib', ['license-zlib']);
434 app.task('license-zlib', { silent: true }, function() {
435 return file(app, '../templates/zlib.tmpl');
436 });
437
438};