generator-faithlife-app
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -75,6 +75,6 @@ 'use strict'; | ||
_findFilesAsync: function findFilesAsync(pattern) { | ||
_findSourceFilesAsync: function findSourceFilesAsync() { | ||
var sourceRoot = this.sourceRoot(); | ||
return new Promise(function (accept, reject) { | ||
glob(pattern, { cwd: sourceRoot, dot: true }, function(error, files) { | ||
glob('**/*.*', { cwd: sourceRoot, dot: true }, function(error, files) { | ||
return error ? reject(error) : accept(files); | ||
@@ -108,17 +108,15 @@ }); | ||
Promise.all([ | ||
self._findFilesAsync('**/!(*.template)'), | ||
self._findFilesAsync('**/*.template'), | ||
]).then(function(promiseResults) { | ||
promiseResults[0].forEach(function(file) { | ||
self.fs.copy(self.templatePath(file), self.destinationPath(file)); | ||
}); | ||
self._findSourceFilesAsync() | ||
.then(function(files) { | ||
files.forEach(function(file) { | ||
if (file.match(/\.template$/)) { | ||
self.fs.copyTpl( | ||
self.templatePath(file), | ||
self.destinationPath(path.join(path.dirname(file), path.basename(file, '.template'))), | ||
self.props); | ||
} else { | ||
self.fs.copy(self.templatePath(file), self.destinationPath(file)); | ||
} | ||
}); | ||
promiseResults[1].forEach(function(file) { | ||
self.fs.copyTpl( | ||
self.templatePath(file), | ||
self.destinationPath(path.join(path.dirname(file), path.basename(file, '.template'))), | ||
self.props); | ||
}); | ||
done(); | ||
@@ -125,0 +123,0 @@ }).catch(function(error) { |
require('babel/register')({ | ||
only: 'src', | ||
only: __dirname + '/src', | ||
}); | ||
@@ -4,0 +4,0 @@ |
{ | ||
"name": "generator-faithlife-app", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Generator for a node/React app that uses Faithlife authentication.", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
249785
1068
2