Skip to content

Commit 1d6c0f2

Browse files
committed
feat: 🎸 add smart-token-list package
1 parent f6d3a57 commit 1d6c0f2

File tree

12 files changed

+158
-199
lines changed

12 files changed

+158
-199
lines changed

‎apps/web/next.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/** @type {import('next').NextConfig} */
22
module.exports = {
33
reactStrictMode: true,
4-
transpilePackages: ["@repo/ui"],
5-
};
4+
}

‎apps/web/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
"type-check": "tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"@repo/ui": "workspace:*",
13+
"@repo/smart-token-list": "workspace:*",
1414
"next": "^14.2.3",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0"
1717
},
1818
"devDependencies": {
1919
"@next/eslint-plugin-next": "^14.2.3",
2020
"@repo/eslint-config": "workspace:*",
21-
"@repo/tailwind-config": "workspace:*",
2221
"@repo/typescript-config": "workspace:*",
2322
"@types/node": "^20.11.24",
2423
"@types/react": "^18.2.61",

‎apps/web/src/app/page.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { SMART_TOKEN_LIST } from '@repo/smart-token-list'
12
import Image from 'next/image'
23

34
function Gradient({
@@ -46,6 +47,8 @@ export default function Page(): JSX.Element {
4647
</div>
4748
</div>
4849

50+
<h1>{JSON.stringify(SMART_TOKEN_LIST)}</h1>
51+
4952
<div className="relative flex place-items-center ">
5053
<div className="font-sans w-auto pb-16 pt-[48px] md:pb-24 lg:pb-32 md:pt-16 lg:pt-20 flex justify-between gap-8 items-center flex-col relative z-0">
5154
<div className="z-50 flex items-center justify-center w-full">

‎apps/web/tailwind.config.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
// tailwind config is required for editor support
22

3-
import type { Config } from "tailwindcss";
4-
import sharedConfig from "@repo/tailwind-config";
3+
import type { Config } from 'tailwindcss'
54

6-
const config: Pick<Config, "content" | "presets"> = {
7-
content: ["./src/app/**/*.tsx"],
8-
presets: [sharedConfig],
9-
};
5+
const config: Pick<Config, 'content' | 'presets'> = {
6+
content: ['./src/app/**/*.tsx'],
7+
}
108

11-
export default config;
9+
export default config

‎packages/config-tailwind/package.json

-12
This file was deleted.

‎packages/config-tailwind/tailwind.config.ts

-15
This file was deleted.

‎packages/config-tailwind/tsconfig.json

-5
This file was deleted.

‎packages/config-typescript/base.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@
77
"declarationMap": true,
88
"esModuleInterop": true,
99
"forceConsistentCasingInFileNames": true,
10-
"allowImportingTsExtensions": true,
11-
"noEmit": true,
10+
"noEmit": false,
1211
"inlineSources": false,
12+
"incremental": false,
1313
"isolatedModules": true,
1414
"module": "ESNext",
15+
"moduleDetection": "force",
1516
"moduleResolution": "Bundler",
17+
"noUncheckedIndexedAccess": true,
1618
"noUnusedLocals": false,
1719
"noUnusedParameters": false,
1820
"preserveWatchOutput": true,
21+
"resolveJsonModule": true,
1922
"skipLibCheck": true,
2023
"strict": true,
2124
"strictNullChecks": true
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@repo/smart-token-list",
3+
"type": "module",
4+
"scripts": {
5+
"dev": "tsc --watch",
6+
"build": "tsc"
7+
},
8+
"main": "dist/index.js",
9+
"types": "dist/index.d.ts",
10+
"files": [
11+
"dist/**/*"
12+
],
13+
"devDependencies": {
14+
"@repo/typescript-config": "workspace:*",
15+
"typescript": "latest"
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const SMART_TOKEN_LIST = [1, 2, 3]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "@repo/typescript-config/base.json",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"rootDir": "src"
6+
},
7+
"include": ["src"],
8+
"exclude": ["node_modules", "dist"]
9+
}

0 commit comments

Comments
 (0)