mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +00:00
Publish generator-aspnetcore-spa 0.6.1
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user