forked from chakra-ui/zag
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fdde27
commit c64a99a
Showing
25 changed files
with
508 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"entryPoints": ["./src/index.ts"], | ||
"clean": true, | ||
"outDir": "dist", | ||
"external": { | ||
"dependencies": true, | ||
"peerDependencies": true | ||
}, | ||
"devConfig": "tsconfig.json", | ||
"buildConfig": "tsconfig.json", | ||
"format": ["cjs", "esm"], | ||
"calculateSize": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
{ | ||
"name": "zag", | ||
"private": true, | ||
"description": "UI machines monorepo root package", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/chakra-ui/zag.git" | ||
}, | ||
"author": "Segun Adebayo <[email protected]>", | ||
"license": "MIT", | ||
"workspaces": { | ||
"packages": [ | ||
"packages/**/*", | ||
"scripts", | ||
"examples/*" | ||
] | ||
}, | ||
"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 && yarn dev", | ||
"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", | ||
|
@@ -35,7 +41,7 @@ | |
"test": "jest --maxWorkers=50%", | ||
"test:ci": "jest --runInBand" | ||
}, | ||
"dependencies": { | ||
"devDependencies": { | ||
"@changesets/changelog-github": "^0.4.0", | ||
"@changesets/cli": "^2.19.0", | ||
"@commitlint/cli": "^16.0.2", | ||
|
@@ -84,26 +90,13 @@ | |
"rimraf": "^3.0.2", | ||
"shelljs": "^0.8.5", | ||
"start-server-and-test": "^1.14.0", | ||
"typescript": "4.5.4", | ||
"typescript": "^4.6.3", | ||
"turbo": "^1.2.2", | ||
"lask": "^0.1.0", | ||
"ultra-runner": "^3.10.5" | ||
}, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/core", | ||
"packages/machines/*", | ||
"packages/frameworks/*", | ||
"packages/types", | ||
"packages/utilities/*", | ||
"examples/*" | ||
] | ||
}, | ||
"lint-staged": { | ||
"**/*.{ts,tsx,js,jsx}": [ | ||
"prettier --write" | ||
], | ||
"**/*.{md,yml,json,babelrc,eslintrc,prettierrc}": [ | ||
"prettier --write" | ||
] | ||
"**/*.{ts,tsx,js,jsx}": "prettier --write" | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,29 @@ | |
"finite state machine" | ||
], | ||
"author": "Segun Adebayo <[email protected]>", | ||
"homepage": "https://github.com/chakra-ui/core#readme", | ||
"homepage": "https://github.com/chakra-ui/zag#readme", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/chakra-ui/core/tree/main/packages/machine", | ||
"repository": "https://github.com/chakra-ui/zag/tree/main/packages/machine", | ||
"sideEffects": false, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"package.json", | ||
"README.md" | ||
"dist/**/*" | ||
], | ||
"scripts": { | ||
"start": "yarn zag build --watch", | ||
"build": "yarn zag build --prod", | ||
"test": "jest --config ../../jest.config.js --rootDir tests", | ||
"lint": "eslint src --ext .ts,.tsx", | ||
"test:ci": "yarn test --ci --runInBand --updateSnapshot", | ||
"test:watch": "yarn test --watchAll" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/chakra-ui/core/issues" | ||
"url": "https://github.com/chakra-ui/zag/issues" | ||
}, | ||
"dependencies": { | ||
"@zag-js/utils": "^0.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env node | ||
require("@swc-node/register") | ||
require("./src/index.ts") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "@zag-js/scripts", | ||
"version": "1.0.0", | ||
"private": true, | ||
"bin": { | ||
"zag": "index.js" | ||
}, | ||
"dependencies": { | ||
"esbuild-plugin-alias": "^0.2.1", | ||
"@swc-node/register": "1.4.2", | ||
"commander": "8.3.0", | ||
"signale": "^1.4.0", | ||
"@types/signale": "^1.4.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { getWorkspacePkgs } from "./build-utils" | ||
import fs from "fs" | ||
|
||
const patch = { | ||
files: ["dist/**/*"], | ||
scripts: { | ||
start: "yarn zag build --watch", | ||
build: "yarn zag build --prod", | ||
test: "jest --config ../../jest.config.js --rootDir tests", | ||
lint: "eslint src --ext .ts,.tsx", | ||
"test:ci": "yarn test --ci --runInBand --updateSnapshot", | ||
"test:watch": "yarn test --watchAll", | ||
}, | ||
} | ||
|
||
async function main() { | ||
const pkgs = await getWorkspacePkgs() | ||
for (const { pkg } of pkgs) { | ||
if (pkg.name === "@zag-js/scripts") continue | ||
Object.assign(pkg, patch) | ||
fs.writeFileSync(`${pkg.dir}/package.json`, JSON.stringify(pkg, null, 2)) | ||
} | ||
} | ||
|
||
main() |
Oops, something went wrong.