Skip to content

Commit

Permalink
chore: removing next app
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Jul 3, 2023
1 parent 2cad898 commit 4faf7d1
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 50 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ coverage/
yarn-error.log
.size-snapshot.json
e2e/viteapp
e2e/nextapp
e2e/craapp
__diff_output__
2 changes: 0 additions & 2 deletions e2e/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client'

import { Suspense, useEffect } from 'react'
import { Canvas } from '@react-three/fiber'
import { Box, Environment, CameraControls } from '@react-three/drei'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
"rollup-plugin-glslify": "^1.3.0",
"rollup-plugin-multi-input": "^1.4.1",
"semantic-release": "^21.0.6",
"serve": "^14.2.0",
"storybook": "^7.0.12",
"three": "^0.149.0",
"ts-node": "^10.9.1",
Expand Down
35 changes: 6 additions & 29 deletions test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,39 +33,12 @@ rm -rf e2e/viteapp
cp e2e/App.jsx e2e/viteapp/src/App.jsx

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

rm -rf e2e/viteapp

#
# β–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
# β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β•
# β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β•šβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘
# β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘
# β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘
# β•šβ•β• β•šβ•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β• β•šβ•β• β•šβ•β•
#

rm -rf e2e/nextapp

# Vite
(cd e2e; npx create-next-app@latest nextapp --js --eslint --no-tailwind --no-src-dir --app --import-alias "@/*")

# drei
(cd e2e/nextapp; npm i; npm i ../../dist/react-three-drei-0.0.0-semantic-release.tgz)

# App.jsx
cp e2e/App.jsx e2e/nextapp/app/page.js

# npm run dev + jest
(cd e2e/nextapp; npm run dev -- --port $PORT &)
npx jest e2e/snapshot.test.js || kill_app
kill_app

rm -rf e2e/nextapp

#
# β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
# β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
Expand All @@ -87,10 +60,14 @@ rm -rf e2e/craapp
cp e2e/App.jsx e2e/craapp/src/App.js

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

rm -rf e2e/craapp

#
# Teardown
#

echo "βœ… e2e ok"
Loading

0 comments on commit 4faf7d1

Please sign in to comment.