Skip to content

Commit

Permalink
init SPA
Browse files Browse the repository at this point in the history
  • Loading branch information
willybrauner committed Nov 29, 2023
1 parent e75830d commit f194131
Show file tree
Hide file tree
Showing 28 changed files with 35 additions and 903 deletions.
2 changes: 1 addition & 1 deletion apps/front/.env
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DOCKER_NODE_PORT=3000
### BUILD HTACCESS
# Encrypted password
# @generator: https://www.web2generators.com/apache-tools/htpasswd-generator
BUILD_HTACCESS=false
BUILD_HTACCESS=true
HTACCESS_ENABLE_AUTH=false
HTACCESS_AUTH_USER=
HTACCESS_AUTH_PASSWORD=
Expand Down
4 changes: 2 additions & 2 deletions apps/front/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1"
/>
<title>App</title>
<title>IA Doudoune</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<script type="module" src="src/index.tsx"></script>
</body>
</html>
47 changes: 0 additions & 47 deletions apps/front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions apps/front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
"main": "src/index.tsx",
"type": "module",
"scripts": {
"dev": "node server.js",
"build:client": "vite build --outDir dist/client",
"build:server": "vite build --ssr src/server/index-server.tsx --outDir dist/server",
"build:scripts": "vite build -c vite.scripts.config.ts",
"build:static": "vite build --outDir dist/static",
"build": "npm run build:server && npm run build:scripts && npm run build:static && npm run generate",
"generate": "node dist/_scripts/exe-prerender.js",
"preview": "serve dist/static",
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"test:watch": "vitest",
"test": "vitest run"
},
Expand All @@ -20,7 +15,6 @@
"@cher-ami/debug": "^1.2.0",
"@cher-ami/router": "^3.4.0",
"@cher-ami/utils": "^1.4.1",
"cross-fetch": "^4.0.0",
"history": "^5.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
33 changes: 0 additions & 33 deletions apps/front/prerender/__tests__/ManifestParser.test.ts

This file was deleted.

56 changes: 0 additions & 56 deletions apps/front/prerender/__tests__/fixtures/manifest.json

This file was deleted.

58 changes: 0 additions & 58 deletions apps/front/prerender/__tests__/isRouterIndex.test.ts

This file was deleted.

39 changes: 0 additions & 39 deletions apps/front/prerender/exe-prerender-server.ts

This file was deleted.

6 changes: 0 additions & 6 deletions apps/front/prerender/exe-prerender.ts

This file was deleted.

Loading

0 comments on commit f194131

Please sign in to comment.