init commit
This commit is contained in:
1
tooling/eslint/.cache/.prettiercache
Normal file
1
tooling/eslint/.cache/.prettiercache
Normal file
@@ -0,0 +1 @@
|
||||
[["1","2","3","4","5"],{"key":"6","value":"7"},{"key":"8","value":"9"},{"key":"10","value":"11"},{"key":"12","value":"13"},{"key":"14","value":"15"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/eslint/react.ts",{"size":592,"mtime":1761443987000,"hash":"16","data":"17"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/eslint/package.json",{"size":983,"mtime":1761443987000,"hash":"18","data":"19"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/eslint/nextjs.ts",{"size":440,"mtime":1761443987000,"hash":"20","data":"21"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/eslint/tsconfig.json",{"size":95,"mtime":1761443987000,"hash":"22","data":"23"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/eslint/base.ts",{"size":2511,"mtime":1761443987000,"hash":"24","data":"25"},"8ec5717cfcceb8232317af4d7e80878a",{"hashOfOptions":"26"},"e74d317f6b36584bf8e92f59f015c6fc",{"hashOfOptions":"27"},"77964b9aa0e9c635676652a980fee326",{"hashOfOptions":"28"},"009b1a644d3063765603b665986b5aff",{"hashOfOptions":"29"},"5cc9d942a01c815c6aea8c349b2a24f7",{"hashOfOptions":"30"},"782333496","287757210","2505953125","2857023081","2220821232"]
|
||||
88
tooling/eslint/base.ts
Normal file
88
tooling/eslint/base.ts
Normal file
@@ -0,0 +1,88 @@
|
||||
import * as path from "node:path";
|
||||
import { includeIgnoreFile } from "@eslint/compat";
|
||||
import eslint from "@eslint/js";
|
||||
import importPlugin from "eslint-plugin-import";
|
||||
import turboPlugin from "eslint-plugin-turbo";
|
||||
import { defineConfig } from "eslint/config";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
/**
|
||||
* All packages that leverage t3-env should use this rule
|
||||
*/
|
||||
export const restrictEnvAccess = defineConfig(
|
||||
{ ignores: ["**/env.ts"] },
|
||||
{
|
||||
files: ["**/*.js", "**/*.ts", "**/*.tsx"],
|
||||
rules: {
|
||||
"no-restricted-properties": [
|
||||
"error",
|
||||
{
|
||||
object: "process",
|
||||
property: "env",
|
||||
message:
|
||||
"Use `import { env } from '~/env'` instead to ensure validated types.",
|
||||
},
|
||||
],
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
name: "process",
|
||||
importNames: ["env"],
|
||||
message:
|
||||
"Use `import { env } from '~/env'` instead to ensure validated types.",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
export const baseConfig = defineConfig(
|
||||
// Ignore files not tracked by VCS and any config files
|
||||
includeIgnoreFile(path.join(import.meta.dirname, "../../.gitignore")),
|
||||
{ ignores: ["**/*.config.*"] },
|
||||
{
|
||||
files: ["**/*.js", "**/*.ts", "**/*.tsx"],
|
||||
plugins: {
|
||||
import: importPlugin,
|
||||
turbo: turboPlugin,
|
||||
},
|
||||
extends: [
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
...tseslint.configs.recommendedTypeChecked,
|
||||
...tseslint.configs.stylisticTypeChecked,
|
||||
],
|
||||
rules: {
|
||||
...turboPlugin.configs.recommended.rules,
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"error",
|
||||
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
||||
],
|
||||
"@typescript-eslint/consistent-type-imports": [
|
||||
"warn",
|
||||
{ prefer: "type-imports", fixStyle: "separate-type-imports" },
|
||||
],
|
||||
"@typescript-eslint/no-misused-promises": [
|
||||
2,
|
||||
{ checksVoidReturn: { attributes: false } },
|
||||
],
|
||||
"@typescript-eslint/no-unnecessary-condition": [
|
||||
"error",
|
||||
{
|
||||
allowConstantLoopConditions: true,
|
||||
},
|
||||
],
|
||||
"@typescript-eslint/no-non-null-assertion": "error",
|
||||
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
||||
},
|
||||
},
|
||||
{
|
||||
linterOptions: { reportUnusedDisableDirectives: true },
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
},
|
||||
);
|
||||
15
tooling/eslint/nextjs.ts
Normal file
15
tooling/eslint/nextjs.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import nextPlugin from "@next/eslint-plugin-next";
|
||||
import { defineConfig } from "eslint/config";
|
||||
|
||||
export const nextjsConfig = defineConfig({
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
plugins: {
|
||||
"@next/next": nextPlugin,
|
||||
},
|
||||
rules: {
|
||||
...nextPlugin.configs.recommended.rules,
|
||||
...nextPlugin.configs["core-web-vitals"].rules,
|
||||
// TypeError: context.getAncestors is not a function
|
||||
"@next/next/no-duplicate-head": "off",
|
||||
},
|
||||
});
|
||||
35
tooling/eslint/package.json
Normal file
35
tooling/eslint/package.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "@acme/eslint-config",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"./base": "./base.ts",
|
||||
"./nextjs": "./nextjs.ts",
|
||||
"./react": "./react.ts"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "git clean -xdf .cache .turbo node_modules",
|
||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@eslint/compat": "^1.4.0",
|
||||
"@eslint/js": "catalog:",
|
||||
"@next/eslint-plugin-next": "^16.0.0",
|
||||
"eslint-plugin-import": "^2.32.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-turbo": "^2.5.8",
|
||||
"typescript-eslint": "^8.46.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@acme/prettier-config": "workspace:*",
|
||||
"@acme/tsconfig": "workspace:*",
|
||||
"@types/node": "catalog:",
|
||||
"eslint": "catalog:",
|
||||
"prettier": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
},
|
||||
"prettier": "@acme/prettier-config"
|
||||
}
|
||||
19
tooling/eslint/react.ts
Normal file
19
tooling/eslint/react.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import reactPlugin from "eslint-plugin-react";
|
||||
import reactHooks from "eslint-plugin-react-hooks";
|
||||
import { defineConfig } from "eslint/config";
|
||||
|
||||
export const reactConfig = defineConfig(
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
...reactPlugin.configs.flat.recommended,
|
||||
...reactPlugin.configs.flat["jsx-runtime"],
|
||||
languageOptions: {
|
||||
...reactPlugin.configs.flat.recommended?.languageOptions,
|
||||
...reactPlugin.configs.flat["jsx-runtime"]?.languageOptions,
|
||||
globals: {
|
||||
React: "writable",
|
||||
},
|
||||
},
|
||||
},
|
||||
reactHooks.configs.flat["recommended-latest"]!,
|
||||
);
|
||||
5
tooling/eslint/tsconfig.json
Normal file
5
tooling/eslint/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"include": ["."],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
3
tooling/github/package.json
Normal file
3
tooling/github/package.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "@acme/github"
|
||||
}
|
||||
16
tooling/github/setup/action.yml
Normal file
16
tooling/github/setup/action.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
name: "Setup and install"
|
||||
description: "Common setup steps for Actions"
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: pnpm/action-setup@v4
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
|
||||
- shell: bash
|
||||
run: pnpm add -g turbo
|
||||
|
||||
- shell: bash
|
||||
run: pnpm install
|
||||
1
tooling/prettier/.cache/.prettiercache
Normal file
1
tooling/prettier/.cache/.prettiercache
Normal file
@@ -0,0 +1 @@
|
||||
[["1","2","3"],{"key":"4","value":"5"},{"key":"6","value":"7"},{"key":"8","value":"9"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/prettier/package.json",{"size":610,"mtime":1761443987000,"hash":"10","data":"11"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/prettier/tsconfig.json",{"size":95,"mtime":1761443987000,"hash":"12","data":"13"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/prettier/index.js",{"size":1094,"mtime":1761443987000,"hash":"14","data":"15"},"067d7a68e2f06d667d49a790bf7931aa",{"hashOfOptions":"16"},"009b1a644d3063765603b665986b5aff",{"hashOfOptions":"17"},"2cbcb3ace07925973d921f02ff1c87f9",{"hashOfOptions":"18"},"2136963032","1853432235","3683863949"]
|
||||
45
tooling/prettier/index.js
Normal file
45
tooling/prettier/index.js
Normal file
@@ -0,0 +1,45 @@
|
||||
/** @typedef {import("prettier").Config} PrettierConfig */
|
||||
/** @typedef {import("prettier-plugin-tailwindcss").PluginOptions} TailwindConfig */
|
||||
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
|
||||
|
||||
/** @type { PrettierConfig | SortImportsConfig | TailwindConfig } */
|
||||
const config = {
|
||||
plugins: [
|
||||
"@ianvs/prettier-plugin-sort-imports",
|
||||
"prettier-plugin-tailwindcss",
|
||||
],
|
||||
tailwindFunctions: ["cn", "cva"],
|
||||
importOrder: [
|
||||
"<TYPES>",
|
||||
"^(react/(.*)$)|^(react$)|^(react-native(.*)$)",
|
||||
"^(next/(.*)$)|^(next$)",
|
||||
"^(expo(.*)$)|^(expo$)",
|
||||
"<THIRD_PARTY_MODULES>",
|
||||
"",
|
||||
"<TYPES>^@acme",
|
||||
"^@acme/(.*)$",
|
||||
"",
|
||||
"<TYPES>^[.|..|~]",
|
||||
"^~/",
|
||||
"^[../]",
|
||||
"^[./]",
|
||||
],
|
||||
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
||||
importOrderTypeScriptVersion: "5.0.0",
|
||||
overrides: [
|
||||
{
|
||||
files: "*.json.hbs",
|
||||
options: {
|
||||
parser: "json",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: "*.ts.hbs",
|
||||
options: {
|
||||
parser: "babel",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
24
tooling/prettier/package.json
Normal file
24
tooling/prettier/package.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "@acme/prettier-config",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "git clean -xdf .cache .turbo node_modules",
|
||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
||||
"prettier": "catalog:",
|
||||
"prettier-plugin-tailwindcss": "^0.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@acme/tsconfig": "workspace:*",
|
||||
"@types/node": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
},
|
||||
"prettier": "@acme/prettier-config"
|
||||
}
|
||||
5
tooling/prettier/tsconfig.json
Normal file
5
tooling/prettier/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"include": ["."],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
1
tooling/tailwind/.cache/.prettiercache
Normal file
1
tooling/tailwind/.cache/.prettiercache
Normal file
@@ -0,0 +1 @@
|
||||
[["1","2","3","4","5"],{"key":"6","value":"7"},{"key":"8","value":"9"},{"key":"10","value":"11"},{"key":"12","value":"13"},{"key":"14","value":"15"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/tailwind/postcss-config.js",{"size":70,"mtime":1761443987000,"hash":"16","data":"17"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/tailwind/eslint.config.ts",{"size":144,"mtime":1761443987000,"hash":"18","data":"19"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/tailwind/theme.css",{"size":6741,"mtime":1761443987000,"hash":"20","data":"21"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/tailwind/tsconfig.json",{"size":95,"mtime":1761443987000,"hash":"22","data":"23"},"/home/gib/Documents/Code/monorepo/convex-monorepo/tooling/tailwind/package.json",{"size":856,"mtime":1761443987000,"hash":"24","data":"25"},"0f8aa602547b154dc06be77b007c51d2",{"hashOfOptions":"26"},"1947e045caeafee2e344afbfb7bb10c0",{"hashOfOptions":"27"},"5dd421d25d104c47e1ab36df41ed0f7d",{"hashOfOptions":"28"},"009b1a644d3063765603b665986b5aff",{"hashOfOptions":"29"},"8d4532e2c485821a5158057fe989c12b",{"hashOfOptions":"30"},"3363144806","2343966801","3847796185","3451527664","2801866323"]
|
||||
5
tooling/tailwind/eslint.config.ts
Normal file
5
tooling/tailwind/eslint.config.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { defineConfig } from "eslint/config";
|
||||
|
||||
import { baseConfig } from "@acme/eslint-config/base";
|
||||
|
||||
export default defineConfig(baseConfig);
|
||||
31
tooling/tailwind/package.json
Normal file
31
tooling/tailwind/package.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "@acme/tailwind-config",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"./theme": "./theme.css",
|
||||
"./postcss-config": "./postcss-config.js"
|
||||
},
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"clean": "git clean -xdf .cache .turbo node_modules",
|
||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||
"lint": "eslint --flag unstable_native_nodejs_ts_config",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/postcss": "catalog:",
|
||||
"postcss": "^8.5.6",
|
||||
"tailwindcss": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@acme/eslint-config": "workspace:*",
|
||||
"@acme/prettier-config": "workspace:*",
|
||||
"@acme/tsconfig": "workspace:*",
|
||||
"@types/node": "catalog:",
|
||||
"eslint": "catalog:",
|
||||
"prettier": "catalog:",
|
||||
"typescript": "catalog:"
|
||||
},
|
||||
"prettier": "@acme/prettier-config"
|
||||
}
|
||||
5
tooling/tailwind/postcss-config.js
Normal file
5
tooling/tailwind/postcss-config.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export default {
|
||||
plugins: {
|
||||
"@tailwindcss/postcss": {},
|
||||
},
|
||||
};
|
||||
158
tooling/tailwind/theme.css
Normal file
158
tooling/tailwind/theme.css
Normal file
@@ -0,0 +1,158 @@
|
||||
:root {
|
||||
--background: oklch(0.9875 0.0045 314.8053);
|
||||
--foreground: oklch(0.2277 0.0105 312.0161);
|
||||
--card: oklch(1 0 0);
|
||||
--card-foreground: oklch(0.2277 0.0105 312.0161);
|
||||
--popover: oklch(1 0 0);
|
||||
--popover-foreground: oklch(0.2277 0.0105 312.0161);
|
||||
--primary: oklch(0.5605 0.1911 350.0331);
|
||||
--primary-foreground: oklch(1 0 0);
|
||||
--secondary: oklch(0.967 0.0106 316.4921);
|
||||
--secondary-foreground: oklch(0.4536 0.0226 309.5036);
|
||||
--muted: oklch(0.967 0.0106 316.4921);
|
||||
--muted-foreground: oklch(0.5653 0.021 306.4429);
|
||||
--accent: oklch(0.967 0.0106 316.4921);
|
||||
--accent-foreground: oklch(0.5605 0.1911 350.0331);
|
||||
--destructive: oklch(0.6368 0.2078 25.3313);
|
||||
--destructive-foreground: oklch(1 0 0);
|
||||
--border: oklch(0.9419 0.016 310.0997);
|
||||
--input: oklch(1 0 0);
|
||||
--ring: oklch(0.5605 0.1911 350.0331);
|
||||
--chart-1: oklch(0.5605 0.1911 350.0331);
|
||||
--chart-2: oklch(0.6747 0.1492 345.9482);
|
||||
--chart-3: oklch(0.7729 0.1045 344.4709);
|
||||
--chart-4: oklch(0.8625 0.0636 341.4088);
|
||||
--chart-5: oklch(0.9411 0.0261 343.2843);
|
||||
--sidebar: oklch(0.967 0.0106 316.4921);
|
||||
--sidebar-foreground: oklch(0.4536 0.0226 309.5036);
|
||||
--sidebar-primary: oklch(0.5605 0.1911 350.0331);
|
||||
--sidebar-primary-foreground: oklch(1 0 0);
|
||||
--sidebar-accent: oklch(0.9419 0.016 310.0997);
|
||||
--sidebar-accent-foreground: oklch(0.5605 0.1911 350.0331);
|
||||
--sidebar-border: oklch(0.9155 0.0235 310.6964);
|
||||
--sidebar-ring: oklch(0.5605 0.1911 350.0331);
|
||||
--radius: 0.75rem;
|
||||
--shadow-2xs: 0px 2px 10px 0px hsl(0 0% 0% / 0.03);
|
||||
--shadow-xs: 0px 2px 10px 0px hsl(0 0% 0% / 0.03);
|
||||
--shadow-sm:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.05), 0px 1px 2px -1px hsl(0 0% 0% / 0.05);
|
||||
--shadow:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.05), 0px 1px 2px -1px hsl(0 0% 0% / 0.05);
|
||||
--shadow-md:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.05), 0px 2px 4px -1px hsl(0 0% 0% / 0.05);
|
||||
--shadow-lg:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.05), 0px 4px 6px -1px hsl(0 0% 0% / 0.05);
|
||||
--shadow-xl:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.05), 0px 8px 10px -1px hsl(0 0% 0% / 0.05);
|
||||
--shadow-2xl: 0px 2px 10px 0px hsl(0 0% 0% / 0.13);
|
||||
--tracking-normal: 0rem;
|
||||
--spacing: 0.25rem;
|
||||
|
||||
@variant dark {
|
||||
--background: oklch(0.1836 0.0111 311.9111);
|
||||
--foreground: oklch(0.9788 0.0057 308.3962);
|
||||
--card: oklch(0.1836 0.0111 311.9111);
|
||||
--card-foreground: oklch(0.9788 0.0057 308.3962);
|
||||
--popover: oklch(0.1836 0.0111 311.9111);
|
||||
--popover-foreground: oklch(0.9788 0.0057 308.3962);
|
||||
--primary: oklch(0.6747 0.1492 345.9482);
|
||||
--primary-foreground: oklch(0.1836 0.0111 311.9111);
|
||||
--secondary: oklch(0.2551 0.0142 310.7968);
|
||||
--secondary-foreground: oklch(0.721 0.0184 308.1777);
|
||||
--muted: oklch(0.2551 0.0142 310.7968);
|
||||
--muted-foreground: oklch(0.6288 0.0177 309.9946);
|
||||
--accent: oklch(0.2551 0.0142 310.7968);
|
||||
--accent-foreground: oklch(0.6747 0.1492 345.9482);
|
||||
--destructive: oklch(0.3958 0.1331 25.723);
|
||||
--destructive-foreground: oklch(1 0 0);
|
||||
--border: oklch(0.2941 0.0175 310.1142);
|
||||
--input: oklch(0.2551 0.0142 310.7968);
|
||||
--ring: oklch(0.6747 0.1492 345.9482);
|
||||
--chart-1: oklch(0.6747 0.1492 345.9482);
|
||||
--chart-2: oklch(0.5605 0.1911 350.0331);
|
||||
--chart-3: oklch(0.4988 0.1668 350);
|
||||
--chart-4: oklch(0.4373 0.1428 349.7487);
|
||||
--chart-5: oklch(0.3738 0.1177 349.3988);
|
||||
--sidebar: oklch(0.2103 0.0107 311.9806);
|
||||
--sidebar-foreground: oklch(0.721 0.0184 308.1777);
|
||||
--sidebar-primary: oklch(0.6747 0.1492 345.9482);
|
||||
--sidebar-primary-foreground: oklch(0.1836 0.0111 311.9111);
|
||||
--sidebar-accent: oklch(0.2551 0.0142 310.7968);
|
||||
--sidebar-accent-foreground: oklch(0.6747 0.1492 345.9482);
|
||||
--sidebar-border: oklch(0.2941 0.0175 310.1142);
|
||||
--sidebar-ring: oklch(0.6747 0.1492 345.9482);
|
||||
--radius: 0.75rem;
|
||||
--shadow-2xs: 0px 2px 10px 0px hsl(0 0% 0% / 0.1);
|
||||
--shadow-xs: 0px 2px 10px 0px hsl(0 0% 0% / 0.1);
|
||||
--shadow-sm:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.2), 0px 1px 2px -1px hsl(0 0% 0% / 0.2);
|
||||
--shadow:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.2), 0px 1px 2px -1px hsl(0 0% 0% / 0.2);
|
||||
--shadow-md:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.2), 0px 2px 4px -1px hsl(0 0% 0% / 0.2);
|
||||
--shadow-lg:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.2), 0px 4px 6px -1px hsl(0 0% 0% / 0.2);
|
||||
--shadow-xl:
|
||||
0px 2px 10px 0px hsl(0 0% 0% / 0.2), 0px 8px 10px -1px hsl(0 0% 0% / 0.2);
|
||||
--shadow-2xl: 0px 2px 10px 0px hsl(0 0% 0% / 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--color-card: var(--card);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
--color-popover: var(--popover);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
--color-primary: var(--primary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
--color-secondary: var(--secondary);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
--color-muted: var(--muted);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-destructive-foreground: var(--destructive-foreground);
|
||||
--color-border: var(--border);
|
||||
--color-input: var(--input);
|
||||
--color-ring: var(--ring);
|
||||
--color-chart-1: var(--chart-1);
|
||||
--color-chart-2: var(--chart-2);
|
||||
--color-chart-3: var(--chart-3);
|
||||
--color-chart-4: var(--chart-4);
|
||||
--color-chart-5: var(--chart-5);
|
||||
--color-sidebar: var(--sidebar);
|
||||
--color-sidebar-foreground: var(--sidebar-foreground);
|
||||
--color-sidebar-primary: var(--sidebar-primary);
|
||||
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
||||
--color-sidebar-accent: var(--sidebar-accent);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
|
||||
--font-sans: var(--font-geist-sans);
|
||||
--font-mono: var(--font-geist-mono);
|
||||
|
||||
--radius-sm: calc(var(--radius) - 4px);
|
||||
--radius-md: calc(var(--radius) - 2px);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) + 4px);
|
||||
|
||||
--shadow-2xs: var(--shadow-2xs);
|
||||
--shadow-xs: var(--shadow-xs);
|
||||
--shadow-sm: var(--shadow-sm);
|
||||
--shadow: var(--shadow);
|
||||
--shadow-md: var(--shadow-md);
|
||||
--shadow-lg: var(--shadow-lg);
|
||||
--shadow-xl: var(--shadow-xl);
|
||||
--shadow-2xl: var(--shadow-2xl);
|
||||
|
||||
--tracking-tighter: calc(var(--tracking-normal) - 0.05em);
|
||||
--tracking-tight: calc(var(--tracking-normal) - 0.025em);
|
||||
--tracking-normal: var(--tracking-normal);
|
||||
--tracking-wide: calc(var(--tracking-normal) + 0.025em);
|
||||
--tracking-wider: calc(var(--tracking-normal) + 0.05em);
|
||||
--tracking-widest: calc(var(--tracking-normal) + 0.1em);
|
||||
}
|
||||
5
tooling/tailwind/tsconfig.json
Normal file
5
tooling/tailwind/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "@acme/tsconfig/base.json",
|
||||
"include": ["."],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
23
tooling/typescript/base.json
Normal file
23
tooling/typescript/base.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"target": "ES2022",
|
||||
"lib": ["ES2022"],
|
||||
"allowJs": true,
|
||||
"resolveJsonModule": true,
|
||||
"moduleDetection": "force",
|
||||
"isolatedModules": true,
|
||||
"incremental": true,
|
||||
"disableSourceOfProjectReferenceRedirect": true,
|
||||
"tsBuildInfoFile": "${configDir}/.cache/tsbuildinfo.json",
|
||||
"strict": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"checkJs": true,
|
||||
"module": "Preserve",
|
||||
"moduleResolution": "Bundler",
|
||||
"noEmit": true,
|
||||
},
|
||||
"exclude": ["node_modules", "build", "dist", ".next", ".expo"]
|
||||
}
|
||||
11
tooling/typescript/compiled-package.json
Normal file
11
tooling/typescript/compiled-package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "./base.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"noEmit": false,
|
||||
"outDir": "${configDir}/dist"
|
||||
}
|
||||
}
|
||||
7
tooling/typescript/package.json
Normal file
7
tooling/typescript/package.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "@acme/tsconfig",
|
||||
"private": true,
|
||||
"files": [
|
||||
"*.json"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user