Skip to content

absolutegalaber/yeoman-gradle-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#yeoman-gradle-plugin

Used to integrate a yeoman build into your gradle build - inspired by yeoman-maven-plugin.

Check out the [yeoman-gradle-plugin-example]

  1. Instructions: Check out [yeoman-gradle-plugin-example].
  2. Execute gradle jettyEclipseRun
  3. Let me know if it breaks :)

##Usage To apply the plugin to your gradle build:

 buildscript {
     repositories {
         maven {
             url 'http://dl.bintray.com/esistegalaber/maven/'
         }
     }
     dependencies {
         classpath 'org.absolutegalaber:yeoman-gradle-plugin:0.3.0'
     }
 }

 apply plugin: 'org.absolutegalaber.yeoman'

##Tasks Checkout 'gradle tasks' to see the teh added tasks. the names of the tasks should actually pretty much explain what is going on...

  • gradle npmInstall - 'npm install'
  • gradle bowerInstall - 'bower install'
  • gradle bowerList - 'bower list'
  • gradle gruntTest - 'grunt test'
  • gradle gruntServe - 'grunt server'
  • gradle grunt - 'grunt build'

##Config Currently there are only 2 Configuration options for the plugin:

  • yeomanDir - The root dir of the yeoman project - defaults to 'yo'
  • useColors - Weather grunt and bower should be called with colored output (defaults to false).
yeoman {
    yeomanDir = 'myApp'
    useColors = true
}

##What remains to be done Toa setup a project simply

  • apply the plugin to your war gradle project and then
  • mkdir yo
  • cd yo
  • yo angular

The plugin does not hook any tasks into your gradle build. To do so I suggest something like this:

build.dependsOn 'grunt'

To include the Angular app within you war:

war {
    from 'yo/dist' // adds a file-set to the root of the archive
}

##Feedback

  • Open Issues
  • Email me: josip.mihelko (at) gmail.com
  • Have mercy with me, this is my first gradle plugin.

About

Gradle plugin acting like the yeoman-maven-plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages