From 22ff45ce3221217623f7674806297a83e375407e Mon Sep 17 00:00:00 2001 From: Andrew Yang Date: Fri, 17 May 2024 00:35:57 +1000 Subject: [PATCH 1/2] turbo dev --- package.json | 1 + packages/blockchain-data/sdk/package.json | 1 + packages/checkout/sdk/package.json | 1 + packages/checkout/widgets-lib/package.json | 1 + packages/config/package.json | 1 + packages/internal/bridge/sdk/package.json | 1 + packages/internal/cryptofiat/package.json | 1 + packages/internal/dex/sdk/package.json | 1 + packages/internal/factory/sdk/package.json | 1 + packages/internal/generated-clients/package.json | 1 + packages/internal/guardian/package.json | 3 ++- packages/internal/metrics/package.json | 1 + packages/internal/toolkit/package.json | 1 + packages/internal/version-check/package.json | 1 + packages/minting-backend/sdk/package.json | 1 + packages/orderbook/package.json | 1 + packages/passport/sdk/package.json | 1 + packages/webhook/sdk/package.json | 1 + packages/x-client/package.json | 1 + packages/x-provider/package.json | 1 + turbo.json | 13 +++++++++++++ 21 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 turbo.json diff --git a/package.json b/package.json index 2f07528573..8e5baeda66 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "scripts": { "build": "NODE_OPTIONS=--max-old-space-size=14366 wsrun -y 4 -p @imtbl/sdk -p @imtbl/checkout-widgets -e -r --serial build && yarn syncpack:format && yarn wsrun -p @imtbl/sdk -a -m copyBrowserBundles", "build:onlysdk": "NODE_OPTIONS=--max-old-space-size=14366 wsrun -y 4 -p @imtbl/sdk --stages build && yarn syncpack:format", + "dev": "turbo run dev", "docs:build": "typedoc", "docs:serve": "http-server ./docs --cors -p 8080 -c-1", "lint": "wsrun --exclude-missing -e lint --no-error-on-unmatched-pattern", diff --git a/packages/blockchain-data/sdk/package.json b/packages/blockchain-data/sdk/package.json index 06422d104d..73b1fc1cbd 100644 --- a/packages/blockchain-data/sdk/package.json +++ b/packages/blockchain-data/sdk/package.json @@ -34,6 +34,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "generate-types": "typechain --target=ethers-v5 --out-dir=src/typechain/types 'abi/*.json'", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "test": "jest", diff --git a/packages/checkout/sdk/package.json b/packages/checkout/sdk/package.json index 57250a728b..7dca9d44a2 100644 --- a/packages/checkout/sdk/package.json +++ b/packages/checkout/sdk/package.json @@ -53,6 +53,7 @@ "scripts": { "build": "rollup --config rollup.config.js", "build:dev": "CHECKOUT_DEV_MODE=true yarn build", + "dev": "CHECKOUT_DEV_MODE=true npx rollup --config rollup.config.js -w", "docs": "typedoc --plugin typedoc-plugin-markdown --skipErrorChecking --disableSources --out docs src/index.ts", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "lint:fix": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0 --fix", diff --git a/packages/checkout/widgets-lib/package.json b/packages/checkout/widgets-lib/package.json index 783e6cbeb6..d018e0080c 100644 --- a/packages/checkout/widgets-lib/package.json +++ b/packages/checkout/widgets-lib/package.json @@ -82,6 +82,7 @@ "build": "yarn clean && rollup --config rollup.config.js", "build:analyse": "yarn build --plugin visualizer", "build:local": "yarn clean && yarn build && mkdir -p ../widgets-sample-app/public/lib/js && cp dist/*.js ../widgets-sample-app/public/lib/js/", + "dev": "NODE_ENV=development npx rollup --config rollup.config.js", "clean": "rm -rf ./dist", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "lint:fix": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0 --fix", diff --git a/packages/config/package.json b/packages/config/package.json index 5d4e547812..654e87e15f 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -36,6 +36,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "test": "jest", "test:watch": "jest --watch", diff --git a/packages/internal/bridge/sdk/package.json b/packages/internal/bridge/sdk/package.json index 343fc5905a..fad7a2cf07 100644 --- a/packages/internal/bridge/sdk/package.json +++ b/packages/internal/bridge/sdk/package.json @@ -43,6 +43,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts --max-warnings=0", "lint:fix": "cd ../../../../ && yarn wsrun -p @imtbl/bridge-sdk -c lint --fix", "test": "jest test -- --silent=false", diff --git a/packages/internal/cryptofiat/package.json b/packages/internal/cryptofiat/package.json index 6ad0e12cb6..5e0ffc731a 100644 --- a/packages/internal/cryptofiat/package.json +++ b/packages/internal/cryptofiat/package.json @@ -40,6 +40,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0 --fix", "prepare": "wsrun -r build", "test": "jest", diff --git a/packages/internal/dex/sdk/package.json b/packages/internal/dex/sdk/package.json index d54a21ce4a..c798388cd5 100644 --- a/packages/internal/dex/sdk/package.json +++ b/packages/internal/dex/sdk/package.json @@ -41,6 +41,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "generate-types": "typechain --target ethers-v5 --out-dir ./src/contracts/types ./src/contracts/ABIs/*.json", "lint": "eslint ./src --ext .ts --max-warnings=0", "lint:fix": "cd ../../../.. && yarn wsrun -p @imtbl/dex-sdk -c lint --fix", diff --git a/packages/internal/factory/sdk/package.json b/packages/internal/factory/sdk/package.json index 8d9b5fe946..84249ca3eb 100644 --- a/packages/internal/factory/sdk/package.json +++ b/packages/internal/factory/sdk/package.json @@ -39,6 +39,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts --max-warnings=0", "lint:fix": "cd ../../../ && yarn wsrun -p @imtbl/factory-sdk -c lint --fix", "test": "jest test", diff --git a/packages/internal/generated-clients/package.json b/packages/internal/generated-clients/package.json index 0ea7d193a6..585a9273aa 100644 --- a/packages/internal/generated-clients/package.json +++ b/packages/internal/generated-clients/package.json @@ -22,6 +22,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "prepare": "wsrun -r build", "test": "jest", "typecheck": "tsc --noEmit --jsx preserve" diff --git a/packages/internal/guardian/package.json b/packages/internal/guardian/package.json index 1dc1f04b3c..7560940eaa 100644 --- a/packages/internal/guardian/package.json +++ b/packages/internal/guardian/package.json @@ -37,7 +37,8 @@ "private": true, "repository": "immutable/ts-immutable-sdk.git", "scripts": { - "build": "NODE_ENV=production rollup --config rollup.config.js" + "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "npx rollup --config rollup.config.js -w" }, "type": "module", "types": "dist/index.d.ts" diff --git a/packages/internal/metrics/package.json b/packages/internal/metrics/package.json index e353a32cc7..1ca230f3fb 100644 --- a/packages/internal/metrics/package.json +++ b/packages/internal/metrics/package.json @@ -32,6 +32,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "test": "jest", "typecheck": "tsc --noEmit --jsx preserve" diff --git a/packages/internal/toolkit/package.json b/packages/internal/toolkit/package.json index 835a8c4641..7970fee30e 100644 --- a/packages/internal/toolkit/package.json +++ b/packages/internal/toolkit/package.json @@ -50,6 +50,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "prepare": "wsrun -r build", "test": "jest", diff --git a/packages/internal/version-check/package.json b/packages/internal/version-check/package.json index e25d5cfd9a..3973b5e1af 100644 --- a/packages/internal/version-check/package.json +++ b/packages/internal/version-check/package.json @@ -30,6 +30,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "start:checkout-js-server": "http-server -p 8080 -c-1 ../../../sdk/dist", "start:checkout-web-server": "http-server -p 8081 -c-1 ./src/checkout-widgets-test", diff --git a/packages/minting-backend/sdk/package.json b/packages/minting-backend/sdk/package.json index 106602809e..f995aa4f6c 100644 --- a/packages/minting-backend/sdk/package.json +++ b/packages/minting-backend/sdk/package.json @@ -32,6 +32,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "test": "jest --passWithNoTests", "test:e2e": "jest --runInBand --testMatch \"**/?(*.)+(e2e).[jt]s?(x)\"", diff --git a/packages/orderbook/package.json b/packages/orderbook/package.json index 61ec15edb0..8847f353f9 100644 --- a/packages/orderbook/package.json +++ b/packages/orderbook/package.json @@ -31,6 +31,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "generate-types": "typechain --target=ethers-v5 --out-dir=src/typechain/types 'abi/*.json'", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "lint:fix": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0 --fix", diff --git a/packages/passport/sdk/package.json b/packages/passport/sdk/package.json index baf069f116..84c178b068 100644 --- a/packages/passport/sdk/package.json +++ b/packages/passport/sdk/package.json @@ -60,6 +60,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "test": "jest", "test:watch": "jest --watch", diff --git a/packages/webhook/sdk/package.json b/packages/webhook/sdk/package.json index be8853e070..ef17ee02ae 100644 --- a/packages/webhook/sdk/package.json +++ b/packages/webhook/sdk/package.json @@ -31,6 +31,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "generate-types": "typechain --target=ethers-v5 --out-dir=src/typechain/types 'abi/*.json'", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "test": "jest --passWithNoTests", diff --git a/packages/x-client/package.json b/packages/x-client/package.json index 323dc0b589..d8178b79e0 100644 --- a/packages/x-client/package.json +++ b/packages/x-client/package.json @@ -43,6 +43,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "test": "jest", "typecheck": "tsc --noEmit --jsx preserve" diff --git a/packages/x-provider/package.json b/packages/x-provider/package.json index 8f71811abb..77bea22bde 100644 --- a/packages/x-provider/package.json +++ b/packages/x-provider/package.json @@ -48,6 +48,7 @@ "repository": "immutable/ts-immutable-sdk.git", "scripts": { "build": "NODE_ENV=production rollup --config rollup.config.js", + "dev": "rollup --config rollup.config.js -w", "lint": "eslint ./src --ext .ts,.jsx,.tsx --max-warnings=0", "prepare": "wsrun -r build", "test": "jest", diff --git a/turbo.json b/turbo.json new file mode 100644 index 0000000000..2266a85f2f --- /dev/null +++ b/turbo.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://turbo.build/schema.json", + "pipeline": { + "build": { + "dependsOn": ["^build"], + "outputs": ["dist/**"] + }, + "dev": { + "cache": false, + "outputs": [] + } + } +} From ece3c40799893e677812ab152a1fe73312687516 Mon Sep 17 00:00:00 2001 From: Andrew Yang Date: Fri, 17 May 2024 10:16:45 +1000 Subject: [PATCH 2/2] change back to wsrun --- package.json | 2 +- turbo.json | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 turbo.json diff --git a/package.json b/package.json index 8e5baeda66..a4d9b3f584 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "scripts": { "build": "NODE_OPTIONS=--max-old-space-size=14366 wsrun -y 4 -p @imtbl/sdk -p @imtbl/checkout-widgets -e -r --serial build && yarn syncpack:format && yarn wsrun -p @imtbl/sdk -a -m copyBrowserBundles", "build:onlysdk": "NODE_OPTIONS=--max-old-space-size=14366 wsrun -y 4 -p @imtbl/sdk --stages build && yarn syncpack:format", - "dev": "turbo run dev", + "dev": "wsrun --parallel --exclude-missing dev", "docs:build": "typedoc", "docs:serve": "http-server ./docs --cors -p 8080 -c-1", "lint": "wsrun --exclude-missing -e lint --no-error-on-unmatched-pattern", diff --git a/turbo.json b/turbo.json deleted file mode 100644 index 2266a85f2f..0000000000 --- a/turbo.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$schema": "https://turbo.build/schema.json", - "pipeline": { - "build": { - "dependsOn": ["^build"], - "outputs": ["dist/**"] - }, - "dev": { - "cache": false, - "outputs": [] - } - } -}