[Web]: Add experimental support for running web projects on Expo CLI
@danial24 がすでに取り組んでいます。
2019年8月29日 から。
評価
この issue はまだ評価されていません。
説明
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 🙃.
- 主要言語
- TypeScript
- スター
- 1
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
BlueBaseJS/cli のほかの issue
-
bug
BlueBaseJS/cli#111 · 担当者 1 名 ·
-
bug
BlueBaseJS/cli#110 · 担当者 1 名 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
BlueBaseJS/cli#104 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
BlueBaseJS/cli#103 · コメント 1 件 ·
-
bug
BlueBaseJS/cli#72 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ontola/atomic-server#1625 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
melgarafael/DeskcommCRM#1451 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
bug via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bot:ai-assisted component:compact-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
midnightntwrk/midnight-sdk#403 ·