|
|
@ -23,7 +23,7 @@ void analyze() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Task('deploy')
|
|
|
|
@Task('deploy')
|
|
|
|
@Depends(analyze, testCli, generate, createThumbnails, buildRelease)
|
|
|
|
@Depends(analyze, testCli, generate, buildRelease)
|
|
|
|
void deploy() {
|
|
|
|
void deploy() {
|
|
|
|
print('All tasks completed. To deploy to Firebase, run:');
|
|
|
|
print('All tasks completed. To deploy to Firebase, run:');
|
|
|
|
print('');
|
|
|
|
print('');
|
|
|
@ -32,9 +32,10 @@ void deploy() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Task('Run build_runner to public/ directory')
|
|
|
|
@Task('Run build_runner to public/ directory')
|
|
|
|
|
|
|
|
@Depends(createThumbnails)
|
|
|
|
Future buildRelease() async {
|
|
|
|
Future buildRelease() async {
|
|
|
|
var app = PubApp.local('build_runner');
|
|
|
|
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.')
|
|
|
|
@DefaultTask('Build the project.')
|
|
|
|