History log of /expo/packages/@expo/cli/src/export/resolveOptions.ts (Results 1 – 4 of 4)
Revision Date Author Comments
# 8eba27a6 19-Jul-2023 Cedric van Putten <[email protected]>

fix(cli): allow multiple `--platform` flags in `expo export` (#23621)

# Why

Part of ENG-9308

When creating an export for EAS updates, we need to be able to select
specific platforms with more

fix(cli): allow multiple `--platform` flags in `expo export` (#23621)

# Why

Part of ENG-9308

When creating an export for EAS updates, we need to be able to select
specific platforms with more flexibility than the current `all`. If
users have configured Metro web, we still need to be able to _only_
build for `android` and `ios` (the only 2 supported platforms for EAS
updates at the moment).

Running multiple separate instances of `expo export` doesn't seem like a
great alternative either. On every `expo export` run, the exported
folder is emptied. That would force EAS CLI to stitch this together,
which requires assumptions that we likely want to keep in `expo export`
only.

Unfortunately, we likely have to backport this to older SDK versions, or
we have to add a check in the EAS CLI to warn users about this
incompatibility.

# How

- Made `expo export --platform` a variadic flag
- Updated platform resolution to only return a combination of unique
`android`, `ios`, or `web` values

# Test Plan

See added tests, and to manually test it:

- `$ yarn create expo ./test-export -t tabs@49` (comes with Metro web
configured)
- `$ cd ./test-export`
- `$ yarn expo export -p android -p=ios`
→ _Should export `android` and `ios`_
- `$ yarn expo export -p android -p all`
→ _Should export `android`, `ios`, and `web`_
- `$ yarn expo export -p web -p ios`
→ _Should export `ios` and `web`_

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).

show more ...


# 1a3d836e 22-May-2023 Evan Bacon <[email protected]>

feat(cli): Add `--no-minify` flag to `npx expo export` to prevent minifying output JavaScript. (#22544)

# Why

Nice feature to have for debugging.

# How

- Add the `--no-minify` flag to `npx

feat(cli): Add `--no-minify` flag to `npx expo export` to prevent minifying output JavaScript. (#22544)

# Why

Nice feature to have for debugging.

# How

- Add the `--no-minify` flag to `npx expo export`.
- Forward the flag to all Metro invocations.
- Also noticed that in some places, we were minifying Node.js code which
doesn't matter, so now we always skip minification when creating static
functions.

<!--
How did you build this feature or fix this bug and why?
-->

# Test Plan

- `npx expo export --no-minify` -> JS and CSS is not minified.

---------

Co-authored-by: Expo Bot <[email protected]>

show more ...


# 6d6b81f9 23-Jun-2022 Evan Bacon <[email protected]>

feat(cli): add web support to metro (#17927)

* feat: add web support for metro

* undo patch

* Update index.js

* Update MetroBundlerDevServer.ts

* Add second bundler dev server

* Add d

feat(cli): add web support to metro (#17927)

* feat: add web support for metro

* undo patch

* Update index.js

* Update MetroBundlerDevServer.ts

* Add second bundler dev server

* Add dev loading view to web

* Put feature behind EXPO_USE_METRO_WEB flag

* Move custom config into CLI

* Add support for assets across platforms

* reduce

* Added upstream web support

* Update webTemplate.ts

* Update CHANGELOG.md

* Update instantiateMetro.ts

* Update instantiateMetro.ts

* Update index.js

* Added bundle splitting support

* Update startAsync.ts

* Fixed default settings

* Add ability to copy from public folder

* wip: redirect unmatched routes to `/` on web

* fix fallback api

* Update exportApp.ts

* Update instantiateMetro.ts

* Update exportApp.ts

* clean up handler

* fixup

* clean up

* add web to export test

* Update start-test.ts

* added static serving for web

* Update packages/@expo/cli/CHANGELOG.md

Co-authored-by: Expo Bot <[email protected]>

* Update yarn.lock

lint fix

fix tests

* Update export-test.ts

* added template tests

* Create HistoryFallbackMiddleware-test.ts

* test ManifestMiddleware

* Create ServeStaticMiddleware-test.ts

* refactor multiplatform

* Update ManifestMiddleware-test.ts

* Update withMetroMultiPlatform.ts

* Update for latest metro

* Update packages/@expo/cli/src/export/resolveOptions.ts

Co-authored-by: Expo Bot <[email protected]>

show more ...


# dc51e206 27-Apr-2022 Evan Bacon <[email protected]>

feat(cli): add `export` command (#17034)

* feat(cli): add export command

* Update CHANGELOG.md

* update tests

* Update packages/@expo/cli/CHANGELOG.md

Co-authored-by: Expo Bot <34669131+

feat(cli): add `export` command (#17034)

* feat(cli): add export command

* Update CHANGELOG.md

* update tests

* Update packages/@expo/cli/CHANGELOG.md

Co-authored-by: Expo Bot <[email protected]>

* reduce interface

* refactor

refactor

refactor

* refactor

* remove all merging code

* drop aliases

* Added asset saving tests

* refactor export code up

* Update env.ts

* Drop unused

* added e2e tests

* Dropped --quiet flag

* PR Feedback

* fix tests

* fix export tests

* Update export-test.ts

Co-authored-by: Expo Bot <[email protected]>

show more ...