Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Implement generators #158

Open
gregberge opened this issue Aug 25, 2017 · 2 comments
Open

Implement generators #158

gregberge opened this issue Aug 25, 2017 · 2 comments

Comments

@gregberge
Copy link
Member

Implement a new command shipit --init that will generate an empty shipitfile:

module.exports = shipit => {
  shipit.initConfig({
    default: {},
    production: {
      servers: 'deploy@myserver.com',
    },
  })

  shipit.task('hello', () => shipit.remote('echo "hello"'))
}

Original idea from @halfdan in #75

@utkarsh-dixit
Copy link

I'd like to work on this. @neoziro Does this generator needs to be interactive? I was thinking it would be a good idea if the user can create and setup shipit configuration using generator without any need to edit the file.

@gregberge
Copy link
Member Author

Hello @utkarsh-dixit, yes interactive is a good idea! Like npm init.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants