Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
49 lines (39 sloc)
1.8 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************* | |
| Admin Task Collection | |
| *******************************/ | |
| /* | |
| This are tasks to be run by project maintainers | |
| - Creating Component Repos | |
| - Syncing with GitHub via APIs | |
| - Modifying package files | |
| */ | |
| /******************************* | |
| Tasks | |
| *******************************/ | |
| module.exports = function(gulp) { | |
| var | |
| // 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') | |
| ; | |
| /* Release */ | |
| gulp.task('init distributions', 'Grabs each component from GitHub', initDistributions); | |
| gulp.task('create distributions', 'Updates files in each repo', createDistributions); | |
| gulp.task('init components', 'Grabs each component from GitHub', initComponents); | |
| gulp.task('create components', 'Updates files in each repo', createComponents); | |
| /* Publish */ | |
| gulp.task('update distributions', 'Commits component updates from create to GitHub', updateDistributions); | |
| gulp.task('update components', 'Commits component updates from create to GitHub', updateComponents); | |
| /* Tasks */ | |
| gulp.task('release', 'Stages changes in GitHub repos for all distributions', release); | |
| gulp.task('publish', 'Publishes all releases (components, package)', publish); | |
| gulp.task('register', 'Registers all packages with NPM', register); | |
| }; |