{"comment":{"url":"https://api.github.com/repos/pietgeursen/slush-dogstack/comments/21026880","html_url":"https://github.com/pietgeursen/slush-dogstack/commit/5254a916357dc479881d6df239ff260d1362caab#commitcomment-21026880","id":21026880,"user":{"login":"ahdinosaur","id":719605,"avatar_url":"https://avatars.githubusercontent.com/u/719605?v=3","gravatar_id":"","url":"https://api.github.com/users/ahdinosaur","html_url":"https://github.com/ahdinosaur","followers_url":"https://api.github.com/users/ahdinosaur/followers","following_url":"https://api.github.com/users/ahdinosaur/following{/other_user}","gists_url":"https://api.github.com/users/ahdinosaur/gists{/gist_id}","starred_url":"https://api.github.com/users/ahdinosaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahdinosaur/subscriptions","organizations_url":"https://api.github.com/users/ahdinosaur/orgs","repos_url":"https://api.github.com/users/ahdinosaur/repos","events_url":"https://api.github.com/users/ahdinosaur/events{/privacy}","received_events_url":"https://api.github.com/users/ahdinosaur/received_events","type":"User","site_admin":false},"position":43,"line":41,"path":"slushfile.js","commit_id":"5254a916357dc479881d6df239ff260d1362caab","created_at":"2017-02-23T23:35:50Z","updated_at":"2017-02-23T23:35:50Z","body":"got it working:\r\n\r\n```\r\ndiff --git a/slushfile.js b/slushfile.js\r\nindex fcdd5fa..60a1cfc 100644\r\n--- a/slushfile.js\r\n+++ b/slushfile.js\r\n@@ -1,3 +1,4 @@\r\n+var { join } = require('path')\r\n var gulp = require('gulp')\r\n var install = require('gulp-install')\r\n var conflict = require('gulp-conflict')\r\n@@ -20,17 +21,11 @@ gulp.task('default', function (done) {\r\n     pull.asyncMap((answers, cb) => {\r\n       pull(\r\n         // Note use of __dirname to be relative to generator\r\n-        vinyl.src(__dirname + '/template/**/*.*', {\r\n+        vinyl.src(join(__dirname, '/template/**/(.*|*.*)'), {\r\n+          base: join(__dirname, 'template'),\r\n           // Include dotfiles\r\n           dot: true\r\n         }),\r\n-        // Rename dotfiles\r\n-        pull.map(file => {\r\n-          if (file.basename[0] === '_') {\r\n-            file.basename = '.' + file.basename.slice(1)\r\n-          }\r\n-          return file\r\n-        }),\r\n         pull.map(file => {\r\n           if(!file.isNull()){\r\n             var tpl = template(file.contents.toString());\r\n@@ -38,7 +33,7 @@ gulp.task('default', function (done) {\r\n           }\r\n           return file\r\n         }),\r\n-        vinyl.dest(null, cb)\r\n+        vinyl.dest(process.cwd(), cb)\r\n       )\r\n       // Confirms overwrites on file conflicts\r\n       //  .pipe(conflict('./'))\r\n```\r\n\r\nneeded to set the base option in `pullVinyl.src` and pass `process.cwd()` (or you might want to do `join(process.cwd(), projectName)`) as base to `pullVinyl.dest`."}}
{"actor":{"display_login":"ahdinosaur"}}