History log of /expo/packages/expo-module-scripts/bin/expo-module-typecheck (Results 1 – 1 of 1)
Revision Date Author Comments
# 3a15479d 20-Oct-2018 James Ide <[email protected]>

[build] Add "expo-module-scripts" package for common scripts

All Expo module packages and the Expo SDK package need common scripts, like running TypeScript, unit tests, compiling the TS before publi

[build] Add "expo-module-scripts" package for common scripts

All Expo module packages and the Expo SDK package need common scripts, like running TypeScript, unit tests, compiling the TS before publishing, and so on. This introduces a package called "expo-module-scripts" that defines a script called `expo-module` with many commands like `test` and `build`. This helps us use consistent commands with consistent dependency versions (e.g. the same version of TypeScript, Jest, etc...) across all modules so that the Expo SDK is unified.

There are commands for common tasks like `build`, `test`, and `clean`. There are also commands for npm lifecycles like `prepare` and `prepublishOnly`. And there are pass-through commands for common development dependencies like `tsc` and `jest`.

The module is invokable through the `expo-module` program: `expo-module test` for instance. In a module's package.json, define a script named "expo-module" that just runs "expo-module" -- this lets us run `yarn expo-module test|build|clean|...`. Also define lifecycle scripts: `"prepare": "expo-module prepare"` for example. And lastly, define tasks for some common commands for convenience: `"test": "expo-module test"`.

The commands like building and testing run in watch mode since they are meant to be run by humans.

Test plan: used this in the Expo SDK module and verified that CI passes.

show more ...