Publish generator-aspnetcore-spa 0.6.1

This commit is contained in:
SteveSandersonMS
2016-11-28 17:48:08 +00:00
parent 03774253eb
commit 834301e50d
2 changed files with 16 additions and 6 deletions

View File

@@ -133,12 +133,22 @@ class MyGenerator extends yeoman.Base {
inputFullPath = tempPath; inputFullPath = tempPath;
} }
const outputDirBasename = path.basename(path.dirname(destinationFullPath));
if (outputDirBasename === 'dist') {
// Don't do token replacement in 'dist' files, as they might just randomly contain
// sequences like '<%=' even though they aren't actually template files
this.fs.copy(
inputFullPath,
destinationFullPath
);
} else {
this.fs.copyTpl( this.fs.copyTpl(
inputFullPath, inputFullPath,
destinationFullPath, destinationFullPath,
this._answers this._answers
); );
} }
}
}); });
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "generator-aspnetcore-spa", "name": "generator-aspnetcore-spa",
"version": "0.5.0", "version": "0.6.1",
"description": "Single-Page App templates for ASP.NET Core", "description": "Single-Page App templates for ASP.NET Core",
"author": "Microsoft", "author": "Microsoft",
"license": "Apache-2.0", "license": "Apache-2.0",