Skip to content

timdp/grunt-spawn-sequence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-spawn-sequence

npm Dependencies Build Status JavaScript Standard Style

Runs grunt.util.spawn() in sequence.

Example

grunt.initConfig({
  spawn_sequence: {
    git_commit:
      options: {
        commands: [
          {
            name: 'Get the name of the current branch',
            cmd: 'git',
            args: ['rev-parse', '--abbrev-ref', 'HEAD']
          },
          {
            name: 'Verify that we are on the master branch and commit',
            before: function (prevOutput) {
              return (prevOutput === 'master')
            },
            cmd: 'git',
            args: ['commit', '-a', '-m', 'Commit message']
          }
        ]
      }
    }
  }
})

Author

Tim De Pauw

License

MIT

About

Runs grunt.util.spawn() in sequence.

Resources

License

Stars

Watchers

Forks

Packages

No packages published