Fix build to sink

This commit is contained in:
thosakwe 2017-06-15 22:51:47 -04:00
parent 8f2ef4f740
commit 8062399b35
2 changed files with 5 additions and 1 deletions

View file

@ -372,6 +372,10 @@ class VirtualDirectory implements AngelPlugin {
message: message:
'"${entity.absolute.path}" did not require compilation; skipping it.'); '"${entity.absolute.path}" did not require compilation; skipping it.');
else { else {
var outFile = new File(compiled.filename);
if (!await outFile.exists()) await outFile.create(recursive: true);
var sink = outFile.openWrite();
await compiled.content.pipe(sink);
p.finish( p.finish(
message: message:
'Built "${entity.absolute.path}" to "${compiled.filename}".', 'Built "${entity.absolute.path}" to "${compiled.filename}".',

View file

@ -4,7 +4,7 @@ environment:
sdk: ">=1.19.0" sdk: ">=1.19.0"
homepage: https://github.com/angel-dart/static homepage: https://github.com/angel-dart/static
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
version: 1.2.1 version: 1.2.2
dependencies: dependencies:
angel_framework: ^1.0.0-dev angel_framework: ^1.0.0-dev
cli_util: ^0.1.1 cli_util: ^0.1.1