2022-01-13 13:00:31 +00:00
|
|
|
/*******************************
|
|
|
|
* Admin Task Collection
|
|
|
|
*******************************/
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
const
|
2022-01-13 13:00:31 +00:00
|
|
|
// less/css distributions
|
|
|
|
initComponents = require('../admin/components/init'),
|
|
|
|
createComponents = require('../admin/components/create'),
|
|
|
|
updateComponents = require('../admin/components/update'),
|
|
|
|
|
|
|
|
// single component releases
|
|
|
|
initDistributions = require('../admin/distributions/init'),
|
|
|
|
createDistributions = require('../admin/distributions/create'),
|
|
|
|
updateDistributions = require('../admin/distributions/update'),
|
|
|
|
|
|
|
|
release = require('../admin/release'),
|
|
|
|
publish = require('../admin/publish'),
|
|
|
|
register = require('../admin/register')
|
2023-08-17 09:47:40 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
/*
|
|
|
|
This are tasks to be run by project maintainers
|
|
|
|
- Creating Component Repos
|
|
|
|
- Syncing with GitHub via APIs
|
|
|
|
- Modifying package files
|
|
|
|
*/
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
/*******************************
|
|
|
|
* Tasks
|
|
|
|
*******************************/
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
module.exports = function (gulp) {
|
|
|
|
/* Release */
|
|
|
|
gulp.task('init distributions', initDistributions);
|
|
|
|
gulp.task('init distributions').description = 'Grabs each component from GitHub';
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
gulp.task('create distributions', createDistributions);
|
|
|
|
gulp.task('create distributions').description = 'Updates files in each repo';
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
gulp.task('init components', initComponents);
|
|
|
|
gulp.task('init components').description = 'Grabs each component from GitHub';
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
gulp.task('create components', createComponents);
|
|
|
|
gulp.task('create components').description = 'Updates files in each repo';
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
/* Publish */
|
|
|
|
gulp.task('update distributions', updateDistributions);
|
|
|
|
gulp.task('update distributions').description = 'Commits component updates from create to GitHub';
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
gulp.task('update components', updateComponents);
|
|
|
|
gulp.task('update components').description = 'Commits component updates from create to GitHub';
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
/* Tasks */
|
|
|
|
gulp.task('release', release);
|
|
|
|
gulp.task('release').description = 'Stages changes in GitHub repos for all distributions';
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
gulp.task('publish', publish);
|
|
|
|
gulp.task('publish').description = 'Publishes all releases (components, package)';
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
gulp.task('register', register);
|
|
|
|
gulp.task('register').description = 'Registers all packages with NPM';
|
2022-08-05 09:25:53 +00:00
|
|
|
};
|