Skip to content

Commit 5771957

Browse files
committedFeb 20, 2024
"Initial commit from Create Refine App"
0 parents  commit 5771957

14 files changed

+9700
-0
lines changed
 

‎.eslintrc.cjs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:react-hooks/recommended",
8+
],
9+
ignorePatterns: ["dist", ".eslintrc.cjs"],
10+
parser: "@typescript-eslint/parser",
11+
plugins: ["react-refresh"],
12+
rules: {
13+
"react-refresh/only-export-components": "warn",
14+
},
15+
};

‎.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

‎.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"arrowParens": "always",
3+
"semi": true,
4+
"trailingComma": "all",
5+
"singleQuote": false,
6+
"printWidth": 80,
7+
"tabWidth": 2
8+
}

‎README.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<div align="center" style="margin: 30px;">
2+
<a href="https://refine.dev/">
3+
<img alt="refine logo" src="https://refine.ams3.cdn.digitaloceanspaces.com/readme/refine-readme-banner.png">
4+
</a>
5+
6+
</br>
7+
</br>
8+
9+
<div align="center">
10+
<a href="https://refine.dev">Home Page</a> |
11+
<a href="https://discord.gg/refine">Discord</a> |
12+
<a href="https://refine.dev/examples/">Examples</a> |
13+
<a href="https://refine.dev/blog/">Blog</a> |
14+
<a href="https://refine.dev/docs/">Documentation</a>
15+
</div>
16+
</div>
17+
18+
</br>
19+
</br>
20+
21+
<div align="center"><strong>Build your <a href="https://reactjs.org/">React</a>-based CRUD applications, without constraints.</strong><br>An open source, headless web application framework developed with flexibility in mind.
22+
23+
<br />
24+
<br />
25+
26+
[![Discord](https://img.shields.io/discord/837692625737613362.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/refine)
27+
[![Twitter Follow](https://img.shields.io/twitter/follow/refine_dev?style=social)](https://twitter.com/refine_dev)
28+
29+
<a href="https://www.producthunt.com/posts/refine-3?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-refine&#0045;3" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=362220&theme=light&period=daily" alt="refine - 100&#0037;&#0032;open&#0032;source&#0032;React&#0032;framework&#0032;to&#0032;build&#0032;web&#0032;apps&#0032;3x&#0032;faster | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
30+
31+
</div>
32+
33+
## Try this example on your local
34+
35+
```bash
36+
npm create refine-app@latest -- --example starter-vite
37+
```
38+
39+
## Try this example on CodeSandbox
40+
41+
<br/>
42+
43+
[![Open starter-vite example from refine](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/embed/github/refinedev/refine/tree/master/examples/starter-vite?view=preview&theme=dark&codemirror=1)

‎index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/refine.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta name="description" content="refine | Vite Starter." />
8+
<meta
9+
data-rh="true"
10+
property="og:image"
11+
content="https://refine.dev/img/refine_social.png"
12+
/>
13+
<meta
14+
data-rh="true"
15+
name="twitter:image"
16+
content="https://refine.dev/img/refine_social.png"
17+
/>
18+
<title>Refine Vite Starter</title>
19+
</head>
20+
<body>
21+
<div id="root"></div>
22+
<script type="module" src="/src/main.tsx"></script>
23+
</body>
24+
</html>

‎package-lock.json

+9,484
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "starter-vite",
3+
"version": "1.0.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"build": "tsc && refine build",
8+
"dev": "refine dev",
9+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
10+
"preview": "refine start",
11+
"refine": "refine"
12+
},
13+
"dependencies": {
14+
"@refinedev/cli": "^2.16.25",
15+
"@refinedev/core": "^4.47.2",
16+
"react": "^18.0.0",
17+
"react-dom": "^18.0.0"
18+
},
19+
"devDependencies": {
20+
"@types/react": "^18.0.0",
21+
"@types/react-dom": "^18.0.0",
22+
"@typescript-eslint/eslint-plugin": "5.48.0",
23+
"@typescript-eslint/parser": "5.48.0",
24+
"@vitejs/plugin-react": "^4.0.0",
25+
"eslint": "^8.24.0",
26+
"eslint-plugin-react-hooks": "^4.6.0",
27+
"eslint-plugin-react-refresh": "^0.3.4",
28+
"typescript": "^4.7.4",
29+
"vite": "^4.3.1"
30+
}
31+
}

‎public/refine.svg

+10
Loading

‎src/App.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Refine, WelcomePage } from "@refinedev/core";
2+
3+
function App() {
4+
return (
5+
<Refine>
6+
<WelcomePage />
7+
</Refine>
8+
);
9+
}
10+
11+
export default App;

‎src/main.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
import ReactDOM from "react-dom/client";
3+
import App from "./App";
4+
5+
ReactDOM.createRoot(document.getElementById("root")!).render(
6+
<React.StrictMode>
7+
<App />
8+
</React.StrictMode>,
9+
);

‎src/vite-env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

‎tsconfig.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ESNext",
4+
"useDefineForClassFields": true,
5+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
6+
"allowJs": false,
7+
"skipLibCheck": true,
8+
"esModuleInterop": false,
9+
"allowSyntheticDefaultImports": true,
10+
"strict": true,
11+
"forceConsistentCasingInFileNames": true,
12+
"module": "ESNext",
13+
"moduleResolution": "Node",
14+
"resolveJsonModule": true,
15+
"isolatedModules": true,
16+
"noEmit": true,
17+
"jsx": "react-jsx",
18+
"paths": {
19+
"*": ["./*"]
20+
}
21+
},
22+
"include": ["src", "vite.config.ts"],
23+
"references": [{ "path": "./tsconfig.node.json" }]
24+
}

‎tsconfig.node.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compilerOptions": {
3+
"composite": true,
4+
"skipLibCheck": true,
5+
"module": "ESNext",
6+
"moduleResolution": "node"
7+
},
8+
"include": ["vite.config.ts"]
9+
}

‎vite.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from "vite";
2+
import react from "@vitejs/plugin-react";
3+
4+
// https://vitejs.dev/config/
5+
export default defineConfig({
6+
plugins: [react()],
7+
});

0 commit comments

Comments
 (0)
Please sign in to comment.