Skip to content

Commit

Permalink
refactor: nudge indenting of options in logging (#436)
Browse files Browse the repository at this point in the history
* refactor: nudge indenting of options in logging

  also fixes minor misalignment that was introduced
  in 8bfc561
  (PR #431)

* update test snapshot
  • Loading branch information
brodybits committed Mar 16, 2021
1 parent 8f8a9c5 commit 72ca1c5
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 125 deletions.
34 changes: 17 additions & 17 deletions lib/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
",
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
",
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
",
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
",
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
",
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
",
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
",
],
},
Expand Down

0 comments on commit 72ca1c5

Please sign in to comment.