UNPKG

2.29 kBJavaScriptView Raw
1/*******************************
2 * Admin Task Collection
3 *******************************/
4
5const
6 // less/css distributions
7 initComponents = require('../admin/components/init'),
8 createComponents = require('../admin/components/create'),
9 updateComponents = require('../admin/components/update'),
10
11 // single component releases
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 This are tasks to be run by project maintainers
23 - Creating Component Repos
24 - Syncing with GitHub via APIs
25 - Modifying package files
26*/
27
28/*******************************
29 * Tasks
30 *******************************/
31
32module.exports = function (gulp) {
33 /* Release */
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 /* Publish */
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 /* Tasks */
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};