Add additional verbose messages whenen writing generating files
This commit is contained in:
@@ -54,6 +54,7 @@ class AssetHelper {
|
|||||||
if (targetPath != null) {
|
if (targetPath != null) {
|
||||||
|
|
||||||
PathHelper.mkdir (Path.directory (targetPath));
|
PathHelper.mkdir (Path.directory (targetPath));
|
||||||
|
LogHelper.info ("", " - \x1b[1mWriting asset manifest:\x1b[0m " + targetPath);
|
||||||
File.saveContent (targetPath, manifest.serialize ());
|
File.saveContent (targetPath, manifest.serialize ());
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -92,10 +93,13 @@ class AssetHelper {
|
|||||||
if (targetDirectory != null) {
|
if (targetDirectory != null) {
|
||||||
|
|
||||||
PathHelper.mkdir (targetDirectory);
|
PathHelper.mkdir (targetDirectory);
|
||||||
|
var targetPath;
|
||||||
|
|
||||||
for (manifest in manifests) {
|
for (manifest in manifests) {
|
||||||
|
|
||||||
File.saveContent (PathHelper.combine (targetDirectory, manifest.name + ".json"), manifest.serialize ());
|
targetPath = PathHelper.combine (targetDirectory, manifest.name + ".json");
|
||||||
|
LogHelper.info ("", " - \x1b[1mWriting asset manifest:\x1b[0m " + targetPath);
|
||||||
|
File.saveContent (targetPath, manifest.serialize ());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -139,6 +139,8 @@ class FileHelper {
|
|||||||
|
|
||||||
PathHelper.mkdir (Path.directory (destination));
|
PathHelper.mkdir (Path.directory (destination));
|
||||||
|
|
||||||
|
LogHelper.info ("", " - \x1b[1mWriting file:\x1b[0m " + destination);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (asset.encoding == AssetEncoding.BASE64) {
|
if (asset.encoding == AssetEncoding.BASE64) {
|
||||||
|
|||||||
@@ -307,12 +307,12 @@ class HTML5Platform extends PlatformTarget {
|
|||||||
|
|
||||||
if (asset.type != AssetType.TEMPLATE) {
|
if (asset.type != AssetType.TEMPLATE) {
|
||||||
|
|
||||||
if (asset.type != AssetType.FONT) {
|
if (asset.embed != true && asset.type != AssetType.FONT) {
|
||||||
|
|
||||||
PathHelper.mkdir (Path.directory (path));
|
PathHelper.mkdir (Path.directory (path));
|
||||||
FileHelper.copyAssetIfNewer (asset, path);
|
FileHelper.copyAssetIfNewer (asset, path);
|
||||||
|
|
||||||
} else if (useWebfonts) {
|
} else if (asset.type == AssetType.FONT && useWebfonts) {
|
||||||
|
|
||||||
PathHelper.mkdir (Path.directory (path));
|
PathHelper.mkdir (Path.directory (path));
|
||||||
var ext = "." + Path.extension (asset.sourcePath);
|
var ext = "." + Path.extension (asset.sourcePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user