Commit Graph
23 Commits
Author SHA1 Message Date
Evan BaconandEvan Bacon 3052b9d0c7 [webpack] Upgrade to Webpack 5 (#3763)
* Upgraded deps

* Update withDevServer.ts

* Running with Webpack 5

* New logging

* Fixed asset creation

* Fixed sockets

* Update TerminalUI.ts

* Added bundling support

* Update TerminalUI.ts

* fixed startup logic

* Updated dev tools web start

* Update startAsync.ts

* Update yarn.lock

* [wip] working again

* remove unused

* wip -- native fast refresh

* remove unused

* wip

* fixed fast refresh dev server across web/ios

* support arbitrary ports

* fixed image loading on web

* fixup refresh

* wip multi-config -- not working with fast refresh

* wip kinda working

* wip -- native fast refresh working

* wip -- working all platforms

* Added asset Metro middleware interop

* Disable react-error-overlay

* add web stuff back

* improve symbolication

* added proper patches

* patch package

* Update webpackHotDevClient.ts

* Update __webpack_require__.l.ts

* wip -- no merge

* wip -- no merge

* wip

* wip -- no commit

* wip -- updated interface

* wip -- update runtime

* fix versions

* Fix types

fixed all runtime/ TS errors

fix ts errors

change redirects

drop deprecations

Drop native output

Update embed.ts

Delete embed.ts

revert extras

remove asset middleware

updated ops

split out HMR plugin

Update webpack.config.ts

* Remove patches

* Delete webpack-dev-middleware_dist_utils_setupOutputFileSystem.js

* Drop extra native features

* revert code

* Update defaults.ts

* added types

* fix yarn

Update PackagerLogsStream.ts

Update yarn.lock

* Update getFileAsync.ts

* Update webpack.config.ts

* Update Webpack.ts

* Fix splitChunks

* Remove react-dev-utils to add Node LTS (v12) support back

Update ModuleNotFoundPlugin.ts

Update formatWebpackMessages.ts

* fix types

* Update createAllLoaders-test.js

* Update paths-test.js.snap

* fix tests

* Update webpack.config-test.js.snap

* Fix merge

* Fix find-up

* Update package.json

Update ManifestHandler.ts

Update .eslintrc.js

Update parseStartOptions.ts

fix types

Update yarn.lock

Delete more unused code and fix types

fix types

drop unimodules helper (no longer used in Next.js adapter)

update tests

drop more native support

wip -- drop native

update deps

Update basic-test.js

updated tests

Update startAsync.ts

drop / revert

Update package.json

* update tests

* fix tests

* fix tests

---------

Co-authored-by: Evan Bacon <[email protected]>
2023-01-27 10:38:59 -06:00
Evan Bacon 6cb043b17b chore: add deprecated banner to dev tools UI (#4453) 2022-07-11 12:41:41 -07:00
Kim Brandwijk 208354c051 [expo-env-info] prepare repo to convert expo-env-info to esm (#4312) 2022-04-23 02:01:30 +02:00
Łukasz Kosmaty b5c59a7910 [Interstitial page] Fix QR on web UI & fallback to SDK version if the runtime version wasn't defined (#4214)
# Why

Fixes that QR code on web UI pointed to the `Expo Go` directly instead of to the interstitial page.
Fallback to the SDK version if the runtime version wasn't defined. 

# How

- Extended the dev graphQL server to serve Interstitial page URL if available. 

# Test Plan

- runs the local version of the CLI and confirms that the web QR code points to the correct place.
- checks if the SDK version was detected when the runtime version isn't available.
2022-02-16 13:17:37 +01:00
d189a84b8c use platforms array for disabling platforms (#3844)
* Added platforms for disabling terminal ui

* Added platforms styling to web ui

* Update packages/expo-cli/src/commands/start/TerminalUI.ts

Co-authored-by: Brent Vatne <[email protected]>

Co-authored-by: Evan Bacon <[email protected]>
Co-authored-by: Brent Vatne <[email protected]>
2021-09-14 08:48:45 -06:00
Brent VatneandJames Ide 20e0d2015f expo.io -> expo.dev (#3771)
Co-authored-by: James Ide <[email protected]>
2021-08-16 12:41:10 -07:00
Bartosz Kaszubowski a2b92a7408 [workspace] update ESLint and Prettier (#3427) 2021-04-27 15:49:44 -06:00
Jon Samp f4379b2cf8 [CLI] Update CLI urls (#2767)
* [cli] update urls

* update one more link
2020-10-07 09:04:19 -04:00
Brent Vatne c34397c41d [dev-tools] Add placeholder for QR code when URL is not available yet 2020-09-01 13:46:07 -07:00
Will Schurman e958ff848c Update eslint-config-universe to 4.0.0 (#2396) 2020-07-24 15:25:32 -07:00
Ville Immonen d1e02e31a4 chore: format all files with Prettier (#2112)
* chore: update prettier config

- add all build folders to prettierignore
- add "yarn format" script in the root package
- set "arrowParens": "avoid" to match the default of Prettier 1.x,
  the new default "always" makes sense, but it's better to make this
  change in a separate commit
- remove unnecessary .prettierrc from dev-tools

* chore: format all files with Prettier
2020-05-13 15:27:42 +03:00
Brent Vatne 138d65e5b5 Revert "[dev-tools] refactor: Convert DevTools to Expo Web from NextJS (#1824)"
This reverts commit dd469ae8a2.
2020-04-15 22:06:26 -07:00
Juwan WheatleyandEvan Bacon dd469ae8a2 [dev-tools] refactor: Convert DevTools to Expo Web from NextJS (#1824)
* [dev-tools] Initialize new Expo app

* [dev-tools] remove decorators

* [dev-tools] get UI rendering via Expo Web instead of NextJS

* [dev-tools] use path.resolve to remove leading slash

* [dev-tools] get Expo Web dev-tools running on `expod start`

* [dev-tools] get local dev server working with `expo start`-ed UI

* [dev-tools] add nodemon watcher for developing DevToolsServer and create script for developing DevTools UI.

This also removes the `yarn start` script, as you should run `yarn dev-server <path>` and `yarn dev-ui` in separate terminals.

* [dev-tools] update README.md

* [dev-tools] build/develop DevTools client using xdl directly

* [dev-tools] add emotion babel plugin dep

* [website] remember to install client dependencies

* [dev-tools] check before cleaning dist path

* [dev-tools] remove nextjs config files

* [dev-tools] test if adding next back to the devtools package unbreaks CI

* Revert "[dev-tools] test if adding next back to the devtools package unbreaks CI"

This reverts commit 3647e51eff44eaddb65c322a66c9728e97b5a0b6.

* [dev-tools] try to add *correct* NextJS back to fix CI

* [dev-tools] use correct start script to not start metro

* [dev-tools] remove redundant main field
we should stop generating this in the template if it's default now

* [dev-tools] remove redundant platforms field

* [dev-tools] moved indexpage to appjs

* Update packages/dev-tools/client/.gitignore

Co-Authored-By: Evan Bacon <[email protected]>

* [dev-tools] be more specific about what version of dev-tools you should be testing

* [dev-toold] reduce size from 4.3mb to 1.2mb (on-par with nextjs predecessor)

* [dev-tools] import name properly

* [dev-tools] tell developers to not run `expo start` when trying to `yarn dev`

* [dev-tools] retake: remove manifest, run on port 19002, and support relative paths

Co-authored-by: Evan Bacon <[email protected]>
2020-04-14 18:55:28 -07:00
Evan BaconandBrent Vatne d14cfeaa50 Always show web in dev tools (#1492)
Co-authored-by: Brent Vatne <[email protected]>
2020-02-03 12:56:49 -08:00
Kuba Mazurek 24c2108126 feat(dev-tools): copy url to clipboard feedback (#1220) 2019-11-25 16:19:59 -08:00
Will Schurman a01d217912 feat(dev-tools): Add informative error page when root GQL query fails (#1235) 2019-11-18 12:26:54 +02:00
Sergei Chestakov 47f70e5824 Add image optimization functionality (#555)
* Add optimize command and read in bundled assets

* Add sharp to dependencies and compress images

* Use assets.json in .expo folder to store which assets have been modified

* Store assets by their checksum in .expo-shared and add --save option

This commit switches to storing assets.json in a new .expo-shared folder
rather than .expo so that it can be checked into git and state can be shared
amongst multiple people . It also now keeps track of files using the SHA256
checksum of their contents rather than their inodes or names which allows it
to work crossplatform and accross different machines. Finally, I added a --save
option to save the original assets and switched to overwriting them and
not saving the unoptimized versions by default.

* Delete unused hash values in assets.json and log when no assets are optimized

Deleting unused hash values allows us to remove entries in assets.json for assets that were deleted or modified

* Only search for assets files in project directory

* Output KB saved and remove 'optimized' assets if larger than original

* Update function to convert number of bytes to a human readable value

* Add warning and prompt the user if --save flag is not passed in

* Prompt user to optimize assets before publishing

* Add toggle for asset optimization in dev-tools

* Add optimize functionality to dev-tools GUI

Moves core logic of optimization to xdl and imports from within expo-cli and
dev-tools. Adds a new Graph QL mutation which the dev-tools front end
calls to trigger the xdl optimizeAsync function.

* Add message about assets.json when it's created.

* Use path.join instead of string concatenation

* Move helper functions into a new AssetUtils module

* Add --include and --exclude options to filter files

* Clarify that --include and --exclude patterns are relative to proj root

* Make logs less colorful

* Update prompt messages to be more clear

* .expo -> .orig for backups

* Remove backup prompt/warning when there are no assets to optimize

* Update prompt message to backup original files
2019-05-03 03:29:16 -07:00
Ville Immonen a4c2dd5635 Fix all ESLint warnings in dev-tools 2019-03-21 13:08:25 +02:00
Ville Immonen 9c98be07fe Update ESLint config and fix errors (#443)
* Update the whole repo to use the latest ESLint config

* Edit ESLint ignores

* Only use universe/web config in dev-tools

* Fix class/decorators syntax error

* Fix react/react-in-jsx-scope

* Fix 'cp is undefined' (no-undef)

* Fix duplicate import

* Fix unexpected keyword

* Remove legacy web (Electron) specific code paths in XDL

These code paths were used in XDE, which is long gone.
They are no longer used or tested.

Fixes these lint errors:
- 'FormData' is not defined (no-undef)
- 'window' is not defined (no-undef)

* Fix 'error is undefined' (no-undef)

* Ensure newline at EOF
2019-03-21 11:48:17 +02:00
James Ide a9ce6ead81 Remove "SMS" from link-sending descriptions (#425)
This removes SMS from the UI for sending project development links. The server endpoint still behaves the same, but the UI now promotes email over SMS. Email is more reliable, much cheaper, and more customizable. We'll make a similar change on web as well.

Test plan: Ran the CLI on a test project and verified that both the CLI and web UI showed just "email" without "SMS" for sending links.
2019-03-18 22:50:59 -07:00
Ville Immonen cf721e1f6c Initial support for expo-web (#406)
Add expo-web support to `expo start`
2019-03-06 20:09:10 +02:00
Ville Immonen 1c5f7b0e7f Run Prettier everywhere 2018-11-08 16:59:23 +02:00
Ville Immonen 5c1ca0be51 Move all packages to packages/ folder 2018-08-24 00:02:43 +03:00