1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

update slide_puzzle (#420)

* update slide_puzzle

* run createThumbnails before build-release grind task

* add license headers
This commit is contained in:
John Ryan
2020-04-29 13:41:36 -07:00
committed by GitHub
parent ddf610d682
commit 9a464fad00
24 changed files with 241 additions and 33 deletions

View File

@@ -23,7 +23,7 @@ void analyze() {
}
@Task('deploy')
@Depends(analyze, testCli, generate, createThumbnails, buildRelease)
@Depends(analyze, testCli, generate, buildRelease)
void deploy() {
print('All tasks completed. To deploy to Firebase, run:');
print('');
@@ -32,9 +32,10 @@ void deploy() {
}
@Task('Run build_runner to public/ directory')
@Depends(createThumbnails)
Future buildRelease() async {
var app = PubApp.local('build_runner');
await app.runAsync('build --release --output web:public'.split(' ').toList());
await app.runAsync('build --release --output web:public --delete-conflicting-outputs'.split(' ').toList());
}
@DefaultTask('Build the project.')