在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):craigburke/client-dependencies-gradle开源软件地址(OpenSource Url):https://github.com/craigburke/client-dependencies-gradle开源编程语言(OpenSource Language):Groovy 73.5%开源软件介绍(OpenSource Introduction):Client Dependencies Gradle PluginThis Gradle plugin allows you to declare client side dependencies in build.gradle from bower, npm, yarn or git and with a much clearer dependencies resolution model. This plugin queries the registries directly so it doesn’t require or install node, npm or bower. Getting StartedGradle 2.0buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.craigburke.gradle:client-dependencies:1.4.1'
}
}
apply plugin: 'com.craigburke.client-dependencies' Gradle 2.1 and higherplugins {
id 'com.craigburke.client-dependencies' version '1.4.1'
} TasksThe plugin adds the following tasks to your build:
Declaring dependenciesYou can specify dependencies from different sources (npm, bower or git) and control which files are included in your project by using the DSL shown below.
clientDependencies {
bower {
'jquery'('2.0.0') // <1>
}
npm {
'bootstrap'('3.3.6', exclude: 'jquery') // <2>
'restangular'('1.5.1', transitive: false) // <3>
'angular-animate'('1.5.0', into: 'angular/modules') // <4>
'animate.css'('1.0.0', url:'daneden/animate.css') // <5>
'angular-ui-bootstrap'('1.3.x', from:'dist') { // <6>
include 'ui-bootstrap-tpls.js'
}
}
yarn {
'angular'('1.5.8') // <7>
}
}
全部评论
专题导读
上一篇:spotify/ruler: Gradle plugin which helps you analyze the size of your Android ap ...发布时间:2022-06-14下一篇:gradle/gradle-site-plugin发布时间:2022-06-14热门推荐
热门话题
阅读排行榜
|
请发表评论