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

How can I test local changes to the install flow? #10

Open
marktani opened this issue Jan 9, 2018 · 1 comment
Open

How can I test local changes to the install flow? #10

marktani opened this issue Jan 9, 2018 · 1 comment
Labels
question Further information is requested

Comments

@marktani
Copy link
Contributor

marktani commented Jan 9, 2018

For example, right now I want to add a new folder: string parameter to the deploy command, for the react-fullstack-graphql-basic boilerplate:

- export async function deploy(silent: boolean) {
+ export async function deploy(silent: boolean, folder = '') {
  const options = { stdio: silent ? 'pipe' : 'inherit' }

- return spawn('graphcool', [`deploy`], options)
+ return spawn('graphcool', [`deploy ${folder}`], options)
    .then(res => {
      if (!silent) {
        console.log(res)
      }
    })
    .catch(err => console.error(err))
}

but before pushing I'd like to actually test that this does what I want 🙂

I know that I can use yarn link usually, but I typically invoke this install flow using graphql create, which doesn't use my local dependency 🤔

@marktani marktani added the question Further information is requested label Jan 9, 2018
@kbrandwijk
Copy link
Member

That's a bit tricky right now. What you could do is run graphql create with the currently broken --no-install (oops...), link your local boilerplate-install version in the .install folder, then create a small test script that calls .install\index.js. Because --no-install was not added correctly, the only alternative is to break the create command while it's install dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants