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 2, 2023
1 parent 2c51c17 commit 8a71d39
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 45 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
"rollup": "^3.25.1",
"rollup-plugin-glslify": "^1.3.0",
"rollup-plugin-multi-input": "^1.4.1",
"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 8a71d39

Please sign in to comment.