[Web]: Add experimental support for running web projects on Expo CLI
@danial24 ci sta già lavorando.
Dal 29/8/2019.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Expo is now rapidly adding support for the web platform. Although it's ready for production yet, it's worth exploring their cli to run and build web project rather than using our own custom framework. This will reduce maintenance overhead.
Strategy
This should be very straight forward as expo cli is already used to build react native projects. We may be able to use the same code with minor changes.
Command
Experimental support can be added via --expo flag. So final commands will be:
bluebase web:start --expo
bluebase web:build --expo
Prior Work
I've done a brief exploration of the issue without writing much code till now. Here are the findings:
- Custom
app.jsoncan be used by using the--configflag on cli just like we do for native (This wasn't the case when I last tried a month ago). - Custom Static Files are served from
webfolder in root. This seems to be the code that does it. We need to find a way to change this behavior so that we can use BlueBase folder structure. - Webpack Configs can be customized by putting a
webpack.config.jsin the project root. We need to find a way to put this file in a child directory to follow BlueBase folder structure. This seems to be the code where expo cli imports the webpack configs.
Possible solutions to point 2 & 3:
- Use a custom projectRoot.
- Change working directory before executing expo CLI command
- Send them a PR to accept custom paths through app.json 🙃.
- Lingua principale
- TypeScript
- Stelle
- 1
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di BlueBaseJS/cli
-
bug
BlueBaseJS/cli#111 · 1 assegnatario ·
-
bug
BlueBaseJS/cli#110 · 1 assegnatario ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
BlueBaseJS/cli#104 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
BlueBaseJS/cli#103 · 1 commento ·
-
bug
BlueBaseJS/cli#72 · 1 commento · 1 reazione · 1 assegnatario ·
Tutte le issue di BlueBaseJS/cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
modelcontextprotocol/inspector#2458 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
carbon-design-system/ibm-products#9907 ·