Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

chore(site): support site build w/o recompiling API docs #2202

Merged
merged 2 commits into from
Aug 26, 2016

Conversation

chalin
Copy link
Contributor

@chalin chalin commented Aug 26, 2016

If the site has already been built once, then rebuild the site without re-harp-compiling the API docs use:

gulp check-deploy --lang=''

Otherwise specify the languages whose API docs are to be rebuilt; as usual, omitting the --lang flag is equivalent to --lang=all which is equivalent to --lang=‘ts|js|dart’.

Other changes to gulp tasks:

  • Renamed serve to harp-serve.
  • Removed check-serve. Use harp-compile followed by `serve-www’ instead.
  • harp-compile now also defaults to --lang=all.

Fixes #2022.

@chalin
Copy link
Contributor Author

chalin commented Aug 26, 2016

@wardbell @Foxandxss @kwalrath : ready for review.

@wardbell
Copy link
Contributor

I like the idea. Will try it!

@Foxandxss
Copy link
Member

We used (or use) to have 20 tasks doing similar jobs, if we can reduce a bunch of them, I will be all in.

We have 3-4 that harpCompile, another that serves, another that compiles and serves...

@kwalrath
Copy link
Contributor

So much faster!

There's one issue with the output, though: The "Deploy to Firebase? (y/n):" question is obscured by the 3 new lines of "Rename" output. Could you move those lines to be before the deploy prompt? Here's what I see:

...
[10:11:29] compile ok
[10:11:29] running live server ...
prompt: Deploy to Firebase? (y/n): :  [10:11:29] Rename: mv public/docs/ts/latest/_api-tmp-hide-from-jade public/docs/ts/latest/api
[10:11:29] Rename: mv public/docs/js/latest/_api-tmp-hide-from-jade public/docs/js/latest/api
[10:11:29] Rename: mv public/docs/dart/latest/_api-tmp-hide-from-jade public/docs/dart/latest/api
n
[10:13:00] Not deploying
[10:13:00] Finished 'check-deploy' after 2.13 min

@chalin chalin force-pushed the chalin-chore-build-wo-api-0826 branch 2 times, most recently from 3bfa5f7 to 987dea5 Compare August 26, 2016 19:58
chalin added 2 commits August 26, 2016 13:47
If the site has already been built once, then rebuild the site without
re-harp-compiling the API docs use:
`gulp check-deploy —lang=‘’`

Otherwise specify the languages whose API docs are to be rebuilt; as
usual, omitting the `—lang` flag is equivalent to `—lang=all` which is
equivalent to `—lang=‘ts|js|dart’`.

Other changes to gulp tasks:
- Renamed `serve` to `harp-serve`.
- Removed `check-serve`. Use `harp-compile` followed by `serve-www’
instead.
- `harp-compile` now also defaults to `—lang=all`.
- Ensure that the deploy prompt can be seen.
@chalin chalin force-pushed the chalin-chore-build-wo-api-0826 branch from 987dea5 to e843491 Compare August 26, 2016 20:47
@kwalrath
Copy link
Contributor

The newest version works great for me! OK if I merge this, @wardbell & @Foxandxss?

@wardbell wardbell merged commit e4ed1ce into angular:master Aug 26, 2016
@chalin chalin deleted the chalin-chore-build-wo-api-0826 branch August 26, 2016 22:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants