diff --git a/app/package.json b/app/package.json index 922ab277a..5621451c8 100644 --- a/app/package.json +++ b/app/package.json @@ -4,7 +4,9 @@ "private": true, "scripts": { "dev": "next dev", - "build": "next build", + "build": "next build && pnpm build:examples", + "build:examples": "mkdir -p out/examples && cd ../examples && pnpm install && pnpm -r build:example && pnpm -r copy:next", + "export": "next export", "start": "next start", "lint": "eslint -c .eslintrc.json --ext .jsx,.tsx ./src ./local ./data ./app", "typecheck": "tsc --noEmit" diff --git a/examples/.gitignore b/examples/.gitignore new file mode 100644 index 000000000..3c3629e64 --- /dev/null +++ b/examples/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/examples/list_names/.eslintrc.json b/examples/list_names/.eslintrc.json new file mode 100644 index 000000000..ff6d96a33 --- /dev/null +++ b/examples/list_names/.eslintrc.json @@ -0,0 +1,19 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2021 + }, + "extends": [ + "plugin:v3xlabs/recommended" + ], + "ignorePatterns": [ + "!**/*" + ], + "plugins": [ + "v3xlabs" + ], + "env": { + "browser": true + }, + "rules": {} +} \ No newline at end of file diff --git a/examples/list_names/.gitignore b/examples/list_names/.gitignore new file mode 100644 index 000000000..b94707787 --- /dev/null +++ b/examples/list_names/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +dist/ diff --git a/examples/list_names/.gitkeep b/examples/list_names/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/examples/list_names/.prettierrc b/examples/list_names/.prettierrc new file mode 100644 index 000000000..e4ca4958f --- /dev/null +++ b/examples/list_names/.prettierrc @@ -0,0 +1,5 @@ +{ + "tabWidth": 4, + "useTabs": false, + "singleQuote": true +} \ No newline at end of file diff --git a/examples/list_names/README.md b/examples/list_names/README.md new file mode 100644 index 000000000..d50d7d37c --- /dev/null +++ b/examples/list_names/README.md @@ -0,0 +1,10 @@ +# Send To Example + +[Live Preview](https://docs.ens.domains/examples/send_to/) + +## Getting Started + +``` +pnpm install +pnpm dev +``` diff --git a/examples/list_names/index.html b/examples/list_names/index.html new file mode 100644 index 000000000..146b80611 --- /dev/null +++ b/examples/list_names/index.html @@ -0,0 +1,12 @@ + + +
+ + +