view core/build.gradle @ 30:2dfba21cd879

sync
author cin
date Wed, 27 Jun 2018 02:46:14 +0300
parents acdcdf1a8d21
children 1dc2fd263b90
line wrap: on
line source

println "version: $project.version $foo"

task prepare(type: Copy) {
    from('src/js')
    from('.') {
        include 'readme.md', 'license', 'history.md', 'package.json'
    }
    into(buildDir)

    doLast {
        exec {
            commandLine 'npm', 'version', version
        }
    }
}

task build(dependsOn: prepare) {
}

task pack(dependsOn: build, type: Exec) {
    workingDir = buildDir

    commandLine 'npm', 'pack'
}