Skip to content

Commit 8fbe1d6

Browse files
authored
Run full sample index build when running peanut (#456)
The previous `build-release` task doesn't generate the index file.
1 parent 84ba9fe commit 8fbe1d6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

web/_tool/peanut_post_build.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ main(List<String> args) async {
4343
// Build the sample index and copy the files into this directory
4444
print('building the sample index...');
4545
await run('samples_index', 'pub', ['get']);
46-
await run('samples_index', 'pub', ['run', 'grinder', 'build-release']);
46+
await run('samples_index', 'pub', ['run', 'grinder', 'deploy']);
4747

4848
// Copy the contents of the samples_index/public directory to the build
4949
// directory

web/samples_index/tool/grind.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ void analyze() {
2525
@Task('deploy')
2626
@Depends(analyze, testCli, generate, buildRelease)
2727
void deploy() {
28-
print('All tasks completed. To deploy to Firebase, run:');
29-
print('');
30-
print(' firebase deploy');
28+
print('All tasks completed. ');
3129
print('');
3230
}
3331

0 commit comments

Comments
 (0)