From 0c107f50f2245c10572e8801bbdb74f8e4729bfd Mon Sep 17 00:00:00 2001 From: Bala Date: Wed, 8 Jun 2022 15:14:37 +0800 Subject: [PATCH 1/3] chore: add bootstrap dev script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 85cce38e7048..6ca6d4e91939 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ }, "scripts": { "bootstrap": "f () { npm ci && lerna link && lerna bootstrap --ci --hoist --strict && lerna link && npm run build:travis ;}; f", + "bootstrap-dev": "f () { npm ci && lerna link && lerna bootstrap --hoist --strict && lerna link && npm run build:travis ;}; f", "build": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run build $2 ;}; f", "build:publish": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run build:publish $2 ;}; f", "build:local": "f () { lerna exec --scope @deriv/trader --scope @deriv/bot-web-ui --parallel -- npm run build $1 ;}; f", From 51ae1278465ffcc9a70cac1395e9bbd2dee1f2c3 Mon Sep 17 00:00:00 2001 From: balakrishna-binary <56330681+balakrishna-binary@users.noreply.github.com> Date: Wed, 8 Jun 2022 15:21:05 +0800 Subject: [PATCH 2/3] Update package.json Co-authored-by: Yashim Wong <75345074+yashim-deriv@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6ca6d4e91939..1c56baa81d78 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ }, "scripts": { "bootstrap": "f () { npm ci && lerna link && lerna bootstrap --ci --hoist --strict && lerna link && npm run build:travis ;}; f", - "bootstrap-dev": "f () { npm ci && lerna link && lerna bootstrap --hoist --strict && lerna link && npm run build:travis ;}; f", + "bootstrap:dev": "f () { npm ci && lerna link && lerna bootstrap --hoist --strict && lerna link && npm run build:travis ;}; f", "build": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run build $2 ;}; f", "build:publish": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run build:publish $2 ;}; f", "build:local": "f () { lerna exec --scope @deriv/trader --scope @deriv/bot-web-ui --parallel -- npm run build $1 ;}; f", From c703cdfff7898c8f9da027c0eecbb35ebdfa3fc8 Mon Sep 17 00:00:00 2001 From: Bala Date: Wed, 8 Jun 2022 17:25:24 +0800 Subject: [PATCH 3/3] chore: remove build from bootstrap --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6ca6d4e91939..d70ddc8da258 100644 --- a/package.json +++ b/package.json @@ -57,15 +57,15 @@ "stylelint-webpack-plugin": "^2.1.1" }, "scripts": { - "bootstrap": "f () { npm ci && lerna link && lerna bootstrap --ci --hoist --strict && lerna link && npm run build:travis ;}; f", - "bootstrap-dev": "f () { npm ci && lerna link && lerna bootstrap --hoist --strict && lerna link && npm run build:travis ;}; f", + "bootstrap": "f () { npm ci && lerna link && lerna bootstrap --ci --hoist --strict && lerna link ;}; f", + "bootstrap-dev": "f () { npm ci && lerna link && lerna bootstrap --hoist --strict && lerna link ;}; f", "build": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run build $2 ;}; f", "build:publish": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run build:publish $2 ;}; f", "build:local": "f () { lerna exec --scope @deriv/trader --scope @deriv/bot-web-ui --parallel -- npm run build $1 ;}; f", - "build:travis": "lerna exec --scope @deriv/shared --scope @deriv/components --scope @deriv/translations --scope @deriv/cashier --scope @deriv/account --scope @deriv/p2p -- npm run build:travis", + "build:travis": "lerna exec --scope @deriv/shared --scope @deriv/components --scope @deriv/translations --scope @deriv/cashier --scope @deriv/account --scope @deriv/p2p --scope @deriv/cfd -- npm run build:travis", "build:prod": "export NODE_ENV=staging && npm run build && export NODE_ENV=", "build:storybook": "cd packages/components && build-storybook --output-dir .out", - "build:gh-pages": "f () { lerna exec --scope @deriv/components --scope @deriv/p2p -- npm run build && lerna exec --scope @deriv/cashier --scope @deriv/account -- npm run build $1 && npm run build:local $1 ;}; f", + "build:gh-pages": "f () { lerna exec --scope @deriv/components --scope @deriv/p2p -- npm run build && lerna exec --scope @deriv/cashier --scope @deriv/account --scope @deriv/cfd -- npm run build $1 && npm run build:local $1 ;}; f", "clean": "echo \"Remove $(git rev-parse --show-toplevel)/node_modules\" && lerna clean && rm -rf \"$(git rev-parse --show-toplevel)/node_modules\"", "deploy": "f () { npm run build:travis && npm run build:local && lerna exec --scope @deriv/core -- npm run deploy $@ ;}; f", "deploy:clean": "f () { npm run build:travis && npm run build:local && lerna exec --scope @deriv/core -- npm run deploy:clean $@ ;}; f",