Skip to content

Commit 464d661

Browse files
LuisRodriguezLDmatt-oakes
authored andcommitted
feat: Add a bundle command (#8 by @sunilchalla)
This command lets you bundle the React Native Javascript files. Closes #8
1 parent 595e2d4 commit 464d661

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/commands/bundle.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
description: Bundles all JS files.
2+
3+
parameters:
4+
platform:
5+
description: The platform to build for. Usually one of "ios" or "android".
6+
type: string
7+
bundle_output:
8+
description: The location to output the bundle to.
9+
type: string
10+
asset_dest:
11+
description: The location to output assets to.
12+
type: string
13+
entry_file:
14+
description: The entry file for the bundle. Defaults to "index.js".
15+
type: string
16+
default: "index.js"
17+
dev:
18+
description: If we should bundle in dev mode. Defaults to "false"
19+
type: boolean
20+
default: false
21+
22+
steps:
23+
- run:
24+
name: Bundle React Native JS
25+
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 commit comments

Comments
 (0)