summaryrefslogtreecommitdiffstats
path: root/bin/build.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/build.js')
-rw-r--r--bin/build.js36
1 files changed, 13 insertions, 23 deletions
diff --git a/bin/build.js b/bin/build.js
index 37415bd..597b0de 100644
--- a/bin/build.js
+++ b/bin/build.js
@@ -34,29 +34,19 @@ var makeBuildFunc = function(converter) {
console.log('Starting build ...');
- // Get repo's URL
- return utils.gitURL(dir)
- .then(function(url) {
- // Get ID of repo
- return utils.githubID(url);
- }, function(err) {
- return null;
- })
- .then(function(repoID) {
- return converter(
- _.extend({}, options || {}, {
- input: dir,
- output: outputDir,
- title: options.title,
- description: options.intro,
- github: options.github || repoID,
- githubHost: options.githubHost,
- generator: options.format,
- plugins: options.plugins,
- pluginsConfig: pluginsConfig
- })
- );
- })
+ return converter(
+ _.extend({}, options || {}, {
+ input: dir,
+ output: outputDir,
+ title: options.title,
+ description: options.intro,
+ github: options.github,
+ githubHost: options.githubHost,
+ generator: options.format,
+ plugins: options.plugins,
+ pluginsConfig: pluginsConfig
+ })
+ )
.then(function(output) {
console.log("Successfuly built !");
return output;