Run full sample index build when running peanut

The previous `build-release` task doesn't generate the index file.
pull/456/head
John Ryan 5 years ago
parent 84ba9feba2
commit fddbee1c87

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

Loading…
Cancel
Save