@sei-js/create-sei 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +5 -4
- package/dist/extensions/precompiles/src/components/default/index.tsx +44 -51
- package/dist/main.js +112 -34
- package/dist/templates/next-template/.env.example +2 -2
- package/dist/templates/next-template/.eslintrc.json +1 -3
- package/dist/templates/next-template/README.md +56 -32
- package/dist/templates/next-template/biome.json +17 -10
- package/dist/templates/next-template/gitignore +41 -0
- package/dist/templates/next-template/next.config.mjs +17 -1
- package/dist/templates/next-template/package.json +37 -26
- package/dist/templates/next-template/public/brand/powered-by-sei-light.png +0 -0
- package/dist/templates/next-template/public/brand/sei-lockup-light.svg +7 -0
- package/dist/templates/next-template/public/brand/sei-mark.png +0 -0
- package/dist/templates/next-template/src/app/development/page.tsx +29 -30
- package/dist/templates/next-template/src/app/favicon.ico/route.ts +3 -0
- package/dist/templates/next-template/src/app/globals.css +49 -10
- package/dist/templates/next-template/src/app/layout.tsx +14 -13
- package/dist/templates/next-template/src/app/page.tsx +3 -3
- package/dist/templates/next-template/src/app/resources/page.tsx +34 -51
- package/dist/templates/next-template/src/app/resources/resources.ts +19 -32
- package/dist/templates/next-template/src/components/default/examples.ts +4 -7
- package/dist/templates/next-template/src/components/default/index.tsx +46 -46
- package/dist/templates/next-template/src/components/index.ts +3 -3
- package/dist/templates/next-template/src/components/landing/index.tsx +19 -49
- package/dist/templates/next-template/src/components/providers/index.ts +1 -1
- package/dist/templates/next-template/src/components/providers/providers.tsx +39 -26
- package/dist/templates/next-template/src/components/shell/index.ts +1 -1
- package/dist/templates/next-template/src/components/shell/shell.tsx +34 -26
- package/dist/templates/next-template/src/theme.ts +1 -0
- package/dist/templates/next-template/tailwind.config.js +4 -16
- package/package.json +25 -9
- package/.rsyncignore +0 -13
- package/CHANGELOG.md +0 -114
- package/biome.json +0 -8
- package/dist/extensions/precompiles/package.json +0 -44
- package/dist/main.test.js +0 -34
- package/dist/templates/next-template/public/favicon.ico +0 -0
- package/extensions/precompiles/package.json +0 -44
- package/extensions/precompiles/src/components/default/index.tsx +0 -201
- package/jest.config.js +0 -14
- package/src/main.test.ts +0 -38
- package/src/main.ts +0 -159
- package/templates/next-template/.env.example +0 -8
- package/templates/next-template/.eslintrc.json +0 -3
- package/templates/next-template/.nvmrc +0 -1
- package/templates/next-template/README.md +0 -58
- package/templates/next-template/biome.json +0 -48
- package/templates/next-template/next-env.d.ts +0 -5
- package/templates/next-template/next.config.mjs +0 -4
- package/templates/next-template/package.json +0 -44
- package/templates/next-template/postcss.config.mjs +0 -6
- package/templates/next-template/public/favicon.ico +0 -0
- package/templates/next-template/src/app/development/page.tsx +0 -260
- package/templates/next-template/src/app/globals.css +0 -14
- package/templates/next-template/src/app/layout.tsx +0 -30
- package/templates/next-template/src/app/page.tsx +0 -10
- package/templates/next-template/src/app/resources/page.tsx +0 -175
- package/templates/next-template/src/app/resources/resources.ts +0 -56
- package/templates/next-template/src/components/default/examples.ts +0 -63
- package/templates/next-template/src/components/default/index.tsx +0 -402
- package/templates/next-template/src/components/index.ts +0 -3
- package/templates/next-template/src/components/landing/index.tsx +0 -107
- package/templates/next-template/src/components/providers/index.ts +0 -1
- package/templates/next-template/src/components/providers/providers.tsx +0 -89
- package/templates/next-template/src/components/shell/index.ts +0 -1
- package/templates/next-template/src/components/shell/shell.tsx +0 -87
- package/templates/next-template/tailwind.config.js +0 -17
- package/templates/next-template/tsconfig.json +0 -27
- package/tsconfig.json +0 -19
|
@@ -1,28 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
2
|
|
|
3
|
-
import { MantineProvider } from
|
|
4
|
-
import { Notifications } from
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { QueryClient, QueryClientProvider } from
|
|
8
|
-
import { type ReactNode, useMemo } from
|
|
9
|
-
import { http, WagmiProvider
|
|
3
|
+
import { createTheme, MantineProvider } from "@mantine/core";
|
|
4
|
+
import { Notifications } from "@mantine/notifications";
|
|
5
|
+
import { connectorsForWallets, lightTheme, RainbowKitProvider } from "@rainbow-me/rainbowkit";
|
|
6
|
+
import { injectedWallet } from "@rainbow-me/rainbowkit/wallets";
|
|
7
|
+
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
8
|
+
import { type ReactNode, useMemo } from "react";
|
|
9
|
+
import { createConfig, http, WagmiProvider } from "wagmi";
|
|
10
|
+
import { SEI_NEUTRAL_RAMP } from "@/theme";
|
|
10
11
|
|
|
11
|
-
import
|
|
12
|
-
import { sei,
|
|
12
|
+
import "@rainbow-me/rainbowkit/styles.css";
|
|
13
|
+
import { sei, seiTestnet } from "viem/chains";
|
|
13
14
|
|
|
14
15
|
const queryClient = new QueryClient();
|
|
16
|
+
const theme = createTheme({
|
|
17
|
+
autoContrast: true,
|
|
18
|
+
colors: {
|
|
19
|
+
gray: SEI_NEUTRAL_RAMP,
|
|
20
|
+
seiGold: ["#966f22", "#966f22", "#966f22", "#966f22", "#966f22", "#966f22", "#966f22", "#966f22", "#966f22", "#966f22"],
|
|
21
|
+
seiMaroon: ["#600014", "#600014", "#600014", "#600014", "#600014", "#600014", "#600014", "#600014", "#600014", "#600014"],
|
|
22
|
+
},
|
|
23
|
+
fontFamily: "var(--sei-font-body)",
|
|
24
|
+
fontFamilyMonospace: "var(--sei-font-mono)",
|
|
25
|
+
headings: {
|
|
26
|
+
fontFamily: "var(--sei-font-display)",
|
|
27
|
+
},
|
|
28
|
+
primaryColor: "seiMaroon",
|
|
29
|
+
primaryShade: 9,
|
|
30
|
+
});
|
|
15
31
|
|
|
16
32
|
const connectors = connectorsForWallets(
|
|
17
33
|
[
|
|
18
34
|
{
|
|
19
|
-
groupName:
|
|
20
|
-
wallets: [
|
|
35
|
+
groupName: "Recommended",
|
|
36
|
+
wallets: [injectedWallet],
|
|
21
37
|
},
|
|
22
38
|
],
|
|
23
39
|
{
|
|
24
|
-
appName:
|
|
25
|
-
projectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID ||
|
|
40
|
+
appName: "Sei dApp",
|
|
41
|
+
projectId: process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID || "your-project-id",
|
|
26
42
|
}
|
|
27
43
|
);
|
|
28
44
|
|
|
@@ -33,12 +49,10 @@ interface ProvidersProps {
|
|
|
33
49
|
export default function Providers({ children }: ProvidersProps) {
|
|
34
50
|
// Chain selection via environment variable, defaults to sei mainnet
|
|
35
51
|
const getSelectedChain = () => {
|
|
36
|
-
const chainName = process.env.NEXT_PUBLIC_CHAIN ||
|
|
52
|
+
const chainName = process.env.NEXT_PUBLIC_CHAIN || "mainnet";
|
|
37
53
|
switch (chainName.toLowerCase()) {
|
|
38
|
-
case
|
|
54
|
+
case "testnet":
|
|
39
55
|
return seiTestnet;
|
|
40
|
-
case 'devnet':
|
|
41
|
-
return seiDevnet;
|
|
42
56
|
default:
|
|
43
57
|
return sei;
|
|
44
58
|
}
|
|
@@ -54,7 +68,6 @@ export default function Providers({ children }: ProvidersProps) {
|
|
|
54
68
|
transports: {
|
|
55
69
|
[sei.id]: http(),
|
|
56
70
|
[seiTestnet.id]: http(),
|
|
57
|
-
[seiDevnet.id]: http(),
|
|
58
71
|
},
|
|
59
72
|
ssr: true,
|
|
60
73
|
}),
|
|
@@ -64,18 +77,18 @@ export default function Providers({ children }: ProvidersProps) {
|
|
|
64
77
|
return (
|
|
65
78
|
<WagmiProvider config={config}>
|
|
66
79
|
<QueryClientProvider client={queryClient}>
|
|
67
|
-
<MantineProvider defaultColorScheme="light">
|
|
80
|
+
<MantineProvider defaultColorScheme="light" theme={theme}>
|
|
68
81
|
<Notifications />
|
|
69
82
|
<RainbowKitProvider
|
|
70
83
|
theme={lightTheme({
|
|
71
|
-
accentColor:
|
|
72
|
-
accentColorForeground:
|
|
73
|
-
borderRadius:
|
|
74
|
-
fontStack:
|
|
84
|
+
accentColor: "var(--sei-maroon)",
|
|
85
|
+
accentColorForeground: "white",
|
|
86
|
+
borderRadius: "medium",
|
|
87
|
+
fontStack: "system",
|
|
75
88
|
})}
|
|
76
89
|
appInfo={{
|
|
77
|
-
appName:
|
|
78
|
-
learnMoreUrl:
|
|
90
|
+
appName: "Sei dApp",
|
|
91
|
+
learnMoreUrl: "https://docs.sei.io/learn/wallets",
|
|
79
92
|
}}
|
|
80
93
|
modalSize="compact"
|
|
81
94
|
initialChain={chain.id}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./shell";
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
2
|
|
|
3
|
-
import { ActionIcon, AppShell, Container, Group } from
|
|
4
|
-
import { ConnectButton } from
|
|
5
|
-
import { IconBook, IconCode, IconLogout } from
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
3
|
+
import { ActionIcon, AppShell, Container, Group } from "@mantine/core";
|
|
4
|
+
import { ConnectButton } from "@rainbow-me/rainbowkit";
|
|
5
|
+
import { IconBook, IconCode, IconLogout } from "@tabler/icons-react";
|
|
6
|
+
import Image from "next/image";
|
|
7
|
+
import Link from "next/link";
|
|
8
|
+
import type { PropsWithChildren } from "react";
|
|
9
|
+
import { useAccount, useDisconnect } from "wagmi";
|
|
9
10
|
|
|
10
11
|
export default function Shell({ children }: PropsWithChildren) {
|
|
11
12
|
const { address, isConnected } = useAccount();
|
|
12
13
|
const { disconnect } = useDisconnect();
|
|
13
14
|
|
|
14
15
|
return (
|
|
15
|
-
<AppShell header={{ height:
|
|
16
|
-
<AppShell.Header>
|
|
16
|
+
<AppShell header={{ height: 72 }} footer={{ height: 56 }} padding="md">
|
|
17
|
+
<AppShell.Header bg="white" style={{ borderColor: "var(--sei-neutral-50)" }}>
|
|
17
18
|
<Container size="xl" h="100%">
|
|
18
19
|
<Group justify="space-between" align="center" h="100%">
|
|
19
|
-
<Link href="/" aria-label="Sei">
|
|
20
|
-
<
|
|
20
|
+
<Link href="/" aria-label="Sei home" className="sei-brand-link">
|
|
21
|
+
<Image src="/brand/sei-lockup-light.svg" alt="Sei" width={104} height={40} priority style={{ display: "block" }} />
|
|
21
22
|
</Link>
|
|
22
23
|
<Group align="center" gap="md">
|
|
23
24
|
<ActionIcon
|
|
24
25
|
component={Link}
|
|
25
26
|
href="/resources"
|
|
26
27
|
variant="light"
|
|
27
|
-
|
|
28
|
+
color="gray"
|
|
28
29
|
size="lg"
|
|
29
30
|
radius="md"
|
|
30
31
|
aria-label="View Resources"
|
|
31
32
|
style={{
|
|
32
|
-
transition:
|
|
33
|
-
|
|
34
|
-
transform:
|
|
35
|
-
boxShadow:
|
|
33
|
+
transition: "all 0.2s ease",
|
|
34
|
+
"&:hover": {
|
|
35
|
+
transform: "translateY(-1px)",
|
|
36
|
+
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
|
36
37
|
},
|
|
37
38
|
}}
|
|
38
39
|
>
|
|
@@ -42,15 +43,15 @@ export default function Shell({ children }: PropsWithChildren) {
|
|
|
42
43
|
component={Link}
|
|
43
44
|
href="/development"
|
|
44
45
|
variant="light"
|
|
45
|
-
|
|
46
|
+
color="gray"
|
|
46
47
|
size="lg"
|
|
47
48
|
radius="md"
|
|
48
49
|
aria-label="View Development Guide"
|
|
49
50
|
style={{
|
|
50
|
-
transition:
|
|
51
|
-
|
|
52
|
-
transform:
|
|
53
|
-
boxShadow:
|
|
51
|
+
transition: "all 0.2s ease",
|
|
52
|
+
"&:hover": {
|
|
53
|
+
transform: "translateY(-1px)",
|
|
54
|
+
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
|
54
55
|
},
|
|
55
56
|
}}
|
|
56
57
|
>
|
|
@@ -59,16 +60,16 @@ export default function Shell({ children }: PropsWithChildren) {
|
|
|
59
60
|
{isConnected && address ? (
|
|
60
61
|
<ActionIcon
|
|
61
62
|
variant="light"
|
|
62
|
-
|
|
63
|
+
color="red"
|
|
63
64
|
size="lg"
|
|
64
65
|
radius="md"
|
|
65
66
|
onClick={() => disconnect()}
|
|
66
67
|
aria-label="Disconnect Wallet"
|
|
67
68
|
style={{
|
|
68
|
-
transition:
|
|
69
|
-
|
|
70
|
-
transform:
|
|
71
|
-
boxShadow:
|
|
69
|
+
transition: "all 0.2s ease",
|
|
70
|
+
"&:hover": {
|
|
71
|
+
transform: "translateY(-1px)",
|
|
72
|
+
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
|
72
73
|
},
|
|
73
74
|
}}
|
|
74
75
|
>
|
|
@@ -82,6 +83,13 @@ export default function Shell({ children }: PropsWithChildren) {
|
|
|
82
83
|
</Container>
|
|
83
84
|
</AppShell.Header>
|
|
84
85
|
<AppShell.Main>{children}</AppShell.Main>
|
|
86
|
+
<AppShell.Footer bg="white" style={{ borderColor: "var(--sei-neutral-50)" }}>
|
|
87
|
+
<Container size="xl" h="100%">
|
|
88
|
+
<Group justify="center" align="center" h="100%">
|
|
89
|
+
<Image src="/brand/powered-by-sei-light.png" alt="Powered by Sei" width={192} height={28} style={{ display: "block" }} />
|
|
90
|
+
</Group>
|
|
91
|
+
</Container>
|
|
92
|
+
</AppShell.Footer>
|
|
85
93
|
</AppShell>
|
|
86
94
|
);
|
|
87
95
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const SEI_NEUTRAL_RAMP = ["#f5f5f7", "#f5f5f7", "#cccccc", "#999999", "#666666", "#666666", "#333333", "#333333", "#131313", "#000000"] as const;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
+
// Tailwind v4 uses CSS-first configuration.
|
|
2
|
+
// Custom theme values are defined in src/app/globals.css via @theme.
|
|
3
|
+
// This file is kept as an empty config for compatibility.
|
|
1
4
|
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: [
|
|
4
|
-
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
|
|
5
|
-
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
6
|
-
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
|
|
7
|
-
],
|
|
8
|
-
theme: {
|
|
9
|
-
extend: {
|
|
10
|
-
colors: {
|
|
11
|
-
'sei-red': '#9E1F19',
|
|
12
|
-
'sei-dark': '#1a1a1a',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
plugins: [],
|
|
17
|
-
}
|
|
5
|
+
module.exports = {};
|
package/package.json
CHANGED
|
@@ -1,13 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sei-js/create-sei",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Scaffold new Sei applications with pre-configured templates and tooling",
|
|
5
|
+
"homepage": "https://github.com/sei-protocol/sei-js/tree/main/packages/create-sei#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/sei-protocol/sei-js.git",
|
|
9
|
+
"directory": "packages/create-sei"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
4
12
|
"module": "dist/main.js",
|
|
5
13
|
"type": "module",
|
|
6
14
|
"bin": "./dist/main.js",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./dist/main.js",
|
|
24
|
+
"default": "./dist/main.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
7
27
|
"scripts": {
|
|
8
|
-
"build": "rm -rf dist && tsc && chmod +x dist/main.js && rsync -av --exclude-from=.rsyncignore ./templates/ ./dist/templates/ && rsync -av --exclude-from=.rsyncignore ./extensions/ ./dist/extensions/",
|
|
9
|
-
"dev": "
|
|
10
|
-
"test": "
|
|
28
|
+
"build": "rm -rf dist && tsc --project ./tsconfig.json && chmod +x dist/main.js && rsync -av --exclude-from=.rsyncignore ./templates/ ./dist/templates/ && rsync -av --exclude-from=.rsyncignore ./extensions/ ./dist/extensions/",
|
|
29
|
+
"dev": "bun src/main.ts",
|
|
30
|
+
"test": "bun test --isolate src",
|
|
31
|
+
"test:release": "bun scripts/smoke-generated-app.ts"
|
|
11
32
|
},
|
|
12
33
|
"dependencies": {
|
|
13
34
|
"boxen": "^7.1.1",
|
|
@@ -15,12 +36,7 @@
|
|
|
15
36
|
"inquirer": "^9.2.15"
|
|
16
37
|
},
|
|
17
38
|
"devDependencies": {
|
|
18
|
-
"@jest/globals": "^29.7.0",
|
|
19
|
-
"@types/jest": "^29.5.12",
|
|
20
39
|
"@types/node": "^20.14.10",
|
|
21
|
-
"jest": "^29.7.0",
|
|
22
|
-
"ts-jest": "^29.1.2",
|
|
23
|
-
"ts-node": "^10.9.2",
|
|
24
40
|
"typescript": "^5.5.3"
|
|
25
41
|
}
|
|
26
42
|
}
|
package/.rsyncignore
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
# @sei-js/create-sei-app
|
|
2
|
-
|
|
3
|
-
## 1.0.0
|
|
4
|
-
|
|
5
|
-
### Major Changes
|
|
6
|
-
|
|
7
|
-
- 92fd8fd: Updated default template and added extensions
|
|
8
|
-
|
|
9
|
-
## 0.0.4
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- 848c236: Remove cosmos from templates
|
|
14
|
-
|
|
15
|
-
## 0.0.3
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- a64da08: Update README files in NPM
|
|
20
|
-
|
|
21
|
-
## 0.0.2
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- cd65a51: Fix broken NPM publish for all packages
|
|
26
|
-
|
|
27
|
-
## 0.0.1
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- d6e74ed: Update package structure and building of all @sei-js packages
|
|
32
|
-
|
|
33
|
-
## 0.0.0
|
|
34
|
-
|
|
35
|
-
### Major Changes
|
|
36
|
-
|
|
37
|
-
- e3a4c8e: First release
|
|
38
|
-
|
|
39
|
-
## 0.0.0-internal-20240718212746
|
|
40
|
-
|
|
41
|
-
### Major Changes
|
|
42
|
-
|
|
43
|
-
- test
|
|
44
|
-
|
|
45
|
-
## 0.0.0-internal-20240718212405
|
|
46
|
-
|
|
47
|
-
### Major Changes
|
|
48
|
-
|
|
49
|
-
- test ver final
|
|
50
|
-
|
|
51
|
-
## 0.0.0-internal-20240717005255
|
|
52
|
-
|
|
53
|
-
### Major Changes
|
|
54
|
-
|
|
55
|
-
- edit
|
|
56
|
-
|
|
57
|
-
## 0.0.0-internal-20240717005002
|
|
58
|
-
|
|
59
|
-
### Major Changes
|
|
60
|
-
|
|
61
|
-
- with options
|
|
62
|
-
|
|
63
|
-
## 0.0.0-internal-20240717003256
|
|
64
|
-
|
|
65
|
-
### Major Changes
|
|
66
|
-
|
|
67
|
-
- First version
|
|
68
|
-
|
|
69
|
-
## 0.0.0-internal-20240716075531
|
|
70
|
-
|
|
71
|
-
### Major Changes
|
|
72
|
-
|
|
73
|
-
- first v
|
|
74
|
-
|
|
75
|
-
## 0.0.0-internal-20240716074905
|
|
76
|
-
|
|
77
|
-
### Major Changes
|
|
78
|
-
|
|
79
|
-
- First version
|
|
80
|
-
|
|
81
|
-
## 0.0.0-internal-20240708205128
|
|
82
|
-
|
|
83
|
-
### Major Changes
|
|
84
|
-
|
|
85
|
-
- first release
|
|
86
|
-
|
|
87
|
-
## 0.0.0-internal-20240708184136
|
|
88
|
-
|
|
89
|
-
### Major Changes
|
|
90
|
-
|
|
91
|
-
- First release
|
|
92
|
-
|
|
93
|
-
## 0.0.0-internal-20240708170805
|
|
94
|
-
|
|
95
|
-
### Major Changes
|
|
96
|
-
|
|
97
|
-
- release create sei
|
|
98
|
-
|
|
99
|
-
## 0.0.0-internal-20240708163140
|
|
100
|
-
|
|
101
|
-
### Major Changes
|
|
102
|
-
|
|
103
|
-
- Update Templates
|
|
104
|
-
- 0917789: Major release
|
|
105
|
-
|
|
106
|
-
## 0.0.0-internal-20240701161539
|
|
107
|
-
|
|
108
|
-
### Major Changes
|
|
109
|
-
|
|
110
|
-
- 6b3cf5a: Instantiates the Create Sei App package
|
|
111
|
-
|
|
112
|
-
### Minor Changes
|
|
113
|
-
|
|
114
|
-
- changes
|
package/biome.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "template-next-create-sei-app-precompiles",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "next dev",
|
|
7
|
-
"build": "next build",
|
|
8
|
-
"start": "next start",
|
|
9
|
-
"lint": "biome lint .",
|
|
10
|
-
"lint:fix": "biome lint --write .",
|
|
11
|
-
"format": "biome format --write .",
|
|
12
|
-
"format:check": "biome format .",
|
|
13
|
-
"check": "biome check .",
|
|
14
|
-
"check:fix": "biome check --write .",
|
|
15
|
-
"deploy": "vercel --prod"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@mantine/code-highlight": "^8.2.5",
|
|
19
|
-
"@mantine/core": "^8.2.5",
|
|
20
|
-
"@mantine/hooks": "^8.2.5",
|
|
21
|
-
"@mantine/notifications": "^8.2.5",
|
|
22
|
-
"@rainbow-me/rainbowkit": "^2.2.8",
|
|
23
|
-
"@sei-js/precompiles": "^2.1.2",
|
|
24
|
-
"@tabler/icons-react": "^3.34.1",
|
|
25
|
-
"@tailwindcss/postcss": "^4.1.12",
|
|
26
|
-
"@tanstack/react-query": "^5.85.3",
|
|
27
|
-
"ethers": "^6.15.0",
|
|
28
|
-
"next": "15.4.7",
|
|
29
|
-
"pino-pretty": "^13.1.1",
|
|
30
|
-
"react": "^19.1.1",
|
|
31
|
-
"react-dom": "^19.1.1",
|
|
32
|
-
"viem": "^2.34.0",
|
|
33
|
-
"wagmi": "^2.16.4"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/node": "^24.3.0",
|
|
37
|
-
"@types/react": "^19.1.10",
|
|
38
|
-
"@types/react-dom": "^19.1.7",
|
|
39
|
-
"autoprefixer": "^10.4.21",
|
|
40
|
-
"postcss": "^8.4.45",
|
|
41
|
-
"tailwindcss": "^4.1.12",
|
|
42
|
-
"typescript": "^5.9.2"
|
|
43
|
-
}
|
|
44
|
-
}
|
package/dist/main.test.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { describe, test, expect, beforeEach, afterEach } from '@jest/globals';
|
|
2
|
-
import { promises as fs } from 'node:fs';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
describe('Extension System', () => {
|
|
5
|
-
const testDir = path.join(process.cwd(), 'test-output');
|
|
6
|
-
const extensionsDir = path.join(process.cwd(), 'extensions');
|
|
7
|
-
beforeEach(async () => {
|
|
8
|
-
// Clean up test directory
|
|
9
|
-
try {
|
|
10
|
-
await fs.rm(testDir, { recursive: true, force: true });
|
|
11
|
-
}
|
|
12
|
-
catch (e) {
|
|
13
|
-
// Directory might not exist
|
|
14
|
-
}
|
|
15
|
-
await fs.mkdir(testDir, { recursive: true });
|
|
16
|
-
});
|
|
17
|
-
afterEach(async () => {
|
|
18
|
-
// Clean up test directory
|
|
19
|
-
try {
|
|
20
|
-
await fs.rm(testDir, { recursive: true, force: true });
|
|
21
|
-
}
|
|
22
|
-
catch (e) {
|
|
23
|
-
// Directory might not exist
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
test('should list available extensions', async () => {
|
|
27
|
-
const extensionExists = await fs.access(path.join(extensionsDir, 'precompiles'))
|
|
28
|
-
.then(() => true)
|
|
29
|
-
.catch(() => false);
|
|
30
|
-
expect(extensionExists).toBe(true);
|
|
31
|
-
const extensionFiles = await fs.readdir(extensionsDir);
|
|
32
|
-
expect(extensionFiles).toContain('precompiles');
|
|
33
|
-
});
|
|
34
|
-
});
|
|
Binary file
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "template-next-create-sei-app-precompiles",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "next dev",
|
|
7
|
-
"build": "next build",
|
|
8
|
-
"start": "next start",
|
|
9
|
-
"lint": "biome lint .",
|
|
10
|
-
"lint:fix": "biome lint --write .",
|
|
11
|
-
"format": "biome format --write .",
|
|
12
|
-
"format:check": "biome format .",
|
|
13
|
-
"check": "biome check .",
|
|
14
|
-
"check:fix": "biome check --write .",
|
|
15
|
-
"deploy": "vercel --prod"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@mantine/code-highlight": "^8.2.5",
|
|
19
|
-
"@mantine/core": "^8.2.5",
|
|
20
|
-
"@mantine/hooks": "^8.2.5",
|
|
21
|
-
"@mantine/notifications": "^8.2.5",
|
|
22
|
-
"@rainbow-me/rainbowkit": "^2.2.8",
|
|
23
|
-
"@sei-js/precompiles": "^2.1.2",
|
|
24
|
-
"@tabler/icons-react": "^3.34.1",
|
|
25
|
-
"@tailwindcss/postcss": "^4.1.12",
|
|
26
|
-
"@tanstack/react-query": "^5.85.3",
|
|
27
|
-
"ethers": "^6.15.0",
|
|
28
|
-
"next": "15.4.7",
|
|
29
|
-
"pino-pretty": "^13.1.1",
|
|
30
|
-
"react": "^19.1.1",
|
|
31
|
-
"react-dom": "^19.1.1",
|
|
32
|
-
"viem": "^2.34.0",
|
|
33
|
-
"wagmi": "^2.16.4"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/node": "^24.3.0",
|
|
37
|
-
"@types/react": "^19.1.10",
|
|
38
|
-
"@types/react-dom": "^19.1.7",
|
|
39
|
-
"autoprefixer": "^10.4.21",
|
|
40
|
-
"postcss": "^8.4.45",
|
|
41
|
-
"tailwindcss": "^4.1.12",
|
|
42
|
-
"typescript": "^5.9.2"
|
|
43
|
-
}
|
|
44
|
-
}
|