@suns/react-monorepo-nx
Version:
To evaluate and compare the bundled and unbundled builds on large codebase.
114 lines (113 loc) • 5.43 kB
JSON
{
"name": "@suns/react-monorepo-nx",
"version": "0.0.5",
"scripts": {
"clean": "rm -rf dist; yarn nx reset ; rm -rf apps/frontend/odd/src/lib/lorem_* && rm -rf apps/frontend/even/src/lib/lorem_* && rm -rf shared/src/lib/lorem_*",
"jsondir": "yarn jsondir:bundle; yarn jsondir:esm",
"jsondir:bundle": "yarn node tools/jsondir.mjs dist/apps/frontend/assets shared;yarn node tools/jsondir.mjs dist/apps/frontend/assets odd;yarn node tools/jsondir.mjs dist/apps/frontend/assets even",
"jsondir:esm": "yarn node tools/jsondir.mjs dist/apps/frontend-esm/assets shared;yarn node tools/jsondir.mjs dist/apps/frontend-esm/assets odd;yarn node tools/jsondir.mjs dist/apps/frontend-esm/assets even",
"build": "yarn nx affected --target=build && yarn jsondir:bundle #build only changed",
"build:frontend": "yarn nx run frontend:build",
"build:all": "yarn nx run-many --target=build,unbundle --all && yarn jsondir",
"unbundle": "yarn nx run frontend:unbundle:development && yarn jsondir:esm",
"test": "yarn nx run-many --target=test --all",
"test:plugins": "yarn nx run plugins:test --skip-nx-cache",
"postinstall": "yarn lorem",
"graph": "yarn nx graph",
"dev": "yarn nx serve frontend",
"prepublishOnly": "yarn build:all",
"preview": "yarn build && yarn nx preview frontend",
"preview:help": "echo run release build and start web server ",
"prod": "yarn build && cd dist/apps/frontend && npx http-server -o .",
"esm": "yarn unbundle && cd dist/apps/frontend-esm && npx http-server -o .",
"lorem": "yarn clean; yarn lorem:shared && yarn lorem:even && yarn lorem:odd",
"lorem:shared": "[ -z \"$LOREM_DEPTH\" ] && export LOREM_DEPTH=4; [ -z \"$LOREM_PARAGRAPHS\" ] && export LOREM_PARAGRAPHS=10; yarn nx g lorem-generator lorem shared --depth=$LOREM_DEPTH --paragraphs=$LOREM_PARAGRAPHS --text=\"\"; yarn node tools/jsondir.mjs shared/src/lib shared",
"lorem:even": "[ -z \"$LOREM_DEPTH\" ] && export LOREM_DEPTH=4; [ -z \"$LOREM_PARAGRAPHS\" ] && export LOREM_PARAGRAPHS=20; yarn nx g lorem-generator lorem frontend-even --depth=$LOREM_DEPTH --paragraphs=$LOREM_PARAGRAPHS --text=\"\"; yarn node tools/jsondir.mjs apps/frontend/even/src/lib even",
"lorem:odd": "[ -z \"$LOREM_DEPTH\" ] && export LOREM_DEPTH=4; [ -z \"$LOREM_PARAGRAPHS\" ] && export LOREM_PARAGRAPHS=40; yarn nx g lorem-generator lorem frontend-odd --depth=$LOREM_DEPTH --paragraphs=$LOREM_PARAGRAPHS --text=\"\"; yarn node tools/jsondir.mjs apps/frontend/odd/src/lib odd"
},
"dependencies": {
"@pdftron/webviewer": "^10.4.0",
"@swc/helpers": "~0.5.2",
"lodash-es": "^4.17.21",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.11.2",
"tslib": "^2.3.0",
"use-http": "^1.0.28"
},
"devDependencies": {
"@babel/core": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@nx/cypress": "17.0.0",
"@nx/devkit": "17.0.0",
"@nx/eslint": "17.0.0",
"@nx/eslint-plugin": "17.0.0",
"@nx/jest": "17.0.0",
"@nx/js": "17.0.0",
"@nx/playwright": "17.0.0",
"@nx/plugin": "^17.0.0",
"@nx/react": "17.0.0",
"@nx/vite": "17.0.0",
"@nx/workspace": "17.0.0",
"@playwright/test": "^1.36.0",
"@swc-node/register": "^1.6.8",
"@swc/cli": "~0.1.62",
"@swc/core": "^1.3.93",
"@testing-library/react": "14.0.0",
"@types/glob": "^8.1.0",
"@types/jest": "^29.4.0",
"@types/lodash-es": "^4.17.10",
"@types/node": "18.14.2",
"@types/react": "18.2.24",
"@types/react-dom": "18.2.9",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"@vitejs/plugin-react": "~4.0.0",
"@vitejs/plugin-react-swc": "~3.3.2",
"@vitest/coverage-c8": "~0.32.0",
"@vitest/ui": "~0.32.0",
"eslint": "~8.46.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-playwright": "^0.15.3",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"jsdom": "~22.1.0",
"lorem-ipsum": "^2.0.8",
"nx": "17.0.0",
"nx-cloud": "16.5.2",
"prettier": "^2.6.2",
"sass": "^1.55.0",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "~5.1.3",
"vite": "~4.3.9",
"vite-plugin-dts": "~2.3.0",
"vitest": "~0.32.0"
},
"description": "To evaluate and compare the bundled and unbundled builds on large codebase.",
"main": "apps/frontend/index.html",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/sashafirsov/react-monorepo-nx.git"
},
"keywords": [
"monorepo",
"nx",
"react",
"typescript",
"vite",
"vitest",
"unbundled"
],
"author": "Sasha Firsov",
"license": "MIT",
"bugs": {
"url": "https://github.com/sashafirsov/react-monorepo-nx/issues"
},
"homepage": "https://github.com/sashafirsov/react-monorepo-nx#readme"
}