7 changed files with 170 additions and 68 deletions
Split View
Diff Options
-
26tasks/admin/create-repos.js
-
44tasks/admin/register-repos.js
-
40tasks/admin/release-all.js
-
86tasks/admin/update-repos.js
-
4tasks/build.js
-
36tasks/config/admin/github.js
-
2tasks/config/project/release.js
@ -1,28 +1,26 @@ |
|||
/* Release All */ |
|||
gulp.task('release all', false, function() { |
|||
/******************************* |
|||
Release All |
|||
*******************************/ |
|||
|
|||
/* |
|||
This task update all SUI individual component repos with new versions of components |
|||
|
|||
if(!oAuth) { |
|||
console.error('Must add node include tasks/admin/oauth.js with oauth token for GitHub'); |
|||
return; |
|||
} |
|||
* Creates local files at ../components/ with each repo for release |
|||
* Syncs each component with GitHub |
|||
|
|||
github = new githubAPI({ |
|||
version : '3.0.0', |
|||
debug : true, |
|||
protocol : 'https', |
|||
timeout : 5000 |
|||
}); |
|||
*/ |
|||
|
|||
github.authenticate({ |
|||
type: 'oauth', |
|||
token: oAuth.token |
|||
}); |
|||
var |
|||
runSequence = require('run-sequence') |
|||
; |
|||
|
|||
/* Release All */ |
|||
module.exports = function() { |
|||
|
|||
// gulp build
|
|||
runSequence( |
|||
'build', |
|||
'create components', |
|||
'update component repos' |
|||
'build', // build Semantic
|
|||
'create components', // create each component repo
|
|||
'update component repos' // update component repos on github
|
|||
); |
|||
|
|||
}); |
|||
}; |
@ -0,0 +1,36 @@ |
|||
/******************************* |
|||
GitHub Login |
|||
*******************************/ |
|||
/* |
|||
Logs into GitHub using OAuth |
|||
*/ |
|||
|
|||
var |
|||
fs = require('fs'), |
|||
githubAPI = require('github'), |
|||
|
|||
// stores oauth info for GitHub API
|
|||
oAuth = fs.existsSync('./oauth.js') |
|||
? require('./oauth') |
|||
: false, |
|||
github |
|||
; |
|||
|
|||
if(!oAuth) { |
|||
console.error('Must add oauth token for GitHub in tasks/admin/oauth.js'); |
|||
return; |
|||
} |
|||
|
|||
github = new githubAPI({ |
|||
version : '3.0.0', |
|||
debug : true, |
|||
protocol : 'https', |
|||
timeout : 5000 |
|||
}); |
|||
|
|||
github.authenticate({ |
|||
type: 'oauth', |
|||
token: oAuth.token |
|||
}); |
|||
|
|||
module.exports = github; |
Write
Preview
Loading…
Cancel
Save