refactor(repo): use turbo + rollup + vite
This commit is contained in:
50
package.json
50
package.json
@@ -1,64 +1,44 @@
|
||||
{
|
||||
"name": "reactflow-monorepo",
|
||||
"name": "@reactflow/monorepo",
|
||||
"version": "0.0.0",
|
||||
"description": "A highly customizable React library for building node-based editors and interactive flow charts",
|
||||
"repository": "git@github.com:wbkd/react-flow.git",
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
"packages/*",
|
||||
"examples/*",
|
||||
"tooling/*"
|
||||
],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"postinstall": "preconstruct dev && yarn run packages",
|
||||
"dev": "preconstruct watch",
|
||||
"dev:example": "cd examples/nextjs && yarn dev",
|
||||
"build": "preconstruct build && yarn run packages",
|
||||
"packages": "yarn workspaces foreach --include '@reactflow/**' --include 'reactflow' run build",
|
||||
"test:all": "yarn test:chrome && yarn test:firefox",
|
||||
"test:e2e": "cd examples/nextjs && cypress run",
|
||||
"test:component": "cd examples/nextjs && cypress run --component",
|
||||
"test:chrome": "cd examples/nextjs && cypress run --browser chrome",
|
||||
"test:firefox": "cd examples/nextjs && cypress run --browser firefox",
|
||||
"test": "yarn build && start-server-and-test dev:example http://localhost:3000 test:component",
|
||||
"cypress:open": "cd examples/nextjs && cypress open",
|
||||
"cypress:dev": "yarn build && start-server-and-test dev:example http://localhost:3000 cypress:open",
|
||||
"release": "changeset publish"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"dev": "turbo run dev",
|
||||
"build": "turbo run build",
|
||||
"test": "turbo run test",
|
||||
"lint": "turbo run lint",
|
||||
"release": "changeset publish",
|
||||
"clean": "pnpm -r --parallel exec rimraf dist .turbo"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.18.10",
|
||||
"@babel/plugin-transform-runtime": "^7.18.10",
|
||||
"@babel/preset-env": "^7.18.10",
|
||||
"@babel/preset-react": "^7.18.6",
|
||||
"@babel/preset-typescript": "^7.18.6",
|
||||
"@changesets/changelog-github": "^0.4.6",
|
||||
"@changesets/cli": "^2.24.3",
|
||||
"@preconstruct/cli": "^2.2.1",
|
||||
"@typescript-eslint/eslint-plugin": "latest",
|
||||
"@typescript-eslint/parser": "latest",
|
||||
"autoprefixer": "^10.4.8",
|
||||
"concurrently": "^7.4.0",
|
||||
"cypress": "^10.6.0",
|
||||
"eslint": "^8.22.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-react": "latest",
|
||||
"postcss": "^8.4.16",
|
||||
"postcss-cli": "^10.0.0",
|
||||
"postcss-combine-duplicated-selectors": "^10.0.3",
|
||||
"postcss-import": "^14.1.0",
|
||||
"postcss-nested": "^5.0.6",
|
||||
"prettier": "^2.7.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.79.0",
|
||||
"start-server-and-test": "^1.14.0",
|
||||
"tsconfig": "*",
|
||||
"turbo": "^1.4.6",
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
"preconstruct": {
|
||||
"packages": [
|
||||
"packages/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user