diff options
| author | 2023-11-03 21:17:06 +0800 | |
|---|---|---|
| committer | 2023-11-03 21:17:06 +0800 | |
| commit | 94071d7ce16c56641d67d488e2bac6be84ffe731 (patch) | |
| tree | d837b71575aba805e18b3db3d056a106d81818fe /examples/with-tailwind/packages | |
| parent | 9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 (diff) | |
| download | HydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.tar.gz HydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.zip | |
chore: delete useless files
Diffstat (limited to 'examples/with-tailwind/packages')
17 files changed, 0 insertions, 234 deletions
diff --git a/examples/with-tailwind/packages/eslint-config-custom/index.js b/examples/with-tailwind/packages/eslint-config-custom/index.js deleted file mode 100644 index c9523f1..0000000 --- a/examples/with-tailwind/packages/eslint-config-custom/index.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - extends: ["next", "turbo", "prettier"], - rules: { - "@next/next/no-html-link-for-pages": "off", - }, - parserOptions: { - babelOptions: { - presets: [require.resolve("next/babel")], - }, - }, -}; diff --git a/examples/with-tailwind/packages/eslint-config-custom/package.json b/examples/with-tailwind/packages/eslint-config-custom/package.json deleted file mode 100644 index a423424..0000000 --- a/examples/with-tailwind/packages/eslint-config-custom/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "eslint-config-custom", - "version": "0.0.0", - "main": "index.js", - "license": "MIT", - "dependencies": { - "eslint-config-next": "latest", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-react": "7.28.0", - "eslint-config-turbo": "latest" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/examples/with-tailwind/packages/tailwind-config/package.json b/examples/with-tailwind/packages/tailwind-config/package.json deleted file mode 100644 index fbf983c..0000000 --- a/examples/with-tailwind/packages/tailwind-config/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "tailwind-config", - "version": "0.0.0", - "private": true, - "main": "index.js", - "devDependencies": { - "tailwindcss": "^3.2.4" - } -} diff --git a/examples/with-tailwind/packages/tailwind-config/tailwind.config.js b/examples/with-tailwind/packages/tailwind-config/tailwind.config.js deleted file mode 100644 index c0f237b..0000000 --- a/examples/with-tailwind/packages/tailwind-config/tailwind.config.js +++ /dev/null @@ -1,19 +0,0 @@ -const colors = require("tailwindcss/colors"); - -module.exports = { - content: [ - // app content - `src/**/*.{js,ts,jsx,tsx}`, - // include packages if not transpiling - // "../../packages/**/*.{js,ts,jsx,tsx}", - ], - theme: { - extend: { - colors: { - brandblue: colors.blue[500], - brandred: colors.red[500], - }, - }, - }, - plugins: [], -}; diff --git a/examples/with-tailwind/packages/tsconfig/base.json b/examples/with-tailwind/packages/tsconfig/base.json deleted file mode 100644 index d72a9f3..0000000 --- a/examples/with-tailwind/packages/tsconfig/base.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "display": "Default", - "compilerOptions": { - "composite": false, - "declaration": true, - "declarationMap": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "inlineSources": false, - "isolatedModules": true, - "moduleResolution": "node", - "noUnusedLocals": false, - "noUnusedParameters": false, - "preserveWatchOutput": true, - "skipLibCheck": true, - "strict": true - }, - "exclude": ["node_modules"] -} diff --git a/examples/with-tailwind/packages/tsconfig/nextjs.json b/examples/with-tailwind/packages/tsconfig/nextjs.json deleted file mode 100644 index 91cd404..0000000 --- a/examples/with-tailwind/packages/tsconfig/nextjs.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "display": "Next.js", - "extends": "./base.json", - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": false, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "incremental": true, - "esModuleInterop": true, - "module": "esnext", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve" - }, - "include": ["src", "next-env.d.ts"], - "exclude": ["node_modules"] -} diff --git a/examples/with-tailwind/packages/tsconfig/package.json b/examples/with-tailwind/packages/tsconfig/package.json deleted file mode 100644 index 6efb83e..0000000 --- a/examples/with-tailwind/packages/tsconfig/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "tsconfig", - "version": "0.0.0", - "private": true, - "license": "MIT", - "publishConfig": { - "access": "public" - } -} diff --git a/examples/with-tailwind/packages/tsconfig/react-library.json b/examples/with-tailwind/packages/tsconfig/react-library.json deleted file mode 100644 index 6d6a7fe..0000000 --- a/examples/with-tailwind/packages/tsconfig/react-library.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "display": "React Library", - "extends": "./base.json", - "compilerOptions": { - "lib": ["ES2015"], - "module": "ESNext", - "target": "ES6", - "jsx": "react-jsx" - } -} diff --git a/examples/with-tailwind/packages/ui/package.json b/examples/with-tailwind/packages/ui/package.json deleted file mode 100644 index be2c395..0000000 --- a/examples/with-tailwind/packages/ui/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "ui", - "version": "0.0.0", - "sideEffects": [ - "**/*.css" - ], - "types": "./dist/index.d.ts", - "exports": { - ".": "./dist", - "./styles.css": "./dist/index.css" - }, - "license": "MIT", - "scripts": { - "build": "tsup", - "dev": "tsup --watch", - "check-types": "tsc --noEmit" - }, - "peerDependencies": { - "react": "^18.2.0" - }, - "devDependencies": { - "@types/react": "^18.0.26", - "eslint": "^7.32.0", - "eslint-config-custom": "workspace:*", - "postcss": "^8.4.20", - "react": "^18.2.0", - "tailwind-config": "workspace:*", - "tsconfig": "workspace:*", - "tsup": "^6.1.3", - "typescript": "^4.9.4" - } -} diff --git a/examples/with-tailwind/packages/ui/postcss.config.js b/examples/with-tailwind/packages/ui/postcss.config.js deleted file mode 100644 index 07aa434..0000000 --- a/examples/with-tailwind/packages/ui/postcss.config.js +++ /dev/null @@ -1,9 +0,0 @@ -// If you want to use other PostCSS plugins, see the following: -// https://tailwindcss.com/docs/using-with-preprocessors - -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; diff --git a/examples/with-tailwind/packages/ui/src/Button.tsx b/examples/with-tailwind/packages/ui/src/Button.tsx deleted file mode 100644 index 495d02a..0000000 --- a/examples/with-tailwind/packages/ui/src/Button.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import * as React from "react"; - -export const Button = () => { - return ( - <div className="rounded-md "> - <a href="https://turbo.build/repo/docs"> - <div className="ui-flex ui-w-full ui-items-center ui-justify-center ui-rounded-md ui-border ui-border-transparent ui-px-8 ui-py-3 ui-text-base ui-font-medium ui-no-underline ui-bg-white ui-text-black hover:ui-bg-gray-300 md:ui-py-3 md:ui-px-10 md:ui-text-lg md:ui-leading-6"> - Read the docs - <span className="ui-ml-2 ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-bg-clip-text ui-text-transparent"> - → - </span> - </div> - </a> - </div> - ); -}; diff --git a/examples/with-tailwind/packages/ui/src/Card.tsx b/examples/with-tailwind/packages/ui/src/Card.tsx deleted file mode 100644 index 6083de2..0000000 --- a/examples/with-tailwind/packages/ui/src/Card.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import * as React from "react"; - -export const Card = ({ - title, - cta, - href, -}: { - title: string; - cta: string; - href: string; -}) => { - return ( - <a - target="_blank" - rel="noopener noreferrer" - href={href} - className="ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]" - > - <div className="ui-p-4 ui-bg-zinc-900 ui-h-full"> - <p className="ui-inline-block ui-text-xl ui-text-white">{title}</p> - <div className="ui-text-xs ui-mt-4 group-hover:ui-underline"> - {cta} → - </div> - </div> - </a> - ); -}; diff --git a/examples/with-tailwind/packages/ui/src/index.tsx b/examples/with-tailwind/packages/ui/src/index.tsx deleted file mode 100644 index 8af7073..0000000 --- a/examples/with-tailwind/packages/ui/src/index.tsx +++ /dev/null @@ -1,6 +0,0 @@ -// styles -import "./styles.css"; - -// components -export * from "./Button"; -export * from "./Card"; diff --git a/examples/with-tailwind/packages/ui/src/styles.css b/examples/with-tailwind/packages/ui/src/styles.css deleted file mode 100644 index b5c61c9..0000000 --- a/examples/with-tailwind/packages/ui/src/styles.css +++ /dev/null @@ -1,3 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; diff --git a/examples/with-tailwind/packages/ui/tailwind.config.js b/examples/with-tailwind/packages/ui/tailwind.config.js deleted file mode 100644 index 23887e6..0000000 --- a/examples/with-tailwind/packages/ui/tailwind.config.js +++ /dev/null @@ -1,7 +0,0 @@ -const sharedConfig = require("tailwind-config/tailwind.config.js"); - -module.exports = { - // prefix ui lib classes to avoid conflicting with the app - prefix: "ui-", - presets: [sharedConfig], -}; diff --git a/examples/with-tailwind/packages/ui/tsconfig.json b/examples/with-tailwind/packages/ui/tsconfig.json deleted file mode 100644 index cd6c94d..0000000 --- a/examples/with-tailwind/packages/ui/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "tsconfig/react-library.json", - "include": ["."], - "exclude": ["dist", "build", "node_modules"] -} diff --git a/examples/with-tailwind/packages/ui/tsup.config.ts b/examples/with-tailwind/packages/ui/tsup.config.ts deleted file mode 100644 index 7b2189a..0000000 --- a/examples/with-tailwind/packages/ui/tsup.config.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defineConfig, Options } from "tsup"; - -export default defineConfig((options: Options) => ({ - treeshake: true, - splitting: true, - entry: ["src/**/*.tsx"], - format: ["esm"], - dts: true, - minify: true, - clean: true, - external: ["react"], - ...options, -})); |
