1 |
|
2 |
|
3 |
|
4 |
|
5 | const
|
6 |
|
7 | initComponents = require('../admin/components/init'),
|
8 | createComponents = require('../admin/components/create'),
|
9 | updateComponents = require('../admin/components/update'),
|
10 |
|
11 |
|
12 | initDistributions = require('../admin/distributions/init'),
|
13 | createDistributions = require('../admin/distributions/create'),
|
14 | updateDistributions = require('../admin/distributions/update'),
|
15 |
|
16 | release = require('../admin/release'),
|
17 | publish = require('../admin/publish'),
|
18 | register = require('../admin/register')
|
19 | ;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | module.exports = function (gulp) {
|
33 |
|
34 | gulp.task('init distributions', initDistributions);
|
35 | gulp.task('init distributions').description = 'Grabs each component from GitHub';
|
36 |
|
37 | gulp.task('create distributions', createDistributions);
|
38 | gulp.task('create distributions').description = 'Updates files in each repo';
|
39 |
|
40 | gulp.task('init components', initComponents);
|
41 | gulp.task('init components').description = 'Grabs each component from GitHub';
|
42 |
|
43 | gulp.task('create components', createComponents);
|
44 | gulp.task('create components').description = 'Updates files in each repo';
|
45 |
|
46 |
|
47 | gulp.task('update distributions', updateDistributions);
|
48 | gulp.task('update distributions').description = 'Commits component updates from create to GitHub';
|
49 |
|
50 | gulp.task('update components', updateComponents);
|
51 | gulp.task('update components').description = 'Commits component updates from create to GitHub';
|
52 |
|
53 |
|
54 | gulp.task('release', release);
|
55 | gulp.task('release').description = 'Stages changes in GitHub repos for all distributions';
|
56 |
|
57 | gulp.task('publish', publish);
|
58 | gulp.task('publish').description = 'Publishes all releases (components, package)';
|
59 |
|
60 | gulp.task('register', register);
|
61 | gulp.task('register').description = 'Registers all packages with NPM';
|
62 | };
|