Run full sample index build when running peanut (#456)

The previous `build-release` task doesn't generate the index file.
pull/459/head
John Ryan 4 years ago committed by GitHub
parent 84ba9feba2
commit 8fbe1d6366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,7 +43,7 @@ main(List<String> 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

@ -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('');
}

Loading…
Cancel
Save