Commit Graph
10 Commits
Author SHA1 Message Date
Kim Brandwijk 208354c051 [expo-env-info] prepare repo to convert expo-env-info to esm (#4312) 2022-04-23 02:01:30 +02:00
Will Schurman e958ff848c Update eslint-config-universe to 4.0.0 (#2396) 2020-07-24 15:25:32 -07: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
Ville ImmonenandJuwan Wheatley fbeb6e6002 fix: broken login prompt after trying to send a link from Dev Tools (#1731)
Fixes #1488.

Co-authored-by: Juwan Wheatley <[email protected]>

Co-authored-by: Juwan Wheatley <[email protected]>
2020-03-25 19:46:30 +02: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
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 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