• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

trecloux/yeoman-maven-plugin: Maven plugin for npm / bower / grunt-gulp build

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

trecloux/yeoman-maven-plugin

开源软件地址(OpenSource Url):

https://github.com/trecloux/yeoman-maven-plugin

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

#yeoman-maven-plugin

Use this plugin to integrate the yeoman build into your maven build.

Prerequisites

  • npm, bower, grunt and npm-cache(only needed if useNpmCache parameter enabled)
  • maven 3

Launched commands (default setup)

  • npm install
  • bower install --no-color
  • grunt test --no-color
  • grunt build --no-color

Default layout

Yeoman application is placed into the yo directory at the top of the project hierarchy.

pom.xml
 - src
   - main
     - java
     - webapp
     - …
   - test
     - ..
 - yo
   package.json
   component.json
   Gruntfile.js
   - app
     index.html
     ...
   - test
     ...
   - dist
     ...

Usage

Plugin declaration :

<plugin>
	<groupId>com.github.trecloux</groupId>
    <artifactId>yeoman-maven-plugin</artifactId>
    <version>0.5</version>
    <executions>
    	<execution>
        	<goals>
            	<goal>build</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Add the yeoman dist directory to the war file

<plugin>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.3</version>
			<configuration>
        <webResources>
            <resource>
                <directory>yo/dist</directory>
            </resource>
        </webResources>
    </configuration>
</plugin>

Configure the clean plugin in order to delete generated directories

<plugin>
    <artifactId>maven-clean-plugin</artifactId>
    <version>2.5</version>
    <configuration>
        <filesets>
            <fileset>
                <directory>yo/dist</directory>
            </fileset>
            <fileset>
                <directory>yo/.tmp</directory>
            </fileset>
            <fileset>
            	<directory>yo/app/components</directory>
            </fileset>
            <fileset>
              <directory>yo/node_modules</directory>
            </fileset>
        </filesets>
    </configuration>
</plugin>

Changelog

V0.5 2015-08-19

  • Add bowerVariant parameter to be able to use an alternative to bower : bower-act (Thanks Thorsten Pohl )

V0.4 2015-02-15

  • Add buildTool parameter to be able to use an alternative to grunt : gulp the gruntTestArgs and gruntInstallArgs were renamed to testArgs and buildArgs. Previous parameters are still usable but deprecated (Thanks Lukas Peleska)

V0.3 2015-02-03

  • Add skipBuild parameter to skip the grunt build (yo.build.skip system propery) (Thanks Pete Johanson)

V0.2 2014-03-17

  • Execute grunt test before grunt build. Tests can be skipped with skipTests parameter (yo.test.skip system property)
  • Rename gruntInstallArgs parameter to gruntBuildArgs
  • Logging executed commands
  • Add skip parameter to skip the plugin execution (yo.skip system property) to skip the build (Thanks Brad Sneade)
  • Add new parameters :
    • npmInstallArgs for npm arguments(default value : install)
    • bowerInstallArgs for bower arguments (default value : install --no-color)
    • gruntTestArgs for grunt build arguments (default value : test --no-color)
    • gruntInstallArgs for grunt test arguments (default value : build --no-color)

V0.1 2013-04-25

  • Initial version

License

This project is licensed under Apache 2.0 License




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
webyom/gulp-html-i18n: Html i18n发布时间:2022-06-21
下一篇:
gkarev/gulp-sass: for study发布时间:2022-06-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap