Skip to content

Commit

Permalink
feat: Add a bundle command (react-native-community#8 by @sunilchalla)
Browse files Browse the repository at this point in the history
This command lets you bundle the React Native Javascript files.

Closes react-native-community#8
  • Loading branch information
LuisRodriguezLD authored and matt-oakes committed Jan 4, 2020
1 parent 595e2d4 commit 464d661
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/commands/bundle.yml
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>>

0 comments on commit 464d661

Please sign in to comment.