mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Publish generator-aspnetcore-spa 0.6.1
This commit is contained in:
@@ -133,11 +133,21 @@ class MyGenerator extends yeoman.Base {
|
||||
inputFullPath = tempPath;
|
||||
}
|
||||
|
||||
this.fs.copyTpl(
|
||||
inputFullPath,
|
||||
destinationFullPath,
|
||||
this._answers
|
||||
);
|
||||
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(
|
||||
inputFullPath,
|
||||
destinationFullPath,
|
||||
this._answers
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "generator-aspnetcore-spa",
|
||||
"version": "0.5.0",
|
||||
"version": "0.6.1",
|
||||
"description": "Single-Page App templates for ASP.NET Core",
|
||||
"author": "Microsoft",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
Reference in New Issue
Block a user