mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Run full sample index build when running peanut (#456)
The previous `build-release` task doesn't generate the index file.
This commit is contained in:
@@ -43,7 +43,7 @@ main(List<String> args) async {
|
|||||||
// Build the sample index and copy the files into this directory
|
// Build the sample index and copy the files into this directory
|
||||||
print('building the sample index...');
|
print('building the sample index...');
|
||||||
await run('samples_index', 'pub', ['get']);
|
await run('samples_index', 'pub', ['get']);
|
||||||
await run('samples_index', 'pub', ['run', 'grinder', 'build-release']);
|
await run('samples_index', 'pub', ['run', 'grinder', 'deploy']);
|
||||||
|
|
||||||
// Copy the contents of the samples_index/public directory to the build
|
// Copy the contents of the samples_index/public directory to the build
|
||||||
// directory
|
// directory
|
||||||
|
|||||||
@@ -25,9 +25,7 @@ void analyze() {
|
|||||||
@Task('deploy')
|
@Task('deploy')
|
||||||
@Depends(analyze, testCli, generate, buildRelease)
|
@Depends(analyze, testCli, generate, buildRelease)
|
||||||
void deploy() {
|
void deploy() {
|
||||||
print('All tasks completed. To deploy to Firebase, run:');
|
print('All tasks completed. ');
|
||||||
print('');
|
|
||||||
print(' firebase deploy');
|
|
||||||
print('');
|
print('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user