Giter VIP home page Giter VIP logo

Comments (12)

knightcube avatar knightcube commented on June 21, 2024 2

I can work on this.

from open-bus-map-search.

knightcube avatar knightcube commented on June 21, 2024 2

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.

knightcube avatar knightcube commented on June 21, 2024 1

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.

knightcube avatar knightcube commented on June 21, 2024 1

@NoamGaash No we have Playwright tests.

from open-bus-map-search.

NoamGaash avatar NoamGaash commented on June 21, 2024 1

thank you @knightcube !
you solved a real tech debt in our project. it's super helpful and appreciated
🙏 ⭐ 🥇

from open-bus-map-search.

rzarviv avatar rzarviv commented on June 21, 2024

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.

NoamGaash avatar NoamGaash commented on June 21, 2024

@knightcube thanks! let me know if you have any question, or if there's any help required

from open-bus-map-search.

NoamGaash avatar NoamGaash commented on June 21, 2024

are you sure that we have Jest tests?

from open-bus-map-search.

NoamGaash avatar NoamGaash commented on June 21, 2024

@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.

knightcube avatar knightcube commented on June 21, 2024

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.

NoamGaash avatar NoamGaash commented on June 21, 2024

Did you try to run it locally? Maybe its listening to the wrong port number

from open-bus-map-search.

knightcube avatar knightcube commented on June 21, 2024

Yeah I updated the port numbers in #86 just now.

from open-bus-map-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.