Skip to content

Commit

Permalink
Rename dev13 script to dev (#1766)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Mar 20, 2023
1 parent 816f069 commit 93bf714
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 16 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ If you would like to hack on MUI Toolpad or want to run the latest version, you
yarn install
```

1. Run the dev in watch mode (Note it's `dev13`, not `dev`)
1. Run the build in watch mode

```sh
yarn dev13
yarn dev
```

1. In another folder, start a toolpad project using:
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"prettier:all": "prettier --write . --ignore-path .eslintignore",
"deduplicate": "node scripts/deduplicate.mjs",
"start": "dotenv cross-env FORCE_COLOR=1 yarn workspace @mui/toolpad-app start",
"dev": "dotenv cross-env FORCE_COLOR=1 lerna -- run dev --stream --parallel --scope @mui/toolpad-core --scope @mui/toolpad-components --scope @mui/toolpad-app",
"dev13": "dotenv cross-env FORCE_COLOR=1 lerna -- run dev13 --stream --parallel",
"dev": "dotenv cross-env FORCE_COLOR=1 lerna -- run dev --stream --parallel",
"docs:dev": "yarn workspace docs dev",
"docs:build": "yarn workspace docs build",
"docs:export": "yarn workspace docs export",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-toolpad-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"scripts": {
"prebuild": "rimraf ./dist",
"build": "tsc -p ./tsconfig.json -outDir ./dist/",
"dev13": "tsc -w -p ./tsconfig.json --outDir ./dist/"
"dev": "tsc -w -p ./tsconfig.json --outDir ./dist/"
},
"engines": {
"node": ">=14.6.0"
Expand Down
9 changes: 2 additions & 7 deletions packages/toolpad-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"scripts": {
"build": "yarn prisma generate && concurrently \"yarn:build:*\" && rimraf ./.next/cache",
"start": "yarn waitForDb && yarn prisma migrate deploy && next start",
"dev": "yarn prisma generate && yarn waitForDb && yarn prisma db push --skip-generate && concurrently \"yarn:dev:*\"",
"dev13": "concurrently \"yarn:dev13:*\"",
"dev": "concurrently \"yarn:dev:*\"",
"cli": "./cli.js",
"lint": "next lint && prettier --check .",
"fix": "next lint --fix && prettier --write .",
Expand All @@ -16,13 +15,9 @@
"build:react-devtools": "rimraf ./public/reactDevtools && esbuild ./reactDevtools/bootstrap.ts --target=es6 --bundle --format=iife --outdir=./public/reactDevtools",
"build:typings": "ts-node --esm ./scripts/typings.mts",
"build:function-runtime": "rimraf ./src/toolpadDataSources/function/dist && esbuild ./src/toolpadDataSources/function/runtime/index.ts --target=es2020 --bundle --outdir=./src/toolpadDataSources/function/dist",
"dev:next": "next dev | pino-pretty",
"dev:cli": "yarn build:cli --watch --preserveWatchOutput",
"dev:react-devtools": "yarn build:react-devtools --watch",
"dev:typings": "yarn build:typings",
"dev:prisma": "prisma generate --watch",
"dev13:cli": "yarn build:cli --watch --preserveWatchOutput",
"dev13:react-devtools": "yarn build:react-devtools --watch",
"dev13:typings": "yarn build:typings",
"waitForDb": "ts-node --esm ./scripts/waitForDb.mts",
"dev:function-runtime": "yarn build:function-runtime --watch",
"waitForApp": "ts-node --esm ./scripts/waitForApp.mts",
Expand Down
1 change: 0 additions & 1 deletion packages/toolpad-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"prebuild": "rimraf dist",
"build": "tsc",
"dev": "tsc --pretty --watch --preserveWatchOutput",
"dev13": "tsc --pretty --watch --preserveWatchOutput",
"test": "echo \"Error: run tests from root\" && exit 1",
"check-types": "tsc"
},
Expand Down
1 change: 0 additions & 1 deletion packages/toolpad-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"dev": "concurrently \"yarn:dev:*\" yarn:cjsify",
"dev:esm": "yarn build:esm --pretty --watch --preserveWatchOutput",
"dev:cjs": "yarn build:cjs --pretty --watch --preserveWatchOutput",
"dev13": "yarn dev",
"test": "echo \"Error: run tests from root\" && exit 1",
"check-types": "yarn build"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/toolpad/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"build:cjs": "tsc -p tsconfig.cjs.json",
"dev": "concurrently \"yarn:dev:*\" yarn:cjsify",
"dev:esm": "yarn build:esm --pretty --watch --preserveWatchOutput",
"dev:cjs": "yarn build:cjs --pretty --watch --preserveWatchOutput",
"dev13": "yarn dev"
"dev:cjs": "yarn build:cjs --pretty --watch --preserveWatchOutput"
},
"exports": {
"./package.json": "./package.json",
Expand Down

0 comments on commit 93bf714

Please sign in to comment.