From ee3a340f08192115894bc6763712418d5b114da1 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Mon, 20 Jun 2022 22:24:54 +0800 Subject: [PATCH 1/2] integrate turborepo in monorepo --- .gitignore | 2 ++ package.json | 15 ++++------ turbo.json | 19 +++++++++++++ yarn.lock | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+), 9 deletions(-) create mode 100644 turbo.json diff --git a/.gitignore b/.gitignore index 895e1115aa..808676098e 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ temp build dist + +.turbo diff --git a/package.json b/package.json index 9e6b495424..3d5b0e336a 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,7 @@ "private": true, "homepage": "https://github.com/rrweb-io/rrweb#readme", "workspaces": [ - "packages/rrweb", - "packages/rrweb-snapshot", - "packages/rrweb-player", - "packages/rrdom", - "packages/rrdom-nodejs" + "packages/*" ], "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.25.0", @@ -30,14 +26,15 @@ "lerna": "^4.0.0", "markdownlint": "^0.25.1", "markdownlint-cli": "^0.31.1", + "turbo": "^1.2.4", "typescript": "^4.6.4" }, "scripts": { "lerna": "lerna", - "build:all": "yarn lerna run prepublish", - "test": "yarn lerna run test", - "test:watch": "yarn lerna run test:watch --parallel", - "dev": "yarn lerna run dev --parallel", + "build:all": "yarn turbo run prepublish", + "test": "yarn turbo run test", + "test:watch": "yarn turbo run test:watch", + "dev": "yarn turbo run dev", "repl": "cd packages/rrweb && npm run repl", "lint": "yarn run concurrently --success=all -r -m=1 'yarn run markdownlint docs' 'yarn eslint packages/*/src --ext .ts,.tsx,.js,.jsx,.svelte'" }, diff --git a/turbo.json b/turbo.json new file mode 100644 index 0000000000..5d1a58238b --- /dev/null +++ b/turbo.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://turborepo.org/schema.json", + "baseBranch": "origin/master", + "pipeline": { + "prepublish": { + "dependsOn": [ + "^prepublish" + ], + "outputs": [ + "lib/**", + "es/**", + "dist/**" + ] + }, + "test": {}, + "test:watch": {}, + "dev": {} + } +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 9f82432e29..9fdf7392c5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10808,6 +10808,84 @@ tunnel-agent@^0.6.0: dependencies: safe-buffer "^5.0.1" +turbo-darwin-64@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-darwin-64/download/turbo-darwin-64-1.2.4.tgz#421d68e548150da80ce846a81476f24cb335cc2f" + integrity sha1-Qh1o5UgVDagM6EaoFHbyTLM1zC8= + +turbo-darwin-arm64@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-darwin-arm64/download/turbo-darwin-arm64-1.2.4.tgz#0fa601b4c54c5011d2dc9d3e8698287da483ee94" + integrity sha1-D6YBtMVMUBHS3J0+hpgofaSD7pQ= + +turbo-freebsd-64@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-freebsd-64/download/turbo-freebsd-64-1.2.4.tgz#296f3f555df382d90280df402ea338a0b46c35a4" + integrity sha1-KW8/VV3zgtkCgN9ALqM4oLRsNaQ= + +turbo-freebsd-arm64@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-freebsd-arm64/download/turbo-freebsd-arm64-1.2.4.tgz#037a650a79781ccc3c013d9b2b0e104a4563430a" + integrity sha1-A3plCnl4HMw8AT2bKw4QSkVjQwo= + +turbo-linux-32@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-linux-32/download/turbo-linux-32-1.2.4.tgz#a3a4a54e460193cb8b780b007b143b3918c490a6" + integrity sha1-o6SlTkYBk8uLeAsAexQ7ORjEkKY= + +turbo-linux-64@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-linux-64/download/turbo-linux-64-1.2.4.tgz#8c5562d21ef48c35a39bc69712ddb5254ffeac0e" + integrity sha1-jFVi0h70jDWjm8aXEt21JU/+rA4= + +turbo-linux-arm64@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-linux-arm64/download/turbo-linux-arm64-1.2.4.tgz#24cd81deb2b42086cb6c0ad313b30328e348ef00" + integrity sha1-JM2B3rK0IIbLbArTE7MDKONI7wA= + +turbo-linux-arm@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-linux-arm/download/turbo-linux-arm-1.2.4.tgz#dcb4917941dc8b6c8572ce17d0ed52c427b93c29" + integrity sha1-3LSReUHci2yFcs4X0O1SxCe5PCk= + +turbo-linux-mips64le@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-linux-mips64le/download/turbo-linux-mips64le-1.2.4.tgz#34b7c345e21ed84d80e271c957e40c8cab454663" + integrity sha1-NLfDReIe2E2A4nHJV+QMjKtFRmM= + +turbo-linux-ppc64le@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-linux-ppc64le/download/turbo-linux-ppc64le-1.2.4.tgz#d12993caa4c43624fa87f61e1d8a1049ad3dc012" + integrity sha1-0SmTyqTENiT6h/YeHYoQSa09wBI= + +turbo-windows-32@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-windows-32/download/turbo-windows-32-1.2.4.tgz#21263011af742297b94746cd4f42434a11f628b2" + integrity sha1-ISYwEa90Ipe5R0bNT0JDShH2KLI= + +turbo-windows-64@1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo-windows-64/download/turbo-windows-64-1.2.4.tgz#65a1ab8259515e06b1c285895a90105af9db0f4a" + integrity sha1-ZaGrgllRXgaxwoWJWpAQWvnbD0o= + +turbo@^1.2.4: + version "1.2.4" + resolved "http://192.168.26.29:7001/turbo/download/turbo-1.2.4.tgz#feeee3487bd5cafaf9cbba0f46f9b5970309d04a" + integrity sha1-/u7jSHvVyvr5y7oPRvm1lwMJ0Eo= + optionalDependencies: + turbo-darwin-64 "1.2.4" + turbo-darwin-arm64 "1.2.4" + turbo-freebsd-64 "1.2.4" + turbo-freebsd-arm64 "1.2.4" + turbo-linux-32 "1.2.4" + turbo-linux-64 "1.2.4" + turbo-linux-arm "1.2.4" + turbo-linux-arm64 "1.2.4" + turbo-linux-mips64le "1.2.4" + turbo-linux-ppc64le "1.2.4" + turbo-windows-32 "1.2.4" + turbo-windows-64 "1.2.4" + tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5" resolved "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz" From 230b20b987ecc1fc41940f594eb73fd8e4df951d Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Mon, 20 Jun 2022 22:32:17 +0800 Subject: [PATCH 2/2] integrate turborepo in monorepo --- yarn.lock | 154 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 80 insertions(+), 74 deletions(-) diff --git a/yarn.lock b/yarn.lock index 9fdf7392c5..f6c36883b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10808,83 +10808,89 @@ tunnel-agent@^0.6.0: dependencies: safe-buffer "^5.0.1" -turbo-darwin-64@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-darwin-64/download/turbo-darwin-64-1.2.4.tgz#421d68e548150da80ce846a81476f24cb335cc2f" - integrity sha1-Qh1o5UgVDagM6EaoFHbyTLM1zC8= - -turbo-darwin-arm64@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-darwin-arm64/download/turbo-darwin-arm64-1.2.4.tgz#0fa601b4c54c5011d2dc9d3e8698287da483ee94" - integrity sha1-D6YBtMVMUBHS3J0+hpgofaSD7pQ= - -turbo-freebsd-64@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-freebsd-64/download/turbo-freebsd-64-1.2.4.tgz#296f3f555df382d90280df402ea338a0b46c35a4" - integrity sha1-KW8/VV3zgtkCgN9ALqM4oLRsNaQ= - -turbo-freebsd-arm64@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-freebsd-arm64/download/turbo-freebsd-arm64-1.2.4.tgz#037a650a79781ccc3c013d9b2b0e104a4563430a" - integrity sha1-A3plCnl4HMw8AT2bKw4QSkVjQwo= - -turbo-linux-32@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-linux-32/download/turbo-linux-32-1.2.4.tgz#a3a4a54e460193cb8b780b007b143b3918c490a6" - integrity sha1-o6SlTkYBk8uLeAsAexQ7ORjEkKY= - -turbo-linux-64@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-linux-64/download/turbo-linux-64-1.2.4.tgz#8c5562d21ef48c35a39bc69712ddb5254ffeac0e" - integrity sha1-jFVi0h70jDWjm8aXEt21JU/+rA4= - -turbo-linux-arm64@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-linux-arm64/download/turbo-linux-arm64-1.2.4.tgz#24cd81deb2b42086cb6c0ad313b30328e348ef00" - integrity sha1-JM2B3rK0IIbLbArTE7MDKONI7wA= - -turbo-linux-arm@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-linux-arm/download/turbo-linux-arm-1.2.4.tgz#dcb4917941dc8b6c8572ce17d0ed52c427b93c29" - integrity sha1-3LSReUHci2yFcs4X0O1SxCe5PCk= - -turbo-linux-mips64le@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-linux-mips64le/download/turbo-linux-mips64le-1.2.4.tgz#34b7c345e21ed84d80e271c957e40c8cab454663" - integrity sha1-NLfDReIe2E2A4nHJV+QMjKtFRmM= - -turbo-linux-ppc64le@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-linux-ppc64le/download/turbo-linux-ppc64le-1.2.4.tgz#d12993caa4c43624fa87f61e1d8a1049ad3dc012" - integrity sha1-0SmTyqTENiT6h/YeHYoQSa09wBI= - -turbo-windows-32@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-windows-32/download/turbo-windows-32-1.2.4.tgz#21263011af742297b94746cd4f42434a11f628b2" - integrity sha1-ISYwEa90Ipe5R0bNT0JDShH2KLI= - -turbo-windows-64@1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo-windows-64/download/turbo-windows-64-1.2.4.tgz#65a1ab8259515e06b1c285895a90105af9db0f4a" - integrity sha1-ZaGrgllRXgaxwoWJWpAQWvnbD0o= +turbo-darwin-64@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.2.16.tgz#1586fd6e52ffb5ad5e1e3ec8afe1c873f7fd98d9" + integrity sha512-dyitLQJdH3uLVdlH9jAkP4LqEO/K+wOXjUqOzjTciRLjQPzmsNY60/bmFHODADK4eBBl1nxbtn7tmmoT4vS1qA== + +turbo-darwin-arm64@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.2.16.tgz#3faf9c657fa5feb16465316ac8d47c4a2790c2f1" + integrity sha512-Ex6uM4HU7rGXdhvJMpzNpp6qxglJ98nWeIi5qR/lBXHLjK3UCvSW8BEALArUJYJTXS9FZBq1a5LowFqXYsfDcA== + +turbo-freebsd-64@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-freebsd-64/-/turbo-freebsd-64-1.2.16.tgz#2674c2078eaa79200a3b91639e530b287a735cb4" + integrity sha512-onRGKMvog8B3XDssSBIAg+FrEq9pcBoAybP7bpi/uYIH1L/WQ7YMmLn88X9JX19ehYuVOVZrjap4jWH2GIkU8A== + +turbo-freebsd-arm64@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-freebsd-arm64/-/turbo-freebsd-arm64-1.2.16.tgz#88cc25733b19880b4a14a9d4f34770da9e898a92" + integrity sha512-S0EqPqxwnJuVNNXRgcHB0r8ai8LSrpHdihVJKRM7WYmIR7isccBEf/G9agrt73sCXwjvenxFs4HDR7cSvGt14Q== + +turbo-linux-32@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-linux-32/-/turbo-linux-32-1.2.16.tgz#7c60a19acd32862085566da0f9389d2db36a7aee" + integrity sha512-ecbqmGOxgTWePGrowtwyvZGfvwaLxFWmPK21cU0PS+fzoZBaVmzYmniTdd/2EkGCw7TOPhtiT22v96fWcnRycA== + +turbo-linux-64@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.2.16.tgz#d589bf73bbfa38fa73ad8ec786c0b89b678e7af8" + integrity sha512-q6gtdMWCzM0Sktkd73zcaQjNoeM1MjtrbwQBctWN/Sgj0eiPBPnzpIvokvx98x7RLf4qyI99/mlme0Dn5fx21A== + +turbo-linux-arm64@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.2.16.tgz#9eaaee4094f71a266553248dfaadc59756696242" + integrity sha512-gUf67tYJ/N09WAZTTmtUWYrqm381tZxiulnRGAIM+iRsaTrweyUKZaYXwJvlPpI/cQOw25wCG9/IyvxLeagL8A== + +turbo-linux-arm@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-linux-arm/-/turbo-linux-arm-1.2.16.tgz#54774c7e6e4f91ebdb211fa48b1b2a46b1e3c61c" + integrity sha512-du7uvExELNb89V3g7iM0XP21fR1Yl3EoHRcOfQz32oUqnS7idCKvbEowM9LtiluQl1dKcOIJjn1nlvvsqzkhOg== + +turbo-linux-mips64le@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-linux-mips64le/-/turbo-linux-mips64le-1.2.16.tgz#fa49b858f8ed399b44cdce285a0feb67c30ee99b" + integrity sha512-U5BM+Ql3z13uRtwMmKH/8eL+9DdTgyijC2gaX4xP0RTlcN7WfAstg8Fg/Tn2Vw9vtpVDdxwpw7dvX4kw2ghhpA== + +turbo-linux-ppc64le@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-linux-ppc64le/-/turbo-linux-ppc64le-1.2.16.tgz#0a419310b938ef5eace46cb6c53b18099caae60c" + integrity sha512-HQWSCmVZyc5chw7Ie2ZcfZPfmM06mbEEu0Wl11Y5QWh1ZzhPNQHs/TsF4I9r146wHi62XgcrKFjkw4ARZiWsLA== + +turbo-windows-32@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-windows-32/-/turbo-windows-32-1.2.16.tgz#8307dea3fab91be4e3e46aa37d76ce8e7ce3fdcb" + integrity sha512-0ZtPz5FK2qZjznMG4vvRyaabrhO8BgbN+tBx1wjXSuoICTAjYi5TwRVVRh59c3x7qQmR21Cv33CrhLBPRfeAlg== + +turbo-windows-64@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.2.16.tgz#9f5f725d6ab829d3cf7944ba92714e9e5bdd09d0" + integrity sha512-j8iAIixq/rGfBpHNbYOosxMasZrGuMzLILEuQGDxZgKNpYgobJ15QFHQlGR9sit1b8qPU5zZX4CtByRtkgH1Bw== + +turbo-windows-arm64@1.2.16: + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.2.16.tgz#75894186e9f1d6340a30c436d563c34999e5b87c" + integrity sha512-4GpcJG3B8R9WDhwfT8fu6ZmOOfseCg6Q1cy/G8/zpJQk769yYcSnD8MgQhYgHB58aVFxZcMxBvLL6UA0UrpgWA== turbo@^1.2.4: - version "1.2.4" - resolved "http://192.168.26.29:7001/turbo/download/turbo-1.2.4.tgz#feeee3487bd5cafaf9cbba0f46f9b5970309d04a" - integrity sha1-/u7jSHvVyvr5y7oPRvm1lwMJ0Eo= + version "1.2.16" + resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.2.16.tgz#324c2d586f6fa77aa9173274f3b9d9efbe0735e4" + integrity sha512-PPUa2COKgFkyb6N3uF9AnIY3l9FZkF15QQ3U1K2wpI01D3gyGKQO0Q3DUQ4ipmciP0teBfL7H+l/QTrUA9IVvQ== optionalDependencies: - turbo-darwin-64 "1.2.4" - turbo-darwin-arm64 "1.2.4" - turbo-freebsd-64 "1.2.4" - turbo-freebsd-arm64 "1.2.4" - turbo-linux-32 "1.2.4" - turbo-linux-64 "1.2.4" - turbo-linux-arm "1.2.4" - turbo-linux-arm64 "1.2.4" - turbo-linux-mips64le "1.2.4" - turbo-linux-ppc64le "1.2.4" - turbo-windows-32 "1.2.4" - turbo-windows-64 "1.2.4" + turbo-darwin-64 "1.2.16" + turbo-darwin-arm64 "1.2.16" + turbo-freebsd-64 "1.2.16" + turbo-freebsd-arm64 "1.2.16" + turbo-linux-32 "1.2.16" + turbo-linux-64 "1.2.16" + turbo-linux-arm "1.2.16" + turbo-linux-arm64 "1.2.16" + turbo-linux-mips64le "1.2.16" + turbo-linux-ppc64le "1.2.16" + turbo-windows-32 "1.2.16" + turbo-windows-64 "1.2.16" + turbo-windows-arm64 "1.2.16" tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5"