diff --git a/.github/actions/analyze/action.yml b/.github/actions/analyze/action.yml new file mode 100644 index 000000000000..9f9cb7dcf729 --- /dev/null +++ b/.github/actions/analyze/action.yml @@ -0,0 +1,94 @@ +name: analyze +description: Analyze all packages +inputs: + REF_NAME: + description: 'Git ref name' + required: true + default: 'test' + NODE_ENV: + description: 'Node environment' + required: false + default: 'test' + CROWDIN_WALLETS_API_KEY: + description: 'Crowdin wallets api key' + required: false + DATADOG_CLIENT_TOKEN: + description: 'Datadog client token' + required: false + DATADOG_APPLICATION_ID: + description: 'Datadog application id' + required: false + DATADOG_CLIENT_TOKEN_LOGS: + description: 'Datadog client token for logs' + required: false + DATADOG_SESSION_REPLAY_SAMPLE_RATE: + description: 'Datadog session replay sample rate' + required: false + DATADOG_SESSION_SAMPLE_RATE: + description: 'Datadog session sample rate' + required: false + GD_API_KEY: + description: 'Google drive api key' + required: false + GD_APP_ID: + description: 'Google drive app id' + required: false + GD_CLIENT_ID: + description: 'Google drive client id' + required: false + RUDDERSTACK_KEY: + description: 'Rudderstack key' + required: false + GROWTHBOOK_CLIENT_KEY: + description: 'Growthbook key' + required: false + GROWTHBOOK_DECRYPTION_KEY: + description: 'Growthbook decryption key' + required: false + DATADOG_SESSION_SAMPLE_RATE_LOGS: + description: 'Datadog session sample rate for logs' + required: false + REMOTE_CONFIG_URL: + description: 'Remote config backup URL' + required: true + IS_GROWTHBOOK_ENABLED: + description: 'Is growthbook enabled' + required: true + +runs: + using: composite + steps: + - name: Analyze all packages + env: + NODE_ENV: ${{ inputs.NODE_ENV }} + CROWDIN_WALLETS_API_KEY: ${{ inputs.CROWDIN_WALLETS_API_KEY }} + DATADOG_APPLICATION_ID: ${{ inputs.DATADOG_APPLICATION_ID }} + DATADOG_CLIENT_TOKEN: ${{ inputs.DATADOG_CLIENT_TOKEN }} + DATADOG_CLIENT_TOKEN_LOGS: ${{ inputs.DATADOG_CLIENT_TOKEN_LOGS }} + DATADOG_SESSION_REPLAY_SAMPLE_RATE: ${{ inputs.DATADOG_SESSION_REPLAY_SAMPLE_RATE }} + DATADOG_SESSION_SAMPLE_RATE: ${{ inputs.DATADOG_SESSION_SAMPLE_RATE }} + DATADOG_SESSION_SAMPLE_RATE_LOGS: ${{ inputs.DATADOG_SESSION_SAMPLE_RATE_LOGS }} + IS_GROWTHBOOK_ENABLED: ${{ inputs.IS_GROWTHBOOK_ENABLED }} + GD_API_KEY: ${{ inputs.GD_API_KEY }} + GD_APP_ID: ${{ inputs.GD_APP_ID }} + GD_CLIENT_ID: ${{ inputs.GD_CLIENT_ID }} + RUDDERSTACK_KEY: ${{ inputs.RUDDERSTACK_KEY }} + GROWTHBOOK_CLIENT_KEY: ${{ inputs.GROWTHBOOK_CLIENT_KEY }} + GROWTHBOOK_DECRYPTION_KEY: ${{ inputs.GROWTHBOOK_DECRYPTION_KEY }} + REF_NAME: ${{ inputs.REF_NAME }} + REMOTE_CONFIG_URL: ${{ inputs.REMOTE_CONFIG_URL }} + NODE_OPTIONS: "--max_old_space_size=4096" + run: npm run build:prod && npm run analyze:stats + shell: bash + + - name: Zip all stats.json files + run: | + zip -r stats.zip packages/*/stats.json + shell: bash + + - name: Upload stats.zip + uses: actions/upload-artifact@v4 + with: + name: stats-${{ github.sha }} + path: stats.zip + retention-days: 1 diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml new file mode 100644 index 000000000000..f6d6da369b75 --- /dev/null +++ b/.github/workflows/analyze.yml @@ -0,0 +1,41 @@ +name: Analyse Bundle +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + build_and_test: + name: Analyze Bundle + runs-on: Runner_16cores_Deriv-app + environment: Preview + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + - name: Setup Node + uses: "./.github/actions/setup_node" + - name: Install dependencies + uses: "./.github/actions/npm_install_from_cache" + - name: Analyze + uses: "./.github/actions/analyze" + with: + NODE_ENV: production + CROWDIN_WALLETS_API_KEY: ${{ secrets.CROWDIN_WALLETS_API_KEY }} + DATADOG_APPLICATION_ID: ${{ vars.DATADOG_APPLICATION_ID }} + IS_GROWTHBOOK_ENABLED: ${{ vars.IS_GROWTHBOOK_ENABLED }} + DATADOG_CLIENT_TOKEN: ${{ vars.DATADOG_CLIENT_TOKEN }} + DATADOG_CLIENT_TOKEN_LOGS: ${{ vars.DATADOG_CLIENT_TOKEN_LOGS }} + DATADOG_SESSION_REPLAY_SAMPLE_RATE: ${{ vars.DATADOG_SESSION_REPLAY_SAMPLE_RATE }} + DATADOG_SESSION_SAMPLE_RATE: ${{ vars.DATADOG_SESSION_SAMPLE_RATE }} + DATADOG_SESSION_SAMPLE_RATE_LOGS: ${{ vars.DATADOG_SESSION_SAMPLE_RATE_LOGS }} + GD_API_KEY: ${{ secrets.GD_API_KEY }} + GD_APP_ID: ${{ secrets.GD_APP_ID }} + GD_CLIENT_ID: ${{ secrets.GD_CLIENT_ID }} + RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }} + GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }} + GROWTHBOOK_DECRYPTION_KEY: ${{ vars.GROWTHBOOK_DECRYPTION_KEY }} + REF_NAME: ${{ github.ref_name }} + REMOTE_CONFIG_URL: ${{ vars.REMOTE_CONFIG_URL }} diff --git a/package.json b/package.json index 3951318752f8..67b5805f7b53 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,8 @@ "ts-jest": "^26.4.2" }, "scripts": { - "analyze": "nx run-many --target=analyze", + "analyze:build": "nx run-many --target=analyze:build", + "analyze:stats": "nx run-many --target=analyze:stats", "build:all": "nx build @deriv/components --skip-nx-cache && nx build @deriv/account --skip-nx-cache && nx build @deriv/bot-web-ui --skip-nx-cache && nx run-many --target=build", "build:one": "f () { nx build @deriv/$1 $2 ;}; f", "build:since": "nx affected --target=build", diff --git a/packages/account-v2/package.json b/packages/account-v2/package.json index 606c3156bce1..7f890ff002b8 100644 --- a/packages/account-v2/package.json +++ b/packages/account-v2/package.json @@ -6,8 +6,9 @@ "node": "18.x" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", - "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.ts\" --profile --json > stats.json", + "analyze:stats": "NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.ts\" --profile --json=stats.json", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.ts\"", "serve": "rimraf dist && concurrently \"cross-env BUILD_MODE='serve' NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config ./webpack.config.ts\" \"tsc -w --noEmit --preserveWatchOutput\"", "start": "rimraf dist && npm run test && npm run serve" }, diff --git a/packages/account/package.json b/packages/account/package.json index 26795af12eb5..ad91e890c116 100644 --- a/packages/account/package.json +++ b/packages/account/package.json @@ -14,10 +14,11 @@ "node": "18.x" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "analyze:stats": "f () { NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./build/webpack.config.js\" --env base=$1 --profile --json=stats.json;}; f", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", "start": "npm run test && npm run serve", "serve": "echo \"Serving...\" && NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config \"./build/webpack.config.js\"", - "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1 --profile --json > stats.json;}; f", + "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1;}; f", "build:travis": "rimraf dist && webpack --config \"./build/webpack.config.js\" --mode=production", "test": "echo \"No test specified\"", "test:eslint": "eslint \"./src/**/*.?(js|jsx|ts|tsx)\"", diff --git a/packages/appstore/package.json b/packages/appstore/package.json index f212c4b817cb..0280c266be7e 100644 --- a/packages/appstore/package.json +++ b/packages/appstore/package.json @@ -8,8 +8,9 @@ "node": "18.x" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", - "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --profile --json > stats.json ", + "analyze:stats": "NODE_OPTIONS='-r ts-node/register' webpack --progress --profile --json=stats.json", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress", "build:travis": "rimraf dist && webpack", "serve": "rimraf dist && concurrently \"cross-env BUILD_MODE='serve' NODE_OPTIONS='-r ts-node/register' webpack --progress --watch\" \"tsc -w --noEmit --preserveWatchOutput\"", "start": "rimraf dist && npm run test && npm run serve", diff --git a/packages/bot-web-ui/package.json b/packages/bot-web-ui/package.json index ead0ec39f153..12bb24a4ea11 100644 --- a/packages/bot-web-ui/package.json +++ b/packages/bot-web-ui/package.json @@ -18,10 +18,11 @@ "node": "18.x" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "analyze:stats": "f () { npm run build:skeleton && NODE_OPTIONS='-r ts-node/register' webpack --progress --env base=$1 --profile --json=stats.json;}; f", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", "start": "npm run test && npm run serve", "serve": "echo \"Serving...\" && NODE_OPTIONS='-r ts-node/register' webpack --progress --watch", - "build": "f () { npm run build:skeleton && NODE_OPTIONS='-r ts-node/register' webpack --progress --env base=$1 --profile --json > stats.json ;}; f", + "build": "f () { npm run build:skeleton && NODE_OPTIONS='-r ts-node/register' webpack --progress --env base=$1;}; f", "build:skeleton": "lerna exec --scope @deriv/bot-skeleton -- npm run build", "build:travis": "echo \"No build:travis specified\"", "test:eslint": "eslint \"./src/**/*.?(js|jsx|ts|tsx|spec.ts|spec.js|spec.tsx|spec.tsx)\"", diff --git a/packages/cashier-v2/package.json b/packages/cashier-v2/package.json index cb20db352836..510a761a18e5 100644 --- a/packages/cashier-v2/package.json +++ b/packages/cashier-v2/package.json @@ -7,8 +7,9 @@ "node": "18.x" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", - "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.ts\" --profile --json > stats.json", + "analyze:stats": "NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.ts\" --profile --json=stats.json", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.ts\"", "serve": "rimraf dist && concurrently \"cross-env BUILD_MODE='serve' NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config ./webpack.config.ts\" \"tsc -w --noEmit --preserveWatchOutput\"", "start": "rimraf dist && npm run test && npm run serve" }, diff --git a/packages/cashier/package.json b/packages/cashier/package.json index 8cb33b27cedb..60fa1757b9d2 100644 --- a/packages/cashier/package.json +++ b/packages/cashier/package.json @@ -25,12 +25,13 @@ "url": "git+https://github.com/binary-com/deriv-app.git" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "analyze:stats": "f () { NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./build/webpack.config.js\" --env base=$1 --profile --json=stats.json;}; f", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", "test": "echo \"No test specified\"", "test:eslint": "eslint \"./src/**/*.?(js|jsx|ts|tsx)\"", "serve": "echo \"Serving...\" && NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config \"./build/webpack.config.js\"", "build:travis": "rimraf dist && webpack --config \"./build/webpack.config.js\" --mode=production", - "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1 --profile --json > stats.json;}; f" + "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1;}; f" }, "bugs": { "url": "https://github.com/binary-com/deriv-app/issues" diff --git a/packages/cfd/package.json b/packages/cfd/package.json index 656e7bd02366..65a945beea9a 100644 --- a/packages/cfd/package.json +++ b/packages/cfd/package.json @@ -5,10 +5,11 @@ "main": "dist/cfd/js/cfd.js", "private": true, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "analyze:stats": "f () { NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./build/webpack.config.js\" --env base=$1 --profile --json=stats.json; }; f", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", "start": "npm run test && npm run serve", "serve": "echo \"Serving...\" && NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config \"./build/webpack.config.js\"", - "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1 --profile --json > stats.json;}; f", + "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1; }; f", "build:travis": "echo \"No build:travis specified\"", "test:eslint": "eslint \"./src/**/*.?(js|jsx|ts|tsx)\"", "deploy": "echo \"No deploy specified\"", diff --git a/packages/components/stories/icon/icons.js b/packages/components/stories/icon/icons.js deleted file mode 100644 index b8917a0f9b4e..000000000000 --- a/packages/components/stories/icon/icons.js +++ /dev/null @@ -1,1119 +0,0 @@ -// auto-generated file. DO NOT MODIFY. - -export const icons = -{ - 'appstore': [ - 'IcAppstoreAddRounded', - 'IcAppstoreAddSquare', - 'IcAppstoreAdd', - 'IcAppstoreAppCardDefaultBackgroundSmall', - 'IcAppstoreAppCardDefaultBackground', - 'IcAppstoreCfdsTradeType', - 'IcAppstoreCheck', - 'IcAppstoreCheckedRedBg', - 'IcAppstoreCheckedTransparent', - 'IcAppstoreChecked', - 'IcAppstoreCircle', - 'IcAppstoreCloseDark', - 'IcAppstoreCloseLight', - 'IcAppstoreDerivLogo', - 'IcAppstoreEllipse', - 'IcAppstoreError', - 'IcAppstoreGetMoreAccounts', - 'IcAppstoreHomeDark', - 'IcAppstoreHome', - 'IcAppstoreInformation', - 'IcAppstoreLinkWallet', - 'IcAppstoreLinkedWallets', - 'IcAppstoreMenuHomepage', - 'IcAppstoreMultipliersTradeType', - 'IcAppstoreOptionTradeType', - 'IcAppstoreSkeletonCardBorder', - 'IcAppstoreSuccess', - 'IcAppstoreTickWhite', - 'IcAppstoreTick', - 'IcAppstoreTradersHubHome', - 'IcAppstoreTradingHubBeta', - 'IcAppstoreTradingHubOnboardingDark', - 'IcAppstoreTradingHubOnboarding', - 'IcAppstoreWalletAudLight', - 'IcAppstoreWalletBitcoinLight', - 'IcAppstoreWalletCardPlaceholderDarkRedLine', - 'IcAppstoreWalletCardPlaceholderDark', - 'IcAppstoreWalletCardPlaceholderLightRedLine', - 'IcAppstoreWalletCardPlaceholderLight', - 'IcAppstoreWalletCardXsBackground', - 'IcAppstoreWalletDefault', - 'IcAppstoreWalletDemo', - 'IcAppstoreWalletEthereumLight', - 'IcAppstoreWalletEurLight', - 'IcAppstoreWalletEusdtLight', - 'IcAppstoreWalletGbpLight', - 'IcAppstoreWalletLitecoinLight', - 'IcAppstoreWalletP2pLight', - 'IcAppstoreWalletPaLight', - 'IcAppstoreWalletSmall', - 'IcAppstoreWalletUsdLight', - 'IcAppstoreWalletUsdcLight', - 'IcAppstoreWalletUsdtLight', - 'IcAppstoreWalletsLink', - 'IcAppstoreWalletsUpgradeCoinsHorizontal', - 'IcAppstoreWalletsUpgradeCoins', - 'IcAppstoreWalletsUpgradeStepOne', - 'IcAppstoreWalletsUpgradeStepTwo', - 'IcAppstoreWalletsUpgradeUnsuccessful', - 'IcAppstoreWarning', - ], - 'brand': [ - 'IcBrandCtraderWordmark', - 'IcBrandCtrader', - 'IcBrandDeriv', - 'IcBrandDerivgo', - 'IcBrandDmt5FinancialStp', - 'IcBrandDmt5Financial', - 'IcBrandDmt5Synthetics', - 'IcBrandDxtradeWordmark', - ], - 'cashier': [ - 'IcCashierAdd', - 'IcCashierAirTmDark', - 'IcCashierAirTmLight', - 'IcCashierAliPayDark', - 'IcCashierAliPayLight', - 'IcCashierAlipayDark', - 'IcCashierAlipayLight', - 'IcCashierApplePay', - 'IcCashierAuthenticate', - 'IcCashierBankBri', - 'IcCashierBankDark', - 'IcCashierBankLight', - 'IcCashierBankTransfer', - 'IcCashierBankbriDark', - 'IcCashierBankbriLight', - 'IcCashierBanxaDark', - 'IcCashierBanxaLight', - 'IcCashierBanxaSmallDark', - 'IcCashierBanxaSmallLight', - 'IcCashierBcaDark', - 'IcCashierBcaLight', - 'IcCashierBca', - 'IcCashierBchDark', - 'IcCashierBchLight', - 'IcCashierBitcoinDark', - 'IcCashierBitcoinLight', - 'IcCashierBlueshyftDark', - 'IcCashierBlueshyftLight', - 'IcCashierBniDark', - 'IcCashierBniLight', - 'IcCashierBpayDark', - 'IcCashierBpayLight', - 'IcCashierCardDark', - 'IcCashierCardLight', - 'IcCashierCebuanaLhuillierDark', - 'IcCashierCebuanaLhuillierLight', - 'IcCashierCimbNiaga', - 'IcCashierCimbniagaDark', - 'IcCashierCimbniagaLight', - 'IcCashierClipboard', - 'IcCashierCommissionDeposit', - 'IcCashierCommissionWithdrawal', - 'IcCashierCreditDebitDark', - 'IcCashierCreditDebitLight', - 'IcCashierCryptoDark', - 'IcCashierCryptoLight', - 'IcCashierDaiDark', - 'IcCashierDaiLight', - 'IcCashierDepositLock', - 'IcCashierDeposit', - 'IcCashierDiamondbankDark', - 'IcCashierDiamondbankLight', - 'IcCashierDirectaDark', - 'IcCashierDirectaLight', - 'IcCashierDp2pBlocked', - 'IcCashierDp2p', - 'IcCashierDragonPhoenix', - 'IcCashierError', - 'IcCashierEthDark', - 'IcCashierEthLight', - 'IcCashierEthereumDark', - 'IcCashierEthereumLight', - 'IcCashierEwalletDark', - 'IcCashierEwalletLight', - 'IcCashierEwallet', - 'IcCashierFirstbankDark', - 'IcCashierFirstbankLight', - 'IcCashierFlexepinDark', - 'IcCashierFlexepinLight', - 'IcCashierFpsDark', - 'IcCashierFpsLight', - 'IcCashierFundsProtection', - 'IcCashierGoPayDark', - 'IcCashierGoPayLight', - 'IcCashierGtbankDark', - 'IcCashierGtbankLight', - 'IcCashierHelpToPayDark', - 'IcCashierHelpToPayLight', - 'IcCashierIcbcDark', - 'IcCashierIcbcLight', - 'IcCashierIdeal', - 'IcCashierInstaPayDark', - 'IcCashierInstaPayLight', - 'IcCashierInstantBankTransferDark', - 'IcCashierInstantBankTransferLight', - 'IcCashierInteracEtransfer', - 'IcCashierLibertyreserveDark', - 'IcCashierLibertyreserveLight', - 'IcCashierLiteCoinDark', - 'IcCashierLiteCoinLight', - 'IcCashierLocalPaymentMethodsDark', - 'IcCashierLocalPaymentMethodsLight', - 'IcCashierLocked', - 'IcCashierMaestro', - 'IcCashierMandiriDark', - 'IcCashierMandiriLight', - 'IcCashierMandiriPay', - 'IcCashierMandirisyariahDark', - 'IcCashierMandirisyariahLight', - 'IcCashierMastercardDark', - 'IcCashierMastercardLight', - 'IcCashierMaximumWithdrawal', - 'IcCashierMinimumWithdrawal', - 'IcCashierMinus', - 'IcCashierMoneygramDark', - 'IcCashierMoneygramLight', - 'IcCashierNganLoungDark', - 'IcCashierNganLoungLight', - 'IcCashierNoAds', - 'IcCashierNoBalance', - 'IcCashierNoOrders', - 'IcCashierOffRamp', - 'IcCashierOnRamp', - 'IcCashierOnlineNairaDark', - 'IcCashierOnlineNairaLight', - 'IcCashierOther', - 'IcCashierP2pUser', - 'IcCashierPayIdDark', - 'IcCashierPayIdLight', - 'IcCashierPayLivreDark', - 'IcCashierPayLivreLight', - 'IcCashierPayNowDark', - 'IcCashierPayNowLight', - 'IcCashierPayRetailersDark', - 'IcCashierPayRetailersLight', - 'IcCashierPaymentAgent', - 'IcCashierPaypalDark', - 'IcCashierPaypalLight', - 'IcCashierPerfectMoneyDark', - 'IcCashierPerfectMoneyLight', - 'IcCashierPermatabankDark', - 'IcCashierPermatabankLight', - 'IcCashierPoliDark', - 'IcCashierPoliLight', - 'IcCashierPostBillPayDark', - 'IcCashierPostBillPayLight', - 'IcCashierPromptPayDark', - 'IcCashierPromptPayLight', - 'IcCashierQrCodeDark', - 'IcCashierQrCodeLight', - 'IcCashierRedWarning', - 'IcCashierSearch', - 'IcCashierSendEmail', - 'IcCashierSepaDark', - 'IcCashierSepaLight', - 'IcCashierSofort', - 'IcCashierSort', - 'IcCashierTetherDark', - 'IcCashierTetherLight', - 'IcCashierTopUp', - 'IcCashierUnderMaintenance', - 'IcCashierUpiDark', - 'IcCashierUpiLight', - 'IcCashierUsdCoinDark', - 'IcCashierUsdCoinLight', - 'IcCashierVerificationBadge', - 'IcCashierVerticalEllipsis', - 'IcCashierVerveDark', - 'IcCashierVerveLight', - 'IcCashierViettlePay', - 'IcCashierVisaDark', - 'IcCashierVisaLight', - 'IcCashierWallet', - 'IcCashierWebMoneyDark', - 'IcCashierWebMoneyLight', - 'IcCashierWechatpayDark', - 'IcCashierWechatpayLight', - 'IcCashierWithdrawWallet', - 'IcCashierWithdrawalLock', - 'IcCashierWithdrawal', - 'IcCashierWyreDark', - 'IcCashierWyreLight', - 'IcCashierZenithbankDark', - 'IcCashierZenithbankLight', - 'IcCashier', - ], - 'common': [ - 'IcAccountCross', - 'IcAccountDontGetScam', - 'IcAccountError', - 'IcAccountLimits', - 'IcAccountMissingDetailsDashboard', - 'IcAccountMissingDetails', - 'IcAccountTick', - 'IcAccountTransferColored', - 'IcAccountTransfer', - 'IcAccountTrashCan', - 'IcAccountWebsite', - 'IcAddAccount', - 'IcAddBold', - 'IcAddCircle', - 'IcAddOutline', - 'IcAddPasskey', - 'IcAddRounded', - 'IcAdd', - 'IcAdjustment', - 'IcAdvcashDark', - 'IcAdvcashLight', - 'IcAlertAnnounce', - 'IcAlertDanger', - 'IcAlertInfo', - 'IcAlertSuccess', - 'IcAlertTrustpilot', - 'IcAlertWarningDark', - 'IcAlertWarning', - 'IcAmplifier', - 'IcArchive', - 'IcArrowDownBold', - 'IcArrowDown', - 'IcArrowLeftBold', - 'IcArrowLeftCurly', - 'IcArrowLeft', - 'IcArrowPointerRight', - 'IcArrowRightBold', - 'IcArrowRightCurly', - 'IcArrowRight', - 'IcArrowUpBold', - 'IcArrowUp', - 'IcAssessment', - 'IcAstroPayDark', - 'IcAstroPayLight', - 'IcAttachment', - 'IcBackButton', - 'IcBankDashboard', - 'IcBankTransfer', - 'IcBank', - 'IcBell', - 'IcBeyonic', - 'IcBlackWarning', - 'IcBlock', - 'IcBlockedAdvertisersBarred', - 'IcBoletoD24VoucherDark', - 'IcBoletoD24VoucherLight', - 'IcBotBuilderArrow', - 'IcBotBuilderTabIcon', - 'IcBotBuilder', - 'IcBotStop', - 'IcBox', - 'IcBulb', - 'IcButtonBack', - 'IcCalendarDatefrom', - 'IcCalendarDateto', - 'IcCalendarForwardToday', - 'IcCalendarToday', - 'IcCalendar', - 'IcCatAccumulator', - 'IcCatAll', - 'IcCatMultiplier', - 'IcCatOptions', - 'IcCatTurbos', - 'IcChart', - 'IcChartsTabDbot', - 'IcChat', - 'IcCheckmarkBlue', - 'IcCheckmarkBold', - 'IcCheckmarkCircle', - 'IcCheckmarkOutline', - 'IcCheckmark', - 'IcChevronDoubleLeft', - 'IcChevronDoubleRight', - 'IcChevronDownBold', - 'IcChevronDown', - 'IcChevronLeftBoldMt5', - 'IcChevronLeftBold', - 'IcChevronLeft', - 'IcChevronRightBoldDark', - 'IcChevronRightBoldMt5', - 'IcChevronRightBold', - 'IcChevronRightLight', - 'IcChevronRight', - 'IcChevronUpBold', - 'IcChevronUp', - 'IcCircleDynamicColor', - 'IcCircle', - 'IcClient', - 'IcClipboard', - 'IcClockOutline', - 'IcClock', - 'IcCloseCircleRed', - 'IcCloseCircle', - 'IcCloseDark', - 'IcCloseIconDbot', - 'IcCloseLight', - 'IcCloudUpload', - 'IcConfirmDetails', - 'IcContextMenu', - 'IcCopy', - 'IcCreditCard', - 'IcCrossCircle', - 'IcCrossLight', - 'IcCrossSolid', - 'IcCross', - 'IcDashboardComponentTab', - 'IcDashboardDbotIcon', - 'IcDbotClose', - 'IcDbotDownload', - 'IcDbotNoSearchResult', - 'IcDbotUserGuide', - 'IcDbotViewDetail', - 'IcDelete', - 'IcDemoResetBalanceDone', - 'IcDemoResetBalance', - 'IcDemo', - 'IcDerivOutline', - 'IcDeriv', - 'IcDesktopOutline', - 'IcDesktop', - 'IcDigits', - 'IcDocsSubmit', - 'IcDocumentNumberVerificationDefault', - 'IcDocumentNumberVerificationFailed', - 'IcDocumentNumberVerificationPending', - 'IcDocumentNumberVerificationVerified', - 'IcDocumentNumberVerification', - 'IcDop', - 'IcDownload', - 'IcDp2p', - 'IcDrivingLicenceFront', - 'IcDrivingLicenseDashboard', - 'IcDrivingLicense', - 'IcEditPasskey', - 'IcEdit', - 'IcEmailChanged', - 'IcEmailFirewall', - 'IcEmailOutlineNew', - 'IcEmailOutline', - 'IcEmailSentDashboard', - 'IcEmailSentExpired', - 'IcEmailSentP2p', - 'IcEmailSent', - 'IcEmailSpam', - 'IcEmailTypo', - 'IcEmailVerificationLinkBlocked', - 'IcEmailVerificationLinkInvalid', - 'IcEmailVerificationLinkValid', - 'IcEmailVerificationResent', - 'IcEmailVerified', - 'IcEmail', - 'IcEmptyBlockedAdvertisers', - 'IcEmptyFolder', - 'IcEmptyStar', - 'IcEwallet', - 'IcEye', - 'IcFacebook', - 'IcFaceid', - 'IcFilter', - 'IcFingerprintBold', - 'IcFingerprint', - 'IcFolderOpenFilled', - 'IcFolderOpen', - 'IcFullScreenRestore', - 'IcFullScreen', - 'IcFullStar', - 'IcGearLight', - 'IcGear', - 'IcGetPlatform', - 'IcGoogleDriveDbot', - 'IcGoogleDrive', - 'IcGreenArrowCheck', - 'IcHamburgerWhite', - 'IcHamburger', - 'IcHelpCentre', - 'IcHighsLows', - 'IcIdCardBack', - 'IcIdCardFront', - 'IcIdentityCardDashboard', - 'IcIdentityCard', - 'IcIdentityDocumentVerificationDefault', - 'IcIdentityDocumentVerificationFailed', - 'IcIdentityDocumentVerificationPending', - 'IcIdentityDocumentVerificationVerified', - 'IcIdentityDocumentVerification', - 'IcImage', - 'IcInfoBlue', - 'IcInfoOutline', - 'IcInfoPasskey', - 'IcInfo', - 'IcInsOuts', - 'IcInstallationApple', - 'IcInstallationGoogle', - 'IcInstallationHuawei', - 'IcInstallationLinux', - 'IcInstallationMacos', - 'IcInstallationWebDemo', - 'IcInstallationWebReal', - 'IcInstallationWindows', - 'IcInvalidError', - 'IcJetonDark', - 'IcJetonLight', - 'IcLanguage', - 'IcLessThanEight', - 'IcLinuxLogo', - 'IcLinux', - 'IcLiveChat', - 'IcLocal', - 'IcLockBold', - 'IcLock', - 'IcLogout', - 'IcLongArrowDown', - 'IcLongArrowRight', - 'IcLookbacks', - 'IcLoss', - 'IcMacosLogo', - 'IcMacos', - 'IcMasterCardDark', - 'IcMasterCardLight', - 'IcMenuDots', - 'IcMessageDelivered', - 'IcMessageErrored', - 'IcMessagePending', - 'IcMessageSeen', - 'IcMinusBold', - 'IcMinusRounded', - 'IcMinus', - 'IcMobileDevice', - 'IcMobileOutline', - 'IcMobile', - 'IcMoneyTransfer', - 'IcMultiplier', - 'IcMyComputer', - 'IcNameAndAddressVerificationDefault', - 'IcNameAndAddressVerificationFailed', - 'IcNameAndAddressVerificationPending', - 'IcNameAndAddressVerificationVerified', - 'IcNameAndAddressVerification', - 'IcNetellerDark', - 'IcNetellerLight', - 'IcNewFile', - 'IcNoAd', - 'IcNoData', - 'IcNoOrder', - 'IcNotApplicableVerificationDefault', - 'IcNotificationClear', - 'IcNotification', - 'IcOnlineNaira', - 'IcOpenPositions', - 'IcOtherPaymentMethod', - 'IcPa', - 'IcPasscode', - 'IcPasskey', - 'IcPassportDashboard', - 'IcPassport', - 'IcPasswordEyeHide', - 'IcPasswordEyeVisible', - 'IcPasswordUpdated', - 'IcPattern', - 'IcPauseOutline', - 'IcPause', - 'IcPaymentAgent', - 'IcPaymentMethodsWallet', - 'IcPc', - 'IcPdf', - 'IcPercentSolid', - 'IcPhone', - 'IcPixDark', - 'IcPixLight', - 'IcPlayOutline', - 'IcPlay', - 'IcPlaybackRate', - 'IcPoaError', - 'IcPoaFileClear', - 'IcPoaFileEightMb', - 'IcPoaFileFormat', - 'IcPoaFileTime', - 'IcPoaFileWithAddress', - 'IcPoaLockDemo', - 'IcPoaLock', - 'IcPoaUpload', - 'IcPoaVerified', - 'IcPoiClearPhoto', - 'IcPoiDocExpiry', - 'IcPoiDrivingLicence', - 'IcPoiErrorDashboard', - 'IcPoiError', - 'IcPoiFailedDashboard', - 'IcPoiFailed', - 'IcPoiFileFormat', - 'IcPoiFileSize', - 'IcPoiFrame', - 'IcPoiIdentityCard', - 'IcPoiNimcSlipHorizontal', - 'IcPoiNimcSlip', - 'IcPoiPassport', - 'IcPoiSuspected', - 'IcPoiUploadDashboard', - 'IcPoiUpload', - 'IcPoiVerifiedDashboard', - 'IcPoiVerified', - 'IcPoincFailed', - 'IcPoincLimited', - 'IcPoincReceived', - 'IcPoincVerified', - 'IcPooRejected', - 'IcPooSubmitted', - 'IcPooVerified', - 'IcPortfolio', - 'IcPositionClosed', - 'IcPreviewIcon', - 'IcPreview', - 'IcProfile', - 'IcProfitTable', - 'IcProfit', - 'IcPurchase', - 'IcPuzzle', - 'IcQrPhone', - 'IcQuickStrategyIcon', - 'IcQuickStrategy', - 'IcRedWarning', - 'IcRedo', - 'IcRegulatoryInformation', - 'IcRemoveToken', - 'IcReplay', - 'IcReports', - 'IcReset', - 'IcSampleCreditCard', - 'IcSaveFilled', - 'IcSave', - 'IcSearch', - 'IcSecurityAndPrivacy', - 'IcSecurity', - 'IcSelfieVerificationDefault', - 'IcSelfieVerificationFailed', - 'IcSelfieVerificationPending', - 'IcSelfieVerificationVerified', - 'IcSelfieVerification', - 'IcSelfie', - 'IcSendMessage', - 'IcShareLink', - 'IcShare', - 'IcSkrillDark', - 'IcSkrillLight', - 'IcSort', - 'IcSoundOff', - 'IcSoundOn', - 'IcStage1', - 'IcStage2', - 'IcStage3', - 'IcStage4', - 'IcStatement', - 'IcSticpayDark', - 'IcSticpayLight', - 'IcStop', - 'IcSuccessPasskey', - 'IcSuccessResetTradingPassword', - 'IcSuccess', - 'IcTelegram', - 'IcTheme', - 'IcThumbsDown', - 'IcThumbsUp', - 'IcTourGuideStep2', - 'IcTrade', - 'IcTradingViewChart', - 'IcTransactions', - 'IcTutorialsTabs', - 'IcUnarchive', - 'IcUndo', - 'IcUnknownOutline', - 'IcUnknown', - 'IcUnlinkApple', - 'IcUnlinkFacebook', - 'IcUnlinkGoogle', - 'IcUnsavedChanges', - 'IcUpDownSolid', - 'IcUpload', - 'IcUpsDowns', - 'IcUserBlockedOutline', - 'IcUserOutline', - 'IcUser', - 'IcUtility', - 'IcVerificationStatusGreen', - 'IcVerificationStatusRed', - 'IcVerificationStatusYellow', - 'IcVerificationSuccess', - 'IcVerification', - 'IcVerifyPasskey', - 'IcVisaDark', - 'IcVisaLight', - 'IcWarning', - 'IcWebMoneyDark', - 'IcWebMoneyLight', - 'IcWebTerminal', - 'IcWebsite', - 'IcWhatsApp', - 'IcWhatsappFilled', - 'IcWindowsLogo', - 'IcWindows', - 'IcWip', - 'IcWithdrawRequestVerificationSent', - 'IcWithdrawRequestVerification', - 'IcZingpay', - 'IcZoomIn', - 'IcZoomOut', - ], - 'contract': [ - 'IcContractBarrier', - 'IcContractBuyPrice', - 'IcContractCommission', - 'IcContractDuration', - 'IcContractEntrySpot', - 'IcContractExitSpot', - 'IcContractExitTimeCircle', - 'IcContractExitTime', - 'IcContractFlag', - 'IcContractId', - 'IcContractPayout', - 'IcContractResetBarrier', - 'IcContractResetTimeCircle', - 'IcContractResetTime', - 'IcContractSafeguard', - 'IcContractStartTimeCircle', - 'IcContractStartTime', - 'IcContractStrike', - 'IcContractTarget', - ], - 'ctrader': [ - 'IcCtrader', - ], - 'currency': [ - 'IcCurrencyAud', - 'IcCurrencyBch', - 'IcCurrencyBtc', - 'IcCurrencyBusd', - 'IcCurrencyDai', - 'IcCurrencyEth', - 'IcCurrencyEurCheck', - 'IcCurrencyEur', - 'IcCurrencyEurs', - 'IcCurrencyEusdt', - 'IcCurrencyGbp', - 'IcCurrencyIdk', - 'IcCurrencyLtc', - 'IcCurrencyPax', - 'IcCurrencyTusd', - 'IcCurrencyTusdt', - 'IcCurrencyUnknown', - 'IcCurrencyUsd', - 'IcCurrencyUsdc', - 'IcCurrencyUsdk', - 'IcCurrencyUst', - 'IcCurrencyVirtual', - ], - 'dxtrade': [ - 'IcDxtradeDerivX', - 'IcDxtradeDerived', - 'IcDxtradeDerivxPlatform', - 'IcDxtradeDeviceDesktopLight', - 'IcDxtradeDeviceDesktop', - 'IcDxtradeDeviceLaptopLight', - 'IcDxtradeDeviceLaptop', - 'IcDxtradeDevicePhoneLight', - 'IcDxtradeDevicePhone', - 'IcDxtradeDeviceTabletLight', - 'IcDxtradeDeviceTablet', - 'IcDxtradeFinancialPlatform', - 'IcDxtradeFinancial', - 'IcDxtradeOnePassword', - 'IcDxtradeSyntheticPlatform', - ], - 'flag': [ - 'IcFlagAr', - 'IcFlagBn', - 'IcFlagDe', - 'IcFlagEn', - 'IcFlagEs', - 'IcFlagFr', - 'IcFlagId', - 'IcFlagIt', - 'IcFlagKo', - 'IcFlagPl', - 'IcFlagPt', - 'IcFlagRu', - 'IcFlagTh', - 'IcFlagTr', - 'IcFlagUk', - 'IcFlagVi', - 'IcFlagZhCn', - 'IcFlagZhTw', - ], - 'mt5': [ - 'IcMt5BviDerived', - 'IcMt5BviFinancial', - 'IcMt5Bvi', - 'IcMt5CfdPlatform', - 'IcMt5Cfds', - 'IcMt5DerivedFinancialBvi', - 'IcMt5DerivedFinancialVanuatu', - 'IcMt5Derived', - 'IcMt5DeviceDesktop', - 'IcMt5DeviceLaptop', - 'IcMt5DevicePhone', - 'IcMt5DeviceTablet', - 'IcMt5Expired', - 'IcMt5FinancialPlatform', - 'IcMt5FinancialStpPlatform', - 'IcMt5FinancialStp', - 'IcMt5Financial', - 'IcMt5HighLeverage', - 'IcMt5LiquidRisk', - 'IcMt5Logo', - 'IcMt5MarginTrading', - 'IcMt5MigrationSuccess', - 'IcMt5OnePassword', - 'IcMt5OpenMarkets', - 'IcMt5PasswordUpdated', - 'IcMt5Responsive', - 'IcMt5Support', - 'IcMt5SvgDerived', - 'IcMt5SvgFinancial', - 'IcMt5SwapFreePlatform', - 'IcMt5SwapFree', - 'IcMt5SyntheticDashboard', - 'IcMt5SyntheticIndices', - 'IcMt5SyntheticPlatform', - 'IcMt5Synthetic', - 'IcMt5TradeTypes', - 'IcMt5VanuatuDerived', - 'IcMt5VanuatuFinancial', - 'IcMt5Vanuatu', - ], - 'option': [ - 'IcOptionAccumulators', - 'IcOptionCallPutReset', - 'IcOptionCallPutSpread', - 'IcOptionCloseToLow', - 'IcOptionEndInOut', - 'IcOptionEvenOdd', - 'IcOptionHighLowTick', - 'IcOptionHighToClose', - 'IcOptionHighToLow', - 'IcOptionHigherLower', - 'IcOptionMatchesDiffers', - 'IcOptionOnlyUpDown', - 'IcOptionOverUnder', - 'IcOptionRaiseFall', - 'IcOptionTouchNotouch', - 'IcOptionUpDownAsian', - ], - 'rebranding': [ - 'IcRebrandingBinaryBot', - 'IcRebrandingCtraderDashboard', - 'IcRebrandingDerivBotDashboard', - 'IcRebrandingDerivBot', - 'IcRebrandingDerivGoDashboard', - 'IcRebrandingDerivTraderDashboard', - 'IcRebrandingDerivTrader', - 'IcRebrandingDerivX', - 'IcRebrandingDerivx', - 'IcRebrandingDmt5Dashboard', - 'IcRebrandingDmt5', - 'IcRebrandingDxtradeDashboard', - 'IcRebrandingDxtradeWordmark', - 'IcRebrandingDxtrade', - 'IcRebrandingMt5Cfds', - 'IcRebrandingMt5DerivedDashboard', - 'IcRebrandingMt5FinancialDashboard', - 'IcRebrandingMt5Logo', - 'IcRebrandingMt5SwapFree', - 'IcRebrandingSmarttraderDashboard', - 'IcRebrandingSmarttrader', - ], - 'stock': [ - 'IcStockAdidasSalomon', - 'IcStockAlibaba', - 'IcStockAlphabet', - 'IcStockAmazon', - 'IcStockAmericanAirlines', - 'IcStockAmericanInternational', - 'IcStockApple', - 'IcStockBayer', - 'IcStockBmw', - 'IcStockBoa', - 'IcStockBoeing', - 'IcStockCisco', - 'IcStockCitiGroup', - 'IcStockCocaCola', - 'IcStockDell', - 'IcStockDelta', - 'IcStockDuetscheBank', - 'IcStockEbay', - 'IcStockFacebook', - 'IcStockFedex', - 'IcStockGm', - 'IcStockGoldman', - 'IcStockGoogle', - 'IcStockHp', - 'IcStockIbm', - 'IcStockIntel', - 'IcStockJonhsonAndJohnson', - 'IcStockJpMorgan', - 'IcStockMasterCardDark', - 'IcStockMasterCard', - 'IcStockMcDonalds', - 'IcStockMicrosoft', - 'IcStockNetflix', - 'IcStockNike', - 'IcStockNvidia', - 'IcStockPaypal', - 'IcStockPfizer', - 'IcStockPg', - 'IcStockSalesforce', - 'IcStockTesla', - 'IcStockTeva', - 'IcStockTwitter', - 'IcStockUber', - 'IcStockVisaDark', - 'IcStockVisa', - 'IcStockWallMart', - 'IcStockWaltDisney', - 'IcStockZoom', - ], - 'tradetype': [ - 'IcTradetypeAccu', - 'IcTradetypeAsiand', - 'IcTradetypeAsianu', - 'IcTradetypeCallBarrier', - 'IcTradetypeCall', - 'IcTradetypeCalleLight', - 'IcTradetypeCallspread', - 'IcTradetypeDigitdiff', - 'IcTradetypeDigiteven', - 'IcTradetypeDigitmatch', - 'IcTradetypeDigitodd', - 'IcTradetypeDigitover', - 'IcTradetypeDigitunder', - 'IcTradetypeExpirymiss', - 'IcTradetypeExpiryrange', - 'IcTradetypeLbcall', - 'IcTradetypeLbhighlow', - 'IcTradetypeLbput', - 'IcTradetypeMultdown', - 'IcTradetypeMultup', - 'IcTradetypeNotouch', - 'IcTradetypeOnetouch', - 'IcTradetypePutBarrier', - 'IcTradetypePut', - 'IcTradetypePutspread', - 'IcTradetypeRange', - 'IcTradetypeResetcall', - 'IcTradetypeResetput', - 'IcTradetypeRunhigh', - 'IcTradetypeRunlow', - 'IcTradetypeTickhigh', - 'IcTradetypeTicklow', - 'IcTradetypeTurboslong', - 'IcTradetypeTurbosshort', - 'IcTradetypeUpordown', - 'IcTradetypeVanillaLongCall', - 'IcTradetypeVanillaLongPut', - ], - 'underlying': [ - 'IcUnderlying1HZ100V', - 'IcUnderlying1HZ10V', - 'IcUnderlying1HZ150V', - 'IcUnderlying1HZ200V', - 'IcUnderlying1HZ250V', - 'IcUnderlying1HZ25V', - 'IcUnderlying1HZ300V', - 'IcUnderlying1HZ50V', - 'IcUnderlying1HZ75V', - 'IcUnderlyingBOOM1000', - 'IcUnderlyingBOOM300N', - 'IcUnderlyingBOOM500', - 'IcUnderlyingCRASH1000', - 'IcUnderlyingCRASH300N', - 'IcUnderlyingCRASH500', - 'IcUnderlyingCRYBCHUSD', - 'IcUnderlyingCRYBNBUSD', - 'IcUnderlyingCRYBTCETH', - 'IcUnderlyingCRYBTCLTC', - 'IcUnderlyingCRYBTCUSD', - 'IcUnderlyingCRYDSHUSD', - 'IcUnderlyingCRYEOSUSD', - 'IcUnderlyingCRYETHUSD', - 'IcUnderlyingCRYIOTUSD', - 'IcUnderlyingCRYLTCUSD', - 'IcUnderlyingCRYNEOUSD', - 'IcUnderlyingCRYOMGUSD', - 'IcUnderlyingCRYPTOBTCCASHUSD', - 'IcUnderlyingCRYPTOBTCUSD', - 'IcUnderlyingCRYPTODASHUSD', - 'IcUnderlyingCRYPTOEOSUSD', - 'IcUnderlyingCRYPTOETHUSD', - 'IcUnderlyingCRYPTOLITUSD', - 'IcUnderlyingCRYPTORIPUSD', - 'IcUnderlyingCRYTRXUSD', - 'IcUnderlyingCRYXLMUSD', - 'IcUnderlyingCRYXMRUSD', - 'IcUnderlyingCRYXRPUSD', - 'IcUnderlyingCRYZECUSD', - 'IcUnderlyingENERGYOILBRENT', - 'IcUnderlyingENERGYOILUSD', - 'IcUnderlyingENERGYOILWEST', - 'IcUnderlyingFRXAUDCAD', - 'IcUnderlyingFRXAUDCHF', - 'IcUnderlyingFRXAUDJPY', - 'IcUnderlyingFRXAUDNZD', - 'IcUnderlyingFRXAUDPLN', - 'IcUnderlyingFRXAUDSGD', - 'IcUnderlyingFRXAUDUSD', - 'IcUnderlyingFRXBROUSD', - 'IcUnderlyingFRXCADCHF', - 'IcUnderlyingFRXCADJPY', - 'IcUnderlyingFRXCHFJPY', - 'IcUnderlyingFRXCHFJYP', - 'IcUnderlyingFRXEURAUD', - 'IcUnderlyingFRXEURCAD', - 'IcUnderlyingFRXEURCHF', - 'IcUnderlyingFRXEURGBP', - 'IcUnderlyingFRXEURHDK', - 'IcUnderlyingFRXEURHKD', - 'IcUnderlyingFRXEURILS', - 'IcUnderlyingFRXEURJPY', - 'IcUnderlyingFRXEURMXN', - 'IcUnderlyingFRXEURNOK', - 'IcUnderlyingFRXEURNZD', - 'IcUnderlyingFRXEURSEK', - 'IcUnderlyingFRXEURSGD', - 'IcUnderlyingFRXEURTRY', - 'IcUnderlyingFRXEURUSD', - 'IcUnderlyingFRXEURZAR', - 'IcUnderlyingFRXGBPAUD', - 'IcUnderlyingFRXGBPCAD', - 'IcUnderlyingFRXGBPCHF', - 'IcUnderlyingFRXGBPJPY', - 'IcUnderlyingFRXGBPNOK', - 'IcUnderlyingFRXGBPNZD', - 'IcUnderlyingFRXGBPPLN', - 'IcUnderlyingFRXGBPSEK', - 'IcUnderlyingFRXGBPSGD', - 'IcUnderlyingFRXGBPTRY', - 'IcUnderlyingFRXGBPUSD', - 'IcUnderlyingFRXGBPZD', - 'IcUnderlyingFRXGPBSGD', - 'IcUnderlyingFRXHDKJPY', - 'IcUnderlyingFRXHKDJPY', - 'IcUnderlyingFRXNZDCAD', - 'IcUnderlyingFRXNZDCHF', - 'IcUnderlyingFRXNZDJPY', - 'IcUnderlyingFRXNZDSGD', - 'IcUnderlyingFRXNZDUSD', - 'IcUnderlyingFRXSGDJPY', - 'IcUnderlyingFRXUSDCAD', - 'IcUnderlyingFRXUSDCHF', - 'IcUnderlyingFRXUSDCNH', - 'IcUnderlyingFRXUSDHKD', - 'IcUnderlyingFRXUSDILS', - 'IcUnderlyingFRXUSDJPY', - 'IcUnderlyingFRXUSDMSX', - 'IcUnderlyingFRXUSDMXN', - 'IcUnderlyingFRXUSDNOK', - 'IcUnderlyingFRXUSDPLN', - 'IcUnderlyingFRXUSDRUB', - 'IcUnderlyingFRXUSDSEK', - 'IcUnderlyingFRXUSDSGD', - 'IcUnderlyingFRXUSDTHB', - 'IcUnderlyingFRXUSDTRY', - 'IcUnderlyingFRXUSDZAR', - 'IcUnderlyingFRXXAGUSD', - 'IcUnderlyingFRXXAUUSD', - 'IcUnderlyingFRXXPDUSD', - 'IcUnderlyingFRXXPTUSD', - 'IcUnderlyingJD10', - 'IcUnderlyingJD100', - 'IcUnderlyingJD150', - 'IcUnderlyingJD200', - 'IcUnderlyingJD25', - 'IcUnderlyingJD50', - 'IcUnderlyingJD75', - 'IcUnderlyingOTC_AEX', - 'IcUnderlyingOTC_AS51', - 'IcUnderlyingOTC_AUSTRALIA_200', - 'IcUnderlyingOTC_DJI', - 'IcUnderlyingOTC_EUR_50', - 'IcUnderlyingOTC_EUR', - 'IcUnderlyingOTC_FCHI', - 'IcUnderlyingOTC_FRANCE_40', - 'IcUnderlyingOTC_FTSE', - 'IcUnderlyingOTC_GDAXI', - 'IcUnderlyingOTC_GERMANY_30', - 'IcUnderlyingOTC_HSI', - 'IcUnderlyingOTC_IBEX35', - 'IcUnderlyingOTC_N225', - 'IcUnderlyingOTC_NDX', - 'IcUnderlyingOTC_NETHERLAND_25', - 'IcUnderlyingOTC_SPAIN_35', - 'IcUnderlyingOTC_SPC', - 'IcUnderlyingOTC_SSMI', - 'IcUnderlyingOTC_SX5E', - 'IcUnderlyingOTC_UK_100', - 'IcUnderlyingOTC_US_30', - 'IcUnderlyingOTC_US_500', - 'IcUnderlyingOTC_US_TECH_10', - 'IcUnderlyingR_10', - 'IcUnderlyingR_100', - 'IcUnderlyingR_25', - 'IcUnderlyingR_50', - 'IcUnderlyingR_75', - 'IcUnderlyingRB_100', - 'IcUnderlyingRB_200', - 'IcUnderlyingRDBEAR', - 'IcUnderlyingRDBULL', - 'IcUnderlyingSTPRNG', - 'IcUnderlyingWLDAUD', - 'IcUnderlyingWLDEUR', - 'IcUnderlyingWLDGBP', - 'IcUnderlyingWLDUSD', - 'IcUnderlyingWLDXAU', - ], - 'wallet': [ - 'IcWalletBitcoinDark', - 'IcWalletBitcoinLight', - 'IcWalletCurrencyAud', - 'IcWalletCurrencyEur', - 'IcWalletCurrencyGbp', - 'IcWalletCurrencyUsd', - 'IcWalletDerivApps', - 'IcWalletDerivDemoDark', - 'IcWalletDerivDemoLight', - 'IcWalletDerivP2pDark', - 'IcWalletDerivP2pLight', - 'IcWalletErrorMessageWithCross', - 'IcWalletEthereumDark', - 'IcWalletEthereumLight', - 'IcWalletInfoMessageWithThreeDots', - 'IcWalletLiteCoinDark', - 'IcWalletLiteCoinLight', - 'IcWalletModalTetherDark', - 'IcWalletModalTetherLight', - 'IcWalletMyApps', - 'IcWalletOptionsDark', - 'IcWalletOptionsLight', - 'IcWalletPaymentAgentDark', - 'IcWalletPaymentAgentLight', - 'IcWalletSuccessMessage', - 'IcWalletTetherDark', - 'IcWalletTetherLight', - 'IcWalletUpgradeCompleted', - 'IcWalletUpgradeLogout', - 'IcWalletUsdCoinDark', - 'IcWalletUsdCoinLight', - ], -} diff --git a/packages/core/package.json b/packages/core/package.json index 364e29ba8c81..5102814d20f3 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -5,10 +5,11 @@ "main": "index.js", "private": true, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "analyze:stats": "f () { webpack --progress --config \"./build/webpack.config.js\" --env base=$1 --env IS_CRYPTO_APP=${IS_CRYPTO_APP:-false} --profile --json=stats.json;}; f", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", "start": "npm run test && npm run serve", "serve": "f() { echo \"Serving...\" && ./node_modules/.bin/webpack serve --config \"./build/webpack.config.js\" --env open $1;}; f", - "build": "f () { webpack --config \"./build/webpack.config.js\" --env base=$1 --env IS_CRYPTO_APP=${IS_CRYPTO_APP:-false} --profile --json > stats.json;}; f", + "build": "f () { webpack --config \"./build/webpack.config.js\" --env base=$1 --env IS_CRYPTO_APP=${IS_CRYPTO_APP:-false};}; f", "build:travis": "echo \"No build:travis specified\"", "test:eslint": "eslint \"./src/**/*.?(js|jsx|ts|tsx)\"", "deploy": "npm run build && gh-pages -d dist --remove=\"js\"", diff --git a/packages/p2p-v2/package.json b/packages/p2p-v2/package.json index 5ca74e8a4b84..3177d51f06d0 100644 --- a/packages/p2p-v2/package.json +++ b/packages/p2p-v2/package.json @@ -7,8 +7,9 @@ "node": "18.x" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", - "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.js\" --profile --json > stats.json", + "analyze:stats": "NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.js\" --profile --json=stats.json", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.js\"", "serve": "rimraf dist && concurrently \"cross-env BUILD_MODE='serve' NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config ./webpack.config.js\" \"tsc -w --noEmit --preserveWatchOutput\"", "start": "rimraf dist && npm run test && npm run serve" }, diff --git a/packages/p2p/package.json b/packages/p2p/package.json index e737406d15cb..f5df77f425ef 100644 --- a/packages/p2p/package.json +++ b/packages/p2p/package.json @@ -14,9 +14,10 @@ "node": "18.x" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "analyze:stats": "NODE_OPTIONS='-r ts-node/register' webpack --progress --profile --json=stats.json", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", "test:eslint": "eslint \"./src/**/*.?(js|ts|jsx|tsx)\"", - "build": "rimraf lib && NODE_OPTIONS='-r ts-node/register' webpack --progress --profile --json > stats.json", + "build": "rimraf lib && NODE_OPTIONS='-r ts-node/register' webpack --progress", "build:publish": "deriv-publisher prepublish && lerna exec --scope=@deriv/shared --scope=@deriv/components -- npm run build:travis -- && rimraf lib && cross-env NODE_ENV=production NPM_PUBLISHING_MODE=1 webpack --progress; deriv-publisher postpublish", "build:travis": "rimraf lib && webpack", "serve": "rimraf lib && cross-env BUILD_MODE='serve' NODE_OPTIONS='-r ts-node/register' webpack --progress --watch", diff --git a/packages/reports/package.json b/packages/reports/package.json index 41e0ade5da75..8583ef9d2675 100644 --- a/packages/reports/package.json +++ b/packages/reports/package.json @@ -5,10 +5,11 @@ "main": "dist/reports/js/reports.js", "private": true, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "analyze:stats": "f () { NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./build/webpack.config.js\" --env base=$1 --profile --json=stats.json;}; f", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", "start": "npm run test && npm run serve", "serve": "echo \"Serving...\" && NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config \"./build/webpack.config.js\"", - "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1 --profile --json > stats.json;}; f", + "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1;}; f", "build:travis": "echo \"No build:travis specified\"", "test:eslint": "eslint \"./src/**/*.?(js|jsx|ts|tsx)\"", "deploy": "echo \"No deploy specified\"", diff --git a/packages/trader/package.json b/packages/trader/package.json index a855709cb0d8..1744ea5b9aa8 100644 --- a/packages/trader/package.json +++ b/packages/trader/package.json @@ -5,10 +5,11 @@ "main": "dist/trader/js/trader.js", "private": true, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "analyze:stats": "f () { NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./build/webpack.config.js\" --env base=$1 --profile --json=stats.json;}; f", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", "start": "npm run test && npm run serve", "serve": "echo \"Serving...\" && NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config \"./build/webpack.config.js\"", - "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1 --profile --json > stats.json;}; f", + "build": "f () { NODE_OPTIONS='-r ts-node/register' webpack --config \"./build/webpack.config.js\" --env base=$1;}; f", "build:travis": "echo \"No build:travis specified\"", "test:eslint": "eslint \"./src/**/*.?(js|jsx|ts|tsx)\"", "deploy": "echo \"No deploy specified\"", diff --git a/packages/tradershub/package.json b/packages/tradershub/package.json index 0c57606bf89b..5169840f3c52 100644 --- a/packages/tradershub/package.json +++ b/packages/tradershub/package.json @@ -7,8 +7,9 @@ "node": "18.x" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", - "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.js\" --profile --json > stats.json", + "analyze:stats": "NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.js\" --profile --json=stats.json", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.js\"", "serve": "rimraf dist && concurrently \"cross-env BUILD_MODE='serve' NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config ./webpack.config.js\" \"tsc -w --noEmit --preserveWatchOutput\"", "start": "rimraf dist && npm run test && npm run serve", "translate": "sh ./scripts/update-translations.sh" diff --git a/packages/wallets/package.json b/packages/wallets/package.json index ecfce67ab299..26831ee991ce 100644 --- a/packages/wallets/package.json +++ b/packages/wallets/package.json @@ -7,8 +7,9 @@ "node": "18.x" }, "scripts": { - "analyze": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", - "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.js\" --profile --json > stats.json && npm run translate", + "analyze:stats": "NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.js\" --profile --json=stats.json", + "analyze:build": "webpack-bundle-analyzer --no-open -m static -r analyzed.html stats.json ./dist && webpack-bundle-analyzer -m json stats.json ./dist", + "build": "rimraf dist && NODE_OPTIONS='-r ts-node/register' webpack --progress --config \"./webpack.config.js\" && npm run translate", "serve": "rimraf dist && concurrently \"cross-env BUILD_MODE='serve' NODE_OPTIONS='-r ts-node/register' webpack --progress --watch --config ./webpack.config.js\" \"tsc -w --noEmit --preserveWatchOutput\"", "start": "rimraf dist && npm run test && npm run serve", "translate": "sh ./scripts/update-translations.sh"