Comments (2)
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.
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)
- Ionic New Project Failing HOT 1
- Be More Specific on how to use Templates HOT 2
- Drop Expo HOT 1
- Drop Ionic HOT 1
- Update dependencies and resources HOT 2
- Generated RN projects should use the latest React Native package HOT 1
- RN Android instructions missing step HOT 1
- CLI doesn't stop after generating new project HOT 2
- Typescript license url is broken
- CLI global install warnings
- CLI does not automatically exit the process when finished HOT 1
- React Native generated projects Build Fails
- Remove support for Expo? HOT 3
- Show Template Version in Generated README HOT 2
- Look into using Capacitor
- Ionic projects should use the latest ionic cli
- NPM doesn't show README HOT 1
- Stop doing react-native link for RN projects HOT 1
- React Native template project tests fail HOT 4
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 blui-cli.