Giter VIP home page Giter VIP logo

Comments (2)

joebochill avatar joebochill commented on August 21, 2024

I'm curious if we can get this to work by listing the underlying CLI packages as dependencies instead of running them via NPX.

from blui-cli.

daileytj avatar daileytj commented on August 21, 2024

We can get by without any cli changes if we let users know to install the respective underlying cli package via the npx --package flag.

angular: npx -p @brightlayer-ui/cli@beta --package=@angular/cli blui new --framework=angular
react: npx -p @brightlayer-ui/cli@beta --package=create-react-app blui new --framework=react
react-native: npx -p @brightlayer-ui/cli@beta --package=react-native blui new --framework=react-native

However, the create-react-app and react-native packages automatically use the latest react version which causes some peer dependency issues with react v18 when generating the project. This requires the end user to downgrade the react and react-dom dependencies back to ^17.0.0.

This makes me think, and agree with @joebochill's comment, that we can just add the cli dependencies to our CLI to solve this issue for now. This will need to be optimized in the future because the end-user will be installing all 3 underlying CLI's regardless of which framework they are using for their generated project.

from blui-cli.

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.