Skip to content

Commit

Permalink
Fix admin issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack authored and Jack committed Nov 6, 2015
1 parent 1bf0f89 commit d1c6b9b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 62 deletions.
57 changes: 13 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,60 +16,28 @@
"scripts": {
"install": "gulp install"
},
"peerDependencies": {
"better-console": "*",
"del": "*",
"extend": "*",
"gulp": "*",
"gulp-autoprefixer": "*",
"gulp-chmod": "*",
"gulp-clone": "*",
"gulp-concat": "*",
"gulp-concat-css": "*",
"gulp-copy": "*",
"gulp-dedupe": "*",
"gulp-flatten": "*",
"gulp-header": "*",
"gulp-help": "*",
"gulp-if": "*",
"gulp-less": "*",
"gulp-minify-css": "*",
"gulp-notify": "*",
"gulp-plumber": "*",
"gulp-print": "*",
"gulp-rename": "*",
"gulp-replace": "*",
"gulp-rtlcss": "*",
"gulp-uglify": "*",
"gulp-util": "*",
"gulp-watch": "*",
"map-stream": "*",
"require-dot-file": "*",
"run-sequence": "*",
"yamljs": "*"
},
"dependencies": {
"better-console": "*",
"del": "^1.2.0",
"extend": "^2.0.1",
"del": "^2.0.2",
"extend": "^3.0.0",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^2.3.1",
"gulp-autoprefixer": "^3.1.0",
"gulp-chmod": "^1.2.0",
"gulp-clone": "^1.0.0",
"gulp-concat": "^2.6.0",
"gulp-concat-css": "^2.2.0",
"gulp-copy": "0.0.2",
"gulp-dedupe": "0.0.2",
"gulp-flatten": "^0.1.0",
"gulp-flatten": "^0.2.0",
"gulp-header": "^1.2.2",
"gulp-help": "^1.6.0",
"gulp-if": "^1.2.5",
"gulp-if": "^2.0.0",
"gulp-json-editor": "^2.2.1",
"gulp-less": "^3.0.3",
"gulp-minify-css": "^1.2.0",
"gulp-notify": "^2.2.0",
"gulp-plumber": "^1.0.1",
"gulp-print": "^1.1.0",
"gulp-print": "^2.0.1",
"gulp-prompt": "^0.1.2",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.3",
Expand All @@ -79,18 +47,19 @@
"gulp-watch": "^4.3.1",
"jquery": "^2.1.4",
"map-stream": "^0.1.0",
"merge-stream": "^1.0.0",
"mkdirp": "^0.5.1",
"require-dot-file": "^0.4.0",
"run-sequence": "^1.1.0",
"wrench": "https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
"yamljs": "^0.2.3"
},
"devDependencies": {
"github": "^0.2.4",
"gulp-concat-filenames": "^1.0.0",
"gulp-debug": "^2.0.1",
"gulp-git": "^1.2.4",
"gulp-tap": "^0.1.3",
"merge-stream": "^0.1.7"
"github": "*",
"gulp-concat-filenames": "*",
"gulp-debug": "*",
"gulp-git": "*",
"gulp-tap": "*",
"merge-stream": "*"
}
}
23 changes: 11 additions & 12 deletions tasks/admin/distributions/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,17 @@ module.exports = function(callback) {
}

var
component = release.distributions[index],
lowerCaseComponent = component.toLowerCase(),
outputDirectory = path.resolve(release.outputRoot + lowerCaseComponent),
repoName = release.distRepoRoot + component,

gitOptions = { cwd: outputDirectory },
pullOptions = { args: '-q', cwd: outputDirectory, quiet: true },
resetOptions = { args: '-q --hard', cwd: outputDirectory, quiet: true },

gitURL = 'https://github.com/' + release.org + '/' + repoName + '.git',
repoURL = 'https://github.com/' + release.org + '/' + repoName + '/',
localRepoSetup = fs.existsSync(path.join(outputDirectory, '.git'))
component = release.distributions[index],
lowerCaseComponent = component.toLowerCase(),
outputDirectory = path.resolve(release.outputRoot + lowerCaseComponent),
repoName = release.distRepoRoot + component,

gitOptions = { cwd: outputDirectory },
pullOptions = { args: '-q', cwd: outputDirectory, quiet: true },
resetOptions = { args: '-q --hard', cwd: outputDirectory, quiet: true },
gitURL = '[email protected]:' + release.org + '/' + repoName + '.git',
repoURL = 'https://github.com/' + release.org + '/' + repoName + '/',
localRepoSetup = fs.existsSync(path.join(outputDirectory, '.git'))
;

console.log('Processing repository: ' + outputDirectory);
Expand Down
3 changes: 0 additions & 3 deletions tasks/admin/distributions/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ module.exports = function(callback) {
outputDirectory = path.resolve(path.join(release.outputRoot, distribution.toLowerCase() )),
repoName = release.distRepoRoot + distribution,

gitURL = 'https://github.com/' + release.org + '/' + repoName + '.git',
repoURL = 'https://github.com/' + release.org + '/' + repoName + '/',

commitArgs = (oAuth.name !== undefined && oAuth.email !== undefined)
? '--author "' + oAuth.name + ' <' + oAuth.email + '>"'
: '',
Expand Down
7 changes: 4 additions & 3 deletions tasks/config/admin/oauth.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*/

module.exports = {
token : 'AN-OAUTH2-TOKEN',
name : 'Your Name',
email : '[email protected]'
token : 'AN-OAUTH2-TOKEN',
username : 'github-username',
name : 'Your Name',
email : '[email protected]'
};

0 comments on commit d1c6b9b

Please sign in to comment.