@callstack/create-react-native-brownfield 0.0.0-stage → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,17 @@
1
- # Temporary Holding Version
1
+ # @callstack/create-react-native-brownfield
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Scaffolds [React Native Brownfield](https://oss.callstack.com/react-native-brownfield/) packaging targets into an existing React Native Community CLI project (non-Expo).
4
+
5
+ ## Usage
6
+
7
+ From the root of your React Native project:
8
+
9
+ ```bash
10
+ npm create @callstack/react-native-brownfield@latest
11
+ ```
12
+
13
+ Expo projects use the [Expo config plugin](https://oss.callstack.com/react-native-brownfield/docs/getting-started/expo) instead.
14
+
15
+ ## Documentation
16
+
17
+ For what the command changes, its options, and the next steps, visit [our documentation](https://oss.callstack.com/react-native-brownfield/docs/getting-started/rnc-cli).
package/dist/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/dist/main.js ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const commander_1 = require("commander");
5
+ const scaffold_1 = require("@callstack/react-native-brownfield/scaffold");
6
+ const program = new commander_1.Command();
7
+ program
8
+ .name('create-react-native-brownfield')
9
+ .description('Scaffold React Native Brownfield packaging targets in an existing React Native CLI project.')
10
+ .option('-p, --path <path>', 'path to the React Native project', '.')
11
+ .option('--ios-framework-name <name>', 'iOS framework target name (default: BrownfieldLib)')
12
+ .option('--android-module-name <name>', 'Android library module name (default: brownfieldlib)')
13
+ .option('--debug', 'enable verbose logging', false)
14
+ .action(async (opts) => {
15
+ await (0, scaffold_1.scaffoldBrownfieldInRncCliProject)({
16
+ projectRoot: opts.path,
17
+ iosFrameworkName: opts.iosFrameworkName,
18
+ androidModuleName: opts.androidModuleName,
19
+ debug: !!opts.debug,
20
+ });
21
+ });
22
+ program.parse(process.argv);
23
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AAEA,yCAAoC;AAEpC,0EAAgG;AAEhG,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,gCAAgC,CAAC;KACtC,WAAW,CACV,6FAA6F,CAC9F;KACA,MAAM,CAAC,mBAAmB,EAAE,kCAAkC,EAAE,GAAG,CAAC;KACpE,MAAM,CACL,6BAA6B,EAC7B,oDAAoD,CACrD;KACA,MAAM,CACL,8BAA8B,EAC9B,sDAAsD,CACvD;KACA,MAAM,CAAC,SAAS,EAAE,wBAAwB,EAAE,KAAK,CAAC;KAClD,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;IACrB,MAAM,IAAA,4CAAiC,EAAC;QACtC,WAAW,EAAE,IAAI,CAAC,IAAI;QACtB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;QACvC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;QACzC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,49 @@
1
1
  {
2
2
  "name": "@callstack/create-react-native-brownfield",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "5.1.1",
4
+ "license": "MIT",
5
+ "author": "Callstack",
6
+ "bin": "dist/main.js",
7
+ "homepage": "https://github.com/callstack/react-native-brownfield",
8
+ "repository": {
9
+ "url": "git+https://github.com/callstack/react-native-brownfield.git"
10
+ },
11
+ "description": "Scaffold React Native Brownfield in an existing React Native CLI project",
12
+ "scripts": {
13
+ "lint": "eslint .",
14
+ "typecheck": "tsc --noEmit",
15
+ "build": "tsc -p tsconfig.json",
16
+ "dev": "tsc -p tsconfig.json --watch"
17
+ },
18
+ "keywords": [
19
+ "react-native",
20
+ "brownfield",
21
+ "create",
22
+ "scaffold"
23
+ ],
24
+ "files": [
25
+ "src",
26
+ "dist",
27
+ "!**/__tests__",
28
+ "!**/__fixtures__",
29
+ "!**/__mocks__",
30
+ "!**/.*",
31
+ "README.md"
32
+ ],
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "dependencies": {
37
+ "@callstack/react-native-brownfield": "^5.1.1",
38
+ "commander": "^14.0.3"
39
+ },
40
+ "devDependencies": {
41
+ "@types/node": "^25.5.0",
42
+ "eslint": "^9.39.3",
43
+ "globals": "^17.3.0",
44
+ "typescript": "5.9.3"
45
+ },
46
+ "engines": {
47
+ "node": ">=20"
48
+ }
6
49
  }
package/src/main.ts ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { Command } from 'commander';
4
+
5
+ import { scaffoldBrownfieldInRncCliProject } from '@callstack/react-native-brownfield/scaffold';
6
+
7
+ const program = new Command();
8
+
9
+ program
10
+ .name('create-react-native-brownfield')
11
+ .description(
12
+ 'Scaffold React Native Brownfield packaging targets in an existing React Native CLI project.'
13
+ )
14
+ .option('-p, --path <path>', 'path to the React Native project', '.')
15
+ .option(
16
+ '--ios-framework-name <name>',
17
+ 'iOS framework target name (default: BrownfieldLib)'
18
+ )
19
+ .option(
20
+ '--android-module-name <name>',
21
+ 'Android library module name (default: brownfieldlib)'
22
+ )
23
+ .option('--debug', 'enable verbose logging', false)
24
+ .action(async (opts) => {
25
+ await scaffoldBrownfieldInRncCliProject({
26
+ projectRoot: opts.path,
27
+ iosFrameworkName: opts.iosFrameworkName,
28
+ androidModuleName: opts.androidModuleName,
29
+ debug: !!opts.debug,
30
+ });
31
+ });
32
+
33
+ program.parse(process.argv);