UNPKG

@suns/react-monorepo-nx

Version:

To evaluate and compare the bundled and unbundled builds on large codebase.

107 lines (106 loc) 4.34 kB
{ "name": "@suns/react-monorepo-nx", "version": "0.0.3", "scripts": { "clean": "rm -rf apps/frontend/odd/src/lib/lorem_* && rm -rf apps/frontend/even/src/lib/lorem_* && rm -rf shared/src/lib/lorem_*", "build": "yarn nx affected --target=build #build only changed", "build:frontend": "yarn nx run frontend:build", "build:all": "yarn nx run-many --target=build,unbundle --all", "unbundle": "yarn nx run frontend:unbundle:development", "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; [ -z \"$LOREM_DEPTH\" ] && export LOREM_DEPTH=4; [ -z \"$LOREM_PARAGRAPHS\" ] && export LOREM_PARAGRAPHS=20; yarn lorem:shared && yarn lorem:even && yarn lorem:odd", "lorem:shared": "yarn nx g lorem-generator lorem shared --depth=$LOREM_DEPTH --paragraphs=$LOREM_PARAGRAPHS --text=\"\"", "lorem:even": "yarn nx g lorem-generator lorem frontend-even --depth=$LOREM_DEPTH --paragraphs=$LOREM_PARAGRAPHS --text=\"\"", "lorem:odd": "yarn nx g lorem-generator lorem frontend-odd --depth=$LOREM_DEPTH --paragraphs=$LOREM_PARAGRAPHS --text=\"\"" }, "dependencies": { "@pdftron/webviewer": "^10.4.0", "@swc/helpers": "~0.5.2", "react": "18.2.0", "react-dom": "18.2.0", "react-router-dom": "6.11.2", "tslib": "^2.3.0" }, "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/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", "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" }