Git Product home page Git Product logo

Comments (1)

sodic avatar sodic commented on May 23, 2024

We've released Wasp 0.12.0 with some separation of dependencies, but we weren't thorough enough.

The issue still stands: figure out what belongs where and remove duplicates and redundancies.

Idea: Why not move all Wasp's dependencies from the user's package.json to the SDK's package.json. The main reasons against doing this were:

  • This packages (e.g., typescript, react) are so crucial to Wasp that they should be listed in the package.json explicitly.
  • What happens if the user (by accident) specifies one of these dependencies themselves? Does it break the app?

Finally, decide which packages can and should be peer dependencies (or dev dependencies).

Especially pay attention to:

  • Types (e.g., @types/react, @types/react-router-dom) - Where should these go? Investigate the implications of putting them into each possible location:
    • user:dependencies vs user:devDependencies vs sdk:dependencies vs sdk:devDependencies.
  • Packages Wasp implicitly needs - Packages that Wasp doesn't list as dependencies, but its code can't work without them (e.g., cors package for configuring middleware, possibley screen package for testing). This is bad API design on our part, and we should figure out what to do with those packages.
  • Core packages - Wasp's core dependencies: React, Typescript, Vite, etc.

from wasp.

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.