Skip to content

Commit

Permalink
Add --fast mode
Browse files Browse the repository at this point in the history
Closes whatwg#232.
  • Loading branch information
domenic committed Jun 15, 2020
1 parent 2f31da5 commit a31e95a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ You can also use the `--serve` option to `build.sh` to automatically serve the r

Now you're ready to edit the `html/source` file—and after you make your changes, you can run the `build.sh` script again to see the new output.

## Fast local iteration

There are a number of options to disable certain parts of the build process to speed up local iteration. Run `./build.sh help` to see them all, or just use the `--fast` flag to get maximally-fast builds.

## A note on Git history

Your clone doesn't need the HTML standard's complete revision history just for you to build the spec and contribute patches. So, if you use `build.sh` to create the clone, we don't start you out with a clone of the history. That makes your first build finish much faster. And if later you decide you do want to clone the complete history, you can still get it, by doing this:
Expand Down
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function processCommandLineArgs {
echo " -l|--no-lint Don't lint before building; just build."
echo " -h|--no-highlight Don't syntax-highlight the output."
echo " -p|--single-page Only build the single-page variant of the spec."
echo " -f|--fast Alias for --no-update --no-lint --no-highlight --single-page."
echo " -q|--quiet Don't emit any messages except errors/warnings."
echo " -v|--verbose Show verbose output from every build step."
exit 0
Expand All @@ -152,6 +153,12 @@ function processCommandLineArgs {
-p|--single-page)
SINGLE_PAGE_ONLY=true
;;
-f|--fast)
DO_UPDATE=false
DO_LINT=false
DO_HIGHLIGHT=false
SINGLE_PAGE_ONLY=true
;;
-d|--docker)
USE_DOCKER=true
;;
Expand Down

0 comments on commit a31e95a

Please sign in to comment.