mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
195 lines
5.1 KiB
JSON
195 lines
5.1 KiB
JSON
{
|
|
"tags": ["scope:extension", "type:app"],
|
|
"targets": {
|
|
"build": {
|
|
"executor": "nx:noop",
|
|
"dependsOn": ["^build", "prepare"]
|
|
},
|
|
"build:firefox": {
|
|
"command": "wxt build -b firefox",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"build:production": {
|
|
"command": "webpack --node-env=production --env BUILD_ENV=prod BUILD_NUM=${BUILD_NUM:-0}",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"build:wxt": {
|
|
"command": "wxt build",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"check:circular": {
|
|
"command": "bunx madge --circular ./src/entrypoints/sidepanel/main.tsx ./src/entrypoints/onboarding/main.tsx ./src/entrypoints/unitagClaim/main.tsx",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"check:deps:usage": {},
|
|
"clean": {
|
|
"command": "wxt clean",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"dev": {
|
|
"command": "wxt",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"dev:firefox": {
|
|
"command": "wxt -b firefox",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"env:local:download": {
|
|
"command": "bash ../../scripts/downloadEnvLocal.sh m4dhqfltt3dokkqi3hqwigmf2a .env",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"env:local:upload": {
|
|
"command": "bash ../../scripts/uploadEnvLocal.sh m4dhqfltt3dokkqi3hqwigmf2a .env",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"lint": {},
|
|
"lint:fix": {},
|
|
"check": {},
|
|
"check:fix": {},
|
|
"lint:eslint": {
|
|
"command": "NODE_OPTIONS='--max_old_space_size=8192 --max-semi-space-size=256' eslint --cache --cache-location node_modules/.cache/eslint/ --max-warnings=0 .",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"lint:eslint:fix": {
|
|
"command": "NODE_OPTIONS='--max_old_space_size=8192 --max-semi-space-size=256' eslint --cache --cache-location node_modules/.cache/eslint/ . --fix",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"postinstall": {
|
|
"command": "wxt prepare",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"prepare": {
|
|
"command": "wxt prepare",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
},
|
|
"cache": true,
|
|
"inputs": [
|
|
"{projectRoot}/wxt.config.ts",
|
|
"{projectRoot}/config/**",
|
|
"{projectRoot}/src/entrypoints/**/*",
|
|
"{projectRoot}/package.json"
|
|
],
|
|
"outputs": ["{projectRoot}/.wxt/types", "{projectRoot}/.wxt/tsconfig.json", "{projectRoot}/.wxt/wxt.d.ts"]
|
|
},
|
|
"snapshots": {
|
|
"command": "jest -u",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"start": {
|
|
"command": "wxt",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"start:absolute": {
|
|
"command": "bun run start:absolute:mac",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"start:absolute:mac": {
|
|
"command": "WXT_ABSOLUTE_OUTDIR=/Users/Shared/stretch wxt",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"start:absolute:windows": {
|
|
"command": "WXT_ABSOLUTE_OUTDIR=C:/ProgramData/stretch wxt",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"command": "webpack --node-env=production --env BUILD_ENV=dev BUILD_NUM=0",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
},
|
|
"inputs": ["dependencies", "sourceFiles", "tsConfig"],
|
|
"outputs": ["{projectRoot}/dist", "{projectRoot}/build", "{projectRoot}/.next", "{projectRoot}/types"],
|
|
"cache": true,
|
|
"dependsOn": ["^build", "prepare"]
|
|
},
|
|
"playwright:test": {
|
|
"command": "playwright test --config=e2e/config/playwright.config.ts",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"playwright:test:smoke": {
|
|
"command": "playwright test --config=e2e/config/playwright.config.ts e2e/tests/smoke/",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"playwright:ui": {
|
|
"command": "playwright test --ui --config=e2e/config/playwright.config.ts",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"e2e": {
|
|
"command": "nx playwright:test extension",
|
|
"dependsOn": ["build:e2e"]
|
|
},
|
|
"e2e:smoke": {
|
|
"command": "nx playwright:test:smoke extension",
|
|
"dependsOn": ["build:e2e"]
|
|
},
|
|
"e2e:ui": {
|
|
"command": "nx playwright:ui extension",
|
|
"dependsOn": ["build:e2e"]
|
|
},
|
|
"validate:build": {
|
|
"command": "bunx tsx scripts/validateBuildOutput.ts",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
},
|
|
"dependsOn": ["build:wxt"]
|
|
},
|
|
"validate:build:dev": {
|
|
"command": "bunx tsx scripts/validateBuildOutput.ts --dev",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
}
|
|
},
|
|
"validate:build:prod": {
|
|
"command": "bunx tsx scripts/validateBuildOutput.ts --prod",
|
|
"options": {
|
|
"cwd": "{projectRoot}"
|
|
},
|
|
"dependsOn": ["build:wxt"]
|
|
},
|
|
"oxfmt": {},
|
|
"oxfmt:fix": {},
|
|
"oxlint": {},
|
|
"oxlint:fix": {},
|
|
"oxlint:type-aware": {}
|
|
}
|
|
}
|