Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Web]: Add experimental support for running web projects on Expo CLI

Aperta
#50 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@danial24 ci sta già lavorando.

Dal 29/8/2019.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

cli-web enhancement

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:

  1. Custom app.json can be used by using the --config flag on cli just like we do for native (This wasn't the case when I last tried a month ago).
  2. Custom Static Files are served from web folder 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.
  3. Webpack Configs can be customized by putting a webpack.config.js in 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BlueBaseJS/cli

Tutte le issue di BlueBaseJS/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.