-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes some generated boilerplate issues #1019
Conversation
@@ -33,7 +34,7 @@ async function install (context) { | |||
|
|||
// attempt to install React Native or die trying | |||
// this will also chdir into the new directory | |||
const rnInstall = await reactNative.install({ name, skipJest: true }) | |||
const rnInstall = await reactNative.install({ name, version: REACT_NATIVE_VERSION }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass in RN version here, don't skip Jest tests.
@@ -80,7 +81,7 @@ async function install (context) { | |||
// pass along the debug flag if we're running in that mode | |||
const debugFlag = parameters.options.debug ? '--debug' : '' | |||
|
|||
await system.spawn(`ignite add <%= props.pluginName %> ${debugFlag}`, { stdio: 'inherit' }) | |||
await system.spawn(`ignite add ${__dirname} ${debugFlag}`, { stdio: 'inherit' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important change here -- otherwise, can't test boilerplate from path.
@@ -16,5 +16,5 @@ | |||
import { AppRegistry } from 'react-native' | |||
import App from './App/App.js' | |||
|
|||
AppRegistry.registerComponent('<%= props.name %>', () => App) | |||
AppRegistry.registerComponent('<%- '<' + '%= props.name %' + '>' %>', () => App) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to retain the <%= props.name %> after we generate this, so have to break it up like this.
Jamon, you're doing awesome work! |
No description provided.