diff options
| author | 2023-04-28 01:47:57 +0800 | |
|---|---|---|
| committer | 2023-04-28 01:47:57 +0800 | |
| commit | 8b2c4a38a461ff5ecc95972291bc711e2c5dec9a (patch) | |
| tree | 29f552e3df949073e21bf5c76d7abc3044830ec6 /examples/basic/packages/ui | |
| parent | fc8c5fdce62fb229202659408798a7b6c98f6e8b (diff) | |
| download | HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.tar.gz HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.zip | |
Diffstat (limited to 'examples/basic/packages/ui')
| -rw-r--r-- | examples/basic/packages/ui/Button.tsx | 5 | ||||
| -rw-r--r-- | examples/basic/packages/ui/index.tsx | 2 | ||||
| -rw-r--r-- | examples/basic/packages/ui/package.json | 19 | ||||
| -rw-r--r-- | examples/basic/packages/ui/tsconfig.json | 5 |
4 files changed, 31 insertions, 0 deletions
diff --git a/examples/basic/packages/ui/Button.tsx b/examples/basic/packages/ui/Button.tsx new file mode 100644 index 0000000..3e5afc7 --- /dev/null +++ b/examples/basic/packages/ui/Button.tsx @@ -0,0 +1,5 @@ +import * as React from "react"; + +export const Button = () => { + return <button>Boop</button>; +}; diff --git a/examples/basic/packages/ui/index.tsx b/examples/basic/packages/ui/index.tsx new file mode 100644 index 0000000..916730e --- /dev/null +++ b/examples/basic/packages/ui/index.tsx @@ -0,0 +1,2 @@ +import * as React from "react"; +export * from "./Button"; diff --git a/examples/basic/packages/ui/package.json b/examples/basic/packages/ui/package.json new file mode 100644 index 0000000..f969743 --- /dev/null +++ b/examples/basic/packages/ui/package.json @@ -0,0 +1,19 @@ +{ + "name": "ui", + "version": "0.0.0", + "main": "./index.tsx", + "types": "./index.tsx", + "license": "MIT", + "scripts": { + "lint": "eslint \"**/*.ts*\"" + }, + "devDependencies": { + "@types/react": "^17.0.37", + "@types/react-dom": "^17.0.11", + "eslint": "^7.32.0", + "eslint-config-custom": "workspace:*", + "react": "^17.0.2", + "tsconfig": "workspace:*", + "typescript": "^4.5.2" + } +} diff --git a/examples/basic/packages/ui/tsconfig.json b/examples/basic/packages/ui/tsconfig.json new file mode 100644 index 0000000..cd6c94d --- /dev/null +++ b/examples/basic/packages/ui/tsconfig.json @@ -0,0 +1,5 @@ +{ + "extends": "tsconfig/react-library.json", + "include": ["."], + "exclude": ["dist", "build", "node_modules"] +} |
