diff --git a/lib/lib.js b/lib/lib.js index 760026d5..b48592e7 100644 --- a/lib/lib.js +++ b/lib/lib.js @@ -103,25 +103,25 @@ const generateWithNormalizedOptions = ({ info( `CREATE new React Native module with the following options: - name: ${name} - full package name: ${packageName} - is view: ${view} - object class name: ${objectClassName} - Android nativePackageId: ${nativePackageId} - platforms: ${platforms} - Apple tvosEnabled: ${tvosEnabled} - authorName: ${authorName} - authorEmail: ${authorEmail} - author githubAccount: ${githubAccount} - license: ${license} - useAppleNetworking: ${useAppleNetworking} + name: ${name} + full package name: ${packageName} + is view: ${view} + object class name: ${objectClassName} + Android nativePackageId: ${nativePackageId} + platforms: ${platforms} + Apple tvosEnabled: ${tvosEnabled} + authorName: ${authorName} + authorEmail: ${authorEmail} + author githubAccount: ${githubAccount} + license: ${license} + useAppleNetworking: ${useAppleNetworking} ` + (generateExample ? ` - generateExample: ${generateExample} - exampleFileLinkage: ${exampleFileLinkage} - exampleName: ${exampleName} -exampleReactNativeTemplate: ${exampleReactNativeTemplate} - writeExamplePodfile: ${writeExamplePodfile} + generateExample: ${generateExample} + exampleFileLinkage: ${exampleFileLinkage} + exampleName: ${exampleName} + exampleReactNativeTemplate: ${exampleReactNativeTemplate} + writeExamplePodfile: ${writeExamplePodfile} ` : ``)); // QUICK LOCAL INJECTION overwite of existing execSync / commandSync call from diff --git a/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/bogus-name/__snapshots__/cli-command-with-bogus-platforms-name.test.js.snap b/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/bogus-name/__snapshots__/cli-command-with-bogus-platforms-name.test.js.snap index aee2185c..42e78253 100644 --- a/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/bogus-name/__snapshots__/cli-command-with-bogus-platforms-name.test.js.snap +++ b/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/bogus-name/__snapshots__/cli-command-with-bogus-platforms-name.test.js.snap @@ -12,18 +12,18 @@ Array [ "info": Array [ "CREATE new React Native module with the following options: - name: alice-bobbi - full package name: react-native-alice-bobbi - is view: false - object class name: AliceBobbi - Android nativePackageId: com.reactlibrary - platforms: bogus - Apple tvosEnabled: false - authorName: Your Name - authorEmail: yourname@email.com - author githubAccount: github_account - license: MIT - useAppleNetworking: false + name: alice-bobbi + full package name: react-native-alice-bobbi + is view: false + object class name: AliceBobbi + Android nativePackageId: com.reactlibrary + platforms: bogus + Apple tvosEnabled: false + authorName: Your Name + authorEmail: yourname@email.com + author githubAccount: github_account + license: MIT + useAppleNetworking: false ", ], }, diff --git a/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/empty-string/__snapshots__/cli-command-with-empty-platforms-string.test.js.snap b/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/empty-string/__snapshots__/cli-command-with-empty-platforms-string.test.js.snap index 7423653d..ddb7ec01 100644 --- a/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/empty-string/__snapshots__/cli-command-with-empty-platforms-string.test.js.snap +++ b/tests/with-mocks/cli/command/action-func/with-logging/with-bogus-platforms/empty-string/__snapshots__/cli-command-with-empty-platforms-string.test.js.snap @@ -12,18 +12,18 @@ Array [ "info": Array [ "CREATE new React Native module with the following options: - name: alice-bobbi - full package name: react-native-alice-bobbi - is view: false - object class name: AliceBobbi - Android nativePackageId: com.reactlibrary - platforms: - Apple tvosEnabled: false - authorName: Your Name - authorEmail: yourname@email.com - author githubAccount: github_account - license: MIT - useAppleNetworking: false + name: alice-bobbi + full package name: react-native-alice-bobbi + is view: false + object class name: AliceBobbi + Android nativePackageId: com.reactlibrary + platforms: + Apple tvosEnabled: false + authorName: Your Name + authorEmail: yourname@email.com + author githubAccount: github_account + license: MIT + useAppleNetworking: false ", ], }, diff --git a/tests/with-mocks/cli/command/action-func/with-logging/with-error/__snapshots__/cli-command-with-logging-with-error.test.js.snap b/tests/with-mocks/cli/command/action-func/with-logging/with-error/__snapshots__/cli-command-with-logging-with-error.test.js.snap index 0f56d359..14adcc70 100644 --- a/tests/with-mocks/cli/command/action-func/with-logging/with-error/__snapshots__/cli-command-with-logging-with-error.test.js.snap +++ b/tests/with-mocks/cli/command/action-func/with-logging/with-error/__snapshots__/cli-command-with-logging-with-error.test.js.snap @@ -12,18 +12,18 @@ Array [ "info": Array [ "CREATE new React Native module with the following options: - name: alice-bobbi - full package name: react-native-alice-bobbi - is view: false - object class name: AliceBobbi - Android nativePackageId: com.reactlibrary - platforms: android,ios - Apple tvosEnabled: false - authorName: Your Name - authorEmail: yourname@email.com - author githubAccount: github_account - license: MIT - useAppleNetworking: false + name: alice-bobbi + full package name: react-native-alice-bobbi + is view: false + object class name: AliceBobbi + Android nativePackageId: com.reactlibrary + platforms: android,ios + Apple tvosEnabled: false + authorName: Your Name + authorEmail: yourname@email.com + author githubAccount: github_account + license: MIT + useAppleNetworking: false ", ], }, diff --git a/tests/with-mocks/cli/program/with-example/with-logging/__snapshots__/cli-program-with-example-with-logging.test.js.snap b/tests/with-mocks/cli/program/with-example/with-logging/__snapshots__/cli-program-with-example-with-logging.test.js.snap index dee9969b..3abca981 100644 --- a/tests/with-mocks/cli/program/with-example/with-logging/__snapshots__/cli-program-with-example-with-logging.test.js.snap +++ b/tests/with-mocks/cli/program/with-example/with-logging/__snapshots__/cli-program-with-example-with-logging.test.js.snap @@ -206,24 +206,24 @@ Array [ "info": Array [ "CREATE new React Native module with the following options: - name: test-package - full package name: react-native-test-package - is view: false - object class name: TestPackage - Android nativePackageId: com.reactlibrary - platforms: android,ios - Apple tvosEnabled: false - authorName: Your Name - authorEmail: yourname@email.com - author githubAccount: github_account - license: MIT - useAppleNetworking: false - - generateExample: true - exampleFileLinkage: false - exampleName: example -exampleReactNativeTemplate: react-native@latest - writeExamplePodfile: false + name: test-package + full package name: react-native-test-package + is view: false + object class name: TestPackage + Android nativePackageId: com.reactlibrary + platforms: android,ios + Apple tvosEnabled: false + authorName: Your Name + authorEmail: yourname@email.com + author githubAccount: github_account + license: MIT + useAppleNetworking: false + + generateExample: true + exampleFileLinkage: false + exampleName: example + exampleReactNativeTemplate: react-native@latest + writeExamplePodfile: false ", ], }, diff --git a/tests/with-mocks/lib/create/with-example/with-logging/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap b/tests/with-mocks/lib/create/with-example/with-logging/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap index 4f982297..6a7da134 100644 --- a/tests/with-mocks/lib/create/with-example/with-logging/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap +++ b/tests/with-mocks/lib/create/with-example/with-logging/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap @@ -12,24 +12,24 @@ Array [ "info": Array [ "CREATE new React Native module with the following options: - name: alice-bobbi - full package name: react-native-alice-bobbi - is view: false - object class name: AliceBobbi - Android nativePackageId: com.reactlibrary - platforms: android,ios - Apple tvosEnabled: false - authorName: Your Name - authorEmail: yourname@email.com - author githubAccount: github_account - license: MIT - useAppleNetworking: false - - generateExample: true - exampleFileLinkage: false - exampleName: example -exampleReactNativeTemplate: react-native@latest - writeExamplePodfile: false + name: alice-bobbi + full package name: react-native-alice-bobbi + is view: false + object class name: AliceBobbi + Android nativePackageId: com.reactlibrary + platforms: android,ios + Apple tvosEnabled: false + authorName: Your Name + authorEmail: yourname@email.com + author githubAccount: github_account + license: MIT + useAppleNetworking: false + + generateExample: true + exampleFileLinkage: false + exampleName: example + exampleReactNativeTemplate: react-native@latest + writeExamplePodfile: false ", ], }, diff --git a/tests/with-mocks/lib/create/with-example/with-logging/with-error/__snapshots__/with-yarn-error-logging.test.js.snap b/tests/with-mocks/lib/create/with-example/with-logging/with-error/__snapshots__/with-yarn-error-logging.test.js.snap index baf18c88..a3866282 100644 --- a/tests/with-mocks/lib/create/with-example/with-logging/with-error/__snapshots__/with-yarn-error-logging.test.js.snap +++ b/tests/with-mocks/lib/create/with-example/with-logging/with-error/__snapshots__/with-yarn-error-logging.test.js.snap @@ -12,24 +12,24 @@ Array [ "info": Array [ "CREATE new React Native module with the following options: - name: alice-bobbi - full package name: react-native-alice-bobbi - is view: false - object class name: AliceBobbi - Android nativePackageId: com.reactlibrary - platforms: android,ios - Apple tvosEnabled: false - authorName: Your Name - authorEmail: yourname@email.com - author githubAccount: github_account - license: MIT - useAppleNetworking: false - - generateExample: true - exampleFileLinkage: false - exampleName: example -exampleReactNativeTemplate: react-native@latest - writeExamplePodfile: false + name: alice-bobbi + full package name: react-native-alice-bobbi + is view: false + object class name: AliceBobbi + Android nativePackageId: com.reactlibrary + platforms: android,ios + Apple tvosEnabled: false + authorName: Your Name + authorEmail: yourname@email.com + author githubAccount: github_account + license: MIT + useAppleNetworking: false + + generateExample: true + exampleFileLinkage: false + exampleName: example + exampleReactNativeTemplate: react-native@latest + writeExamplePodfile: false ", ], }, diff --git a/tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap b/tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap index d72328fc..1f0e59d6 100644 --- a/tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap +++ b/tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap @@ -6,24 +6,24 @@ Array [ "info": Array [ "CREATE new React Native module with the following options: - name: alice-bobbi - full package name: react-native-alice-bobbi - is view: false - object class name: AliceBobbi - Android nativePackageId: com.alicebits - platforms: android,ios - Apple tvosEnabled: true - authorName: Alice - authorEmail: contact@alice.me - author githubAccount: alicebits - license: ISC - useAppleNetworking: false - - generateExample: true - exampleFileLinkage: true - exampleName: demo -exampleReactNativeTemplate: react-native@npm:react-native-tvos - writeExamplePodfile: false + name: alice-bobbi + full package name: react-native-alice-bobbi + is view: false + object class name: AliceBobbi + Android nativePackageId: com.alicebits + platforms: android,ios + Apple tvosEnabled: true + authorName: Alice + authorEmail: contact@alice.me + author githubAccount: alicebits + license: ISC + useAppleNetworking: false + + generateExample: true + exampleFileLinkage: true + exampleName: demo + exampleReactNativeTemplate: react-native@npm:react-native-tvos + writeExamplePodfile: false ", ], },