Skip to content
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

Merged
merged 1 commit into from
May 6, 2017
Merged

Conversation

jamonholmgren
Copy link
Member

No description provided.

@@ -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 })
Copy link
Member Author

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' })
Copy link
Member Author

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)
Copy link
Member Author

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.

@skellock skellock merged commit 8f8a4b5 into master May 6, 2017
@skellock skellock deleted the boilerplate-gen-issues branch May 6, 2017 23:25
@GantMan
Copy link
Member

GantMan commented May 7, 2017

Jamon, you're doing awesome work!

@jamonholmgren
Copy link
Member Author

you know it

@skellock skellock added the bug label May 10, 2017
@skellock skellock added this to the 2.0 Beta 10 milestone May 10, 2017
@skellock skellock mentioned this pull request May 25, 2017
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants