Comments (12)
I can work on this.
from open-bus-map-search.
I was calculating the impact of this contribution.
With CRA:
Development Server Start-Up Time - 28 to 30 seconds!
With Vite:
Development Server Start-Up Time - 789 milliseconds!
MASSIVE IMPROVEMENT!
from open-bus-map-search.
I am following the instructions in the article that you sent.
As per Step 8 we will have to migrate our testing library from Jest to Vitest. Currently, all our tests have been written in Jest. Therefore, migrating to Vitest will break the project.
I am making some changes to the package.json
file but I am not sure what to write for test
and eject
as they both used react-scripts earlier.
"scripts": {
"start": "vite",
"build": "tsc && vite build",
"serve": "vite preview",
"test": "",
"test:playwright": "playwright test",
"eject": "",
"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix",
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc"
},
Thoughts?
from open-bus-map-search.
@NoamGaash No we have Playwright tests.
from open-bus-map-search.
thank you @knightcube !
you solved a real tech debt in our project. it's super helpful and appreciated
🙏 ⭐ 🥇
from open-bus-map-search.
If you don't need any Server-Side Rendering abilities then Vite is probably the best alternative for create-react-app AFAIK.
from open-bus-map-search.
@knightcube thanks! let me know if you have any question, or if there's any help required
from open-bus-map-search.
are you sure that we have Jest tests?
from open-bus-map-search.
@knightcube Playwright won't care about the way we transpile our project. It just uses yarn start
and looks for the 8080
port
from open-bus-map-search.
But why is the playwright test not running here? - https://github.com/hasadna/open-bus-map-search/actions/runs/6378722977/job/17313602705?pr=86
from open-bus-map-search.
Did you try to run it locally? Maybe its listening to the wrong port number
from open-bus-map-search.
Yeah I updated the port numbers in #86 just now.
from open-bus-map-search.
Related Issues (20)
- We don't always see the planned route - why? HOT 8
- Wrong line profile information HOT 1
- Dark mode hides map legends HOT 3
- add youtube videos HOT 6
- no scrolling on live map preview HOT 10
- היסטוריית נסיעות לא עובדת HOT 4
- Embed youtube playlist to our about page HOT 3
- Change the title of the "realtime" page HOT 3
- Make the language button visible and visually pleasant HOT 6
- Redesign Proposal HOT 7
- Dashboard data isn't cached
- center map automatically HOT 2
- Create MapContent Component HOT 2
- Make us SEO compatible HOT 9
- עעעע HOT 2
- Translate bearing to geographic terms in BusTooltip HOT 5
- There are two donate buttons at the navbar which show different things HOT 8
- Duplicate donate link (dollar icon ) at the topbar HOT 3
- Proposal: Simplify Domain Name for Better UX HOT 3
- style | public-appeal page touch-ups HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-bus-map-search.