From 8fbe1d636639e20d0d019579f152cd4596266436 Mon Sep 17 00:00:00 2001 From: John Ryan Date: Tue, 2 Jun 2020 15:17:56 -0700 Subject: [PATCH] Run full sample index build when running peanut (#456) The previous `build-release` task doesn't generate the index file. --- web/_tool/peanut_post_build.dart | 2 +- web/samples_index/tool/grind.dart | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web/_tool/peanut_post_build.dart b/web/_tool/peanut_post_build.dart index 3d82c40ef..f1b6d7d04 100644 --- a/web/_tool/peanut_post_build.dart +++ b/web/_tool/peanut_post_build.dart @@ -43,7 +43,7 @@ main(List args) async { // Build the sample index and copy the files into this directory print('building the sample index...'); 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 // directory diff --git a/web/samples_index/tool/grind.dart b/web/samples_index/tool/grind.dart index 3b79df179..e7220778c 100644 --- a/web/samples_index/tool/grind.dart +++ b/web/samples_index/tool/grind.dart @@ -25,9 +25,7 @@ void analyze() { @Task('deploy') @Depends(analyze, testCli, generate, buildRelease) void deploy() { - print('All tasks completed. To deploy to Firebase, run:'); - print(''); - print(' firebase deploy'); + print('All tasks completed. '); print(''); }