forked from Catalysts/cat-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
38 lines (30 loc) · 841 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
description = 'cat-angular AngularJS library'
version = '0.0.22'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'be.filipblondeel.gradle:gradle-gulp-plugin:0.1'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2'
}
apply plugin: 'gulp'
print "${project.buildDir}"
node {
version = '0.10.33'
download = true
workDir = file("${project.buildDir}/nodejs")
}
gulp_build.dependsOn << 'npmInstall'
tasks.getByName('gulp_build-production').dependsOn << 'npmInstall'
gulp_test.dependsOn << 'npmInstall'
tasks.create('build', {}).dependsOn << (System.getProperty('prod') == null ? 'gulp_build' : 'gulp_build-production')
tasks.create('test', {}).dependsOn << 'gulp_test'
tasks.create('clean', {
delete 'build'
delete 'node_modules'
delete 'bower_components'
})