Skip to content

Commit

Permalink
build: full turbo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Apr 13, 2022
1 parent 5254f3a commit 12f3203
Show file tree
Hide file tree
Showing 49 changed files with 1,137 additions and 860 deletions.
41 changes: 13 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@
]
},
"scripts": {
"build:module": "esr scripts/build.ts",
"build:prod": "NODE_ENV=production yarn build:module",
"dev": "yarn build:module --dev",
"watch": "yarn build:module --dev --watch",
"prepare": "husky install",
"clean": "esr scripts/generate-typings.ts",
"build:types": "ultra -r --silent --concurrency 20 --filter \"@zag-js/*\" \"tsc src/index.ts --declaration --emitDeclarationOnly --target es2018 --outDir dist --skipLibCheck --moduleResolution node --strict false\"",
"prebuild": "yarn build:types",
"build": "NODE_ENV=production yarn build:module",
"build:fast": "yarn turbo run build:fast --filter=./packages/**/*",
"build": "turbo run build --filter=./packages/**/*",
"start": "turbo run start --stream --parallel --filter=./packages/**/*",
"postinstall": "husky install && patch-package",
"clean": "manypkg exec rm -rf dist .turbo .swc",
"start:react": "cd examples/next-ts && yarn dev",
"start:vue": "cd examples/vue-ts && vite --port 3002 --clearScreen false",
"start:solid": "cd examples/solid-ts && vite --port 3001 --clearScreen false",
Expand All @@ -33,34 +29,30 @@
"cypress:run": "cypress run",
"cypress:dev": "cypress open",
"fix:pkgs": "manypkg fix",
"gen:machine": "esr scripts/generate-machine.ts",
"gen:util": "esr scripts/generate-util.ts",
"lint": "eslint packages --ext .ts",
"postinstall": "patch-package",
"gen:machine": "plop machine",
"gen:util": "plop utility",
"lint": "turbo run lint --stream --parallel",
"version": "changeset version",
"release": "changeset publish",
"test": "jest --maxWorkers=50%",
"test:ci": "jest --runInBand"
"test": "turbo run test --stream",
"test:ci": "turbo run test:ci --stream"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.0",
"@changesets/cli": "^2.19.0",
"@commitlint/cli": "^16.0.2",
"@commitlint/config-conventional": "^16.0.0",
"@lerna/package-graph": "^4.0.0",
"@manypkg/cli": "^0.17.0",
"@swc-node/jest": "^1.4.3",
"@testing-library/cypress": "^8.0.2",
"@testing-library/dom": "^8.12.0",
"@testing-library/jest-dom": "^5.16.1",
"@types/form-serialize": "^0.7.2",
"@types/jest": "^27.4.0",
"@types/lodash": "^4.14.178",
"@types/shelljs": "^0.8.11",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"axe-core": "^4.3.5",
"chalk": "^4.1.2",
"chokidar": "^3.5.2",
"commitlint": "^12.1.4",
"cypress": "^8.5.0",
"cypress-axe": "^0.14.0",
Expand All @@ -77,23 +69,16 @@
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-testing-library": "^4.4.0",
"form-serialize": "^0.7.2",
"gzip-size": "6.0.0",
"husky": "^6.0.0",
"jest": "^26.6.3",
"jest-watch-typeahead": "^0.6.3",
"lint-staged": "^11.0.0",
"lodash": "^4.17.21",
"node-plop": "^0.26.2",
"plop": "^3.0.5",
"patch-package": "^6.4.7",
"prettier": "^2.5.1",
"pretty-bytes": "^5.6.0",
"rimraf": "^3.0.2",
"shelljs": "^0.8.5",
"start-server-and-test": "^1.14.0",
"typescript": "^4.6.3",
"turbo": "^1.2.2",
"lask": "^0.1.0",
"ultra-runner": "^3.10.5"
"turbo": "^1.2.2"
},
"lint-staged": {
"**/*.{ts,tsx,js,jsx}": "prettier --write"
Expand Down
9 changes: 5 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
"dist/**/*"
],
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../jest.config.js --rootDir tests",
"test": "jest --config ../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --updateSnapshot",
"test:watch": "yarn test --watchAll"
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
},
"publishConfig": {
"access": "public"
Expand All @@ -40,4 +41,4 @@
"klona": "^2.0.5",
"valtio": "^1.5.2"
}
}
}
13 changes: 11 additions & 2 deletions packages/frameworks/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/frameworks/react",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -37,5 +37,14 @@
},
"peerDependencies": {
"react": ">=16.8.6"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/frameworks/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/frameworks/solid",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -37,5 +37,14 @@
},
"peerDependencies": {
"solid-js": ">=1.1.3"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/frameworks/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/core/svelte",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -35,5 +35,14 @@
},
"peerDependencies": {
"svelte": "^3.38.2"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/frameworks/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/frameworks/vue",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -38,5 +38,14 @@
"peerDependencies": {
"@vue/runtime-dom": ">=3.2.0",
"vue": ">=3.0.0"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/machines/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/accordion",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -33,5 +33,14 @@
"@zag-js/dom-utils": "^0.0.0",
"@zag-js/types": "^0.0.0",
"@zag-js/utils": "^0.0.0"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/machines/combobox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/combobox",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -34,5 +34,14 @@
"@zag-js/dom-utils": "^0.0.0",
"@zag-js/types": "^0.0.0",
"scroll-into-view-if-needed": "^2.2.28"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/machines/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/dialog",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -35,5 +35,14 @@
"aria-hidden": "^1.1.3",
"focus-trap": "^6.7.1",
"scroll-into-view-if-needed": "^2.2.28"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/machines/editable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/editable",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -32,5 +32,14 @@
"@zag-js/core": "^0.0.0",
"@zag-js/dom-utils": "^0.0.0",
"@zag-js/types": "^0.0.0"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/machines/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/menu",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -35,5 +35,14 @@
"@zag-js/popper": "^0.0.0",
"@zag-js/types": "^0.0.0",
"@zag-js/utils": "^0.0.0"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/machines/number-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/number-input",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -35,5 +35,14 @@
"@zag-js/rect-utils": "^0.0.0",
"@zag-js/types": "^0.0.0",
"@zag-js/utils": "^0.0.0"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
13 changes: 11 additions & 2 deletions packages/machines/pin-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/pin-input",
"sideEffects": false,
"files": [
"dist"
"dist/**/*"
],
"publishConfig": {
"access": "public"
Expand All @@ -33,5 +33,14 @@
"@zag-js/dom-utils": "^0.0.0",
"@zag-js/types": "^0.0.0",
"@zag-js/utils": "^0.0.0"
},
"scripts": {
"build:fast": "yarn zag build",
"start": "yarn zag build --watch",
"build": "yarn zag build --prod",
"test": "jest --config ../../../jest.config.js --rootDir tests --passWithNoTests",
"lint": "eslint src --ext .ts,.tsx",
"test:ci": "yarn test --ci --runInBand --maxWorkers=50%",
"test:watch": "yarn test --watch --updateSnapshot"
}
}
}
Loading

0 comments on commit 12f3203

Please sign in to comment.