forked from react-native-community/react-native-circleci-orb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This command lets you bundle the React Native Javascript files. Closes #8
- Loading branch information
1 parent
595e2d4
commit 464d661
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
description: Bundles all JS files. | ||
|
||
parameters: | ||
platform: | ||
description: The platform to build for. Usually one of "ios" or "android". | ||
type: string | ||
bundle_output: | ||
description: The location to output the bundle to. | ||
type: string | ||
asset_dest: | ||
description: The location to output assets to. | ||
type: string | ||
entry_file: | ||
description: The entry file for the bundle. Defaults to "index.js". | ||
type: string | ||
default: "index.js" | ||
dev: | ||
description: If we should bundle in dev mode. Defaults to "false" | ||
type: boolean | ||
default: false | ||
|
||
steps: | ||
- run: | ||
name: Bundle React Native JS | ||
command: react-native bundle --platform <<parameters.platform>> --bundle-output <<parameters.bundle_output>> --assets-dest <<parameters.asset_dest>> --entry-file <<parameters.entry_file>> --dev <<parameters.dev>> |