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

Abierto
#50 1 comentario 0 reacciones 1 asignado Ver en GitHub

@danial24 ya está trabajando en esto.

Desde el 29/8/2019.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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 🙃.
Lenguaje dominante
TypeScript
Estrellas
1
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de BlueBaseJS/cli

Todos los issues de BlueBaseJS/cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.