This tool is used to generate the visual samples index for Flutter samples.
We use grinder to run the build tasks:
$ pub get
$ pub global activate grinder
$ grind generateThis will generate the index into ./web
If you want to serve the index locally, you can use webdev:
$ webdev serveYou can build the complete index into a publishable directory using Grinder:
$ grind build-releaseThis outputs the completely built index to ./public.
The cookbook articles are generated using a WebDriver script that scrapes the flutter.dev website. To run:
- Install ChromeDriver
- run
chromedriver --port=4444 --url-base=wd/hub --verbose - run
grind scrape-cookbook