Skip to content

Commit ab136a7

Browse files
committed
chore: removing next app
1 parent 2c51c17 commit ab136a7

File tree

6 files changed

+263
-48
lines changed

6 files changed

+263
-48
lines changed

β€Ž.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ coverage/
1717
yarn-error.log
1818
.size-snapshot.json
1919
e2e/viteapp
20-
e2e/nextapp
2120
e2e/craapp
2221
__diff_output__

β€Že2e/App.jsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use client'
2-
31
import { Suspense, useEffect } from 'react'
42
import { Canvas } from '@react-three/fiber'
53
import { Box, Environment, CameraControls } from '@react-three/drei'

β€Žpackage.json

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"rollup": "^3.25.1",
132132
"rollup-plugin-glslify": "^1.3.0",
133133
"rollup-plugin-multi-input": "^1.4.1",
134+
"serve": "^14.2.0",
134135
"storybook": "^7.0.12",
135136
"three": "^0.149.0",
136137
"ts-node": "^10.9.1",

β€Žtest-e2e.sh

+6-29
Original file line numberDiff line numberDiff line change
@@ -33,39 +33,12 @@ rm -rf e2e/viteapp
3333
cp e2e/App.jsx e2e/viteapp/src/App.jsx
3434

3535
# npm run dev + jest
36-
(cd e2e/viteapp; npm run dev -- --port $PORT &)
36+
(cd e2e/viteapp; npm run build; npm run preview -- --port $PORT &)
3737
npx jest e2e/snapshot.test.js || kill_app
3838
kill_app
3939

4040
rm -rf e2e/viteapp
4141

42-
#
43-
# β–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
44-
# β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β•
45-
# β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β•šβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘
46-
# β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘
47-
# β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘
48-
# β•šβ•β• β•šβ•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β• β•šβ•β• β•šβ•β•
49-
#
50-
51-
rm -rf e2e/nextapp
52-
53-
# Vite
54-
(cd e2e; npx create-next-app@latest nextapp --js --eslint --no-tailwind --no-src-dir --app --import-alias "@/*")
55-
56-
# drei
57-
(cd e2e/nextapp; npm i; npm i ../../dist/react-three-drei-0.0.0-semantic-release.tgz)
58-
59-
# App.jsx
60-
cp e2e/App.jsx e2e/nextapp/app/page.js
61-
62-
# npm run dev + jest
63-
(cd e2e/nextapp; npm run dev -- --port $PORT &)
64-
npx jest e2e/snapshot.test.js || kill_app
65-
kill_app
66-
67-
rm -rf e2e/nextapp
68-
6942
#
7043
# β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
7144
# β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
@@ -87,10 +60,14 @@ rm -rf e2e/craapp
8760
cp e2e/App.jsx e2e/craapp/src/App.js
8861

8962
# npm run dev + jest
90-
(cd e2e/craapp; PORT=$PORT BROWSER=none npm start &)
63+
(cd e2e/craapp; npm run build; npx serve -s -p $PORT build &)
9164
npx jest e2e/snapshot.test.js || kill_app
9265
kill_app
9366

9467
rm -rf e2e/craapp
9568

69+
#
70+
# Teardown
71+
#
72+
9673
echo "βœ… e2e ok"

0 commit comments

Comments
Β (0)