From fd3c76941e2e826cacab8844672f1d985f7ea564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Mon, 15 Jun 2020 23:35:19 +0200 Subject: [PATCH] [gitpod] Run "make watch" in a second terminal (#11718) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Huáng Jùnliàng [skip ci] --- .gitpod.yml | 18 ++++++++++++++++++ Makefile | 5 +++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index a35a012e3b40..d879777d1390 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,6 +2,24 @@ tasks: - init: make bootstrap command: make watch + - openMode: split-right + command: |- + clear && echo ' + Welcome to Gitpod! + + If you haven'\''t forked Babel yet and you want to prepare a PR, you can use + the Ctrl+P (or ⌘P) shortcut, type `>Fork` and press ENTER: Gitpod\ will + create the fork for you. + + <-- The other terminal is building Babel. It should automatically rebuild + when you change a file, so you don'\''t need to worry about it. + If it'\''s still building, please wait until it'\''s finished! + + If you want to run the tests, you can run `yarn jest` in this terminal, + or filter by package name (for example, `yarn jest babel-parser`). + ' + +#' # <-- This is just because the gitpod theme has broken syntax highlighting github: # https://www.gitpod.io/docs/prebuilds/#configure-prebuilds diff --git a/Makefile b/Makefile index f76c2411cc0a..1a04975abbe3 100644 --- a/Makefile +++ b/Makefile @@ -256,11 +256,12 @@ publish-eslint: bootstrap-only: lerna-bootstrap yarn-install: clean-all - yarn --ignore-engines + # Gitpod prebuilds have a slow network connection, so we need more time + yarn --ignore-engines --network-timeout 100000 lerna-bootstrap: yarn-install # todo: remove `-- -- --ignore-engines` in Babel 8 - $(YARN) lerna bootstrap -- -- --ignore-engines + $(YARN) lerna bootstrap -- -- --ignore-engines --network-timeout 100000 bootstrap: bootstrap-only $(MAKE) build