Skip to content

Commit a798f0f

Browse files
authored
Merge pull request #38 from MFB-Technologies-Inc/37-convert-the-example-app-to-vite
37: convert the example app to vite
2 parents 7eb2d90 + 417dabd commit a798f0f

35 files changed

+3470
-31447
lines changed

example-app/.eslintrc.cjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright 2024 MFB Technologies, Inc.
3+
*/
4+
5+
module.exports = {
6+
root: true,
7+
env: { browser: true, es2020: true },
8+
extends: [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/recommended",
11+
"plugin:react-hooks/recommended"
12+
],
13+
ignorePatterns: ["dist", ".eslintrc.cjs"],
14+
parser: "@typescript-eslint/parser",
15+
plugins: ["react-refresh"],
16+
rules: {
17+
"react-refresh/only-export-components": [
18+
"warn",
19+
{ allowConstantExport: true }
20+
]
21+
}
22+
}

example-app/.gitignore

Lines changed: 24 additions & 0 deletions
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?

example/README.md renamed to example-app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# example
1+
# example app
22

33
Example of how to use the exports of `@mfbtech/react-async-renderer`.
44

example-app/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--
2+
Copyright 2024 MFB Technologies, Inc.
3+
-->
4+
5+
<!doctype html>
6+
<html lang="en">
7+
<head>
8+
<meta charset="UTF-8" />
9+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
11+
<title>Examples</title>
12+
</head>
13+
<body>
14+
<div id="root"></div>
15+
<script type="module" src="/src/main.tsx"></script>
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)