-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bundle ui lib using tsup; add shared libs with configs
- Loading branch information
Showing
55 changed files
with
1,540 additions
and
6,014 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 |
---|---|---|
@@ -1,24 +1,9 @@ | ||
import aspectRatioPlugin from '@tailwindcss/aspect-ratio' | ||
import containerQueriesPlugin from '@tailwindcss/container-queries' | ||
import formsPlugin from '@tailwindcss/forms' | ||
import typographyPlugin from '@tailwindcss/typography' | ||
import sharedConfig from '@repo/tailwind-config/tailwind.config' | ||
import type { Config } from 'tailwindcss' | ||
import tailwindColors from 'tailwindcss/colors' | ||
|
||
export default { | ||
content: ['./app/**/*.{js,jsx,ts,tsx}', '../../libs/ui/**/*.{js,jsx,ts,tsx}'], | ||
darkMode: 'class', | ||
theme: { | ||
extend: { | ||
colors: { | ||
gray: tailwindColors.zinc, | ||
}, | ||
}, | ||
}, | ||
plugins: [ | ||
typographyPlugin, | ||
formsPlugin, | ||
aspectRatioPlugin, | ||
containerQueriesPlugin, | ||
], | ||
} satisfies Config | ||
const config: Config = { | ||
content: ['./app/**/*.{js,jsx,ts,tsx}'], | ||
presets: [sharedConfig], | ||
} | ||
|
||
export default config |
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,10 @@ | ||
{ | ||
"name": "@repo/tailwind-config", | ||
"main": "index.ts", | ||
"types": "index.ts", | ||
"devDependencies": { | ||
"@tailwindcss/forms": "^0.5.7", | ||
"@tailwindcss/typography": "^0.5.10", | ||
"tailwindcss": "^3.3.5" | ||
} | ||
} |
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,22 @@ | ||
import typographyPlugin from '@tailwindcss/typography' | ||
import formsPlugin from '@tailwindcss/forms' | ||
import type { Config } from 'tailwindcss' | ||
|
||
import tailwindColors from 'tailwindcss/colors' | ||
|
||
export default { | ||
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'], | ||
darkMode: 'class', | ||
theme: { | ||
extend: { | ||
colors: { | ||
gray: tailwindColors.zinc, | ||
}, | ||
backgroundImage: { | ||
'glow-conic': | ||
'conic-gradient(from 180deg at 50% 50%, #2a8af6 0deg, #a853ba 180deg, #e92a67 360deg)', | ||
}, | ||
}, | ||
}, | ||
plugins: [typographyPlugin, formsPlugin], | ||
} satisfies Config |
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,23 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "Default", | ||
"compilerOptions": { | ||
"composite": false, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"allowImportingTsExtensions": true, | ||
"noEmit": true, | ||
"inlineSources": false, | ||
"isolatedModules": true, | ||
"moduleResolution": "node", | ||
"noUnusedLocals": false, | ||
"noUnusedParameters": false, | ||
"preserveWatchOutput": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"strictNullChecks": true | ||
}, | ||
"exclude": ["node_modules"] | ||
} |
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,20 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "Next.js", | ||
"extends": "./base.json", | ||
"compilerOptions": { | ||
"plugins": [{ "name": "next" }], | ||
"allowJs": true, | ||
"declaration": false, | ||
"declarationMap": false, | ||
"incremental": true, | ||
"jsx": "preserve", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"module": "esnext", | ||
"resolveJsonModule": true, | ||
"strict": false, | ||
"target": "es5" | ||
}, | ||
"include": ["src", "next-env.d.ts"], | ||
"exclude": ["node_modules"] | ||
} |
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 @@ | ||
{ | ||
"name": "@repo/tsconfig" | ||
} |
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,12 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "React Library", | ||
"extends": "./base.json", | ||
"compilerOptions": { | ||
"lib": ["ES2015", "DOM"], | ||
"module": "ESNext", | ||
"target": "ES6", | ||
"jsx": "react-jsx", | ||
"noEmit": 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "Remix", | ||
"extends": "./base.json", | ||
"compilerOptions": { | ||
"lib": ["DOM", "DOM.Iterable", "ES2019"], | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"jsx": "react-jsx", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"target": "ES2019", | ||
"strict": true, | ||
"allowJs": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"baseUrl": "." | ||
} | ||
} |
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,4 +1,3 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
extends: ['@company/eslint-config/base', '@company/eslint-config/react', 'plugin:storybook/recommended'], | ||
} | ||
extends: ["custom/react"], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.