Skip to content

Commit

Permalink
upgrade gradle node plugin to pick up srs/gradle-node-plugin#146
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyun Jeong committed Jul 6, 2017
1 parent 1f7f95a commit 22ab6a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ buildscript {

plugins {
id 'com.jfrog.bintray' version '1.2'
id 'com.moowork.node' version '1.2.0'
}

apply plugin: 'com.gradle.plugin-publish'
Expand All @@ -30,13 +31,16 @@ repositories {
jcenter()
mavenLocal()
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}

dependencies {
compile gradleApi()
compile localGroovy()

compile 'com.moowork.gradle:gradle-node-plugin:0.11'
compile 'com.moowork.gradle:gradle-node-plugin:1.2.0'

testCompile('org.spockframework:spock-core:0.7-groovy-2.0')
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = 1.2-SNAPSHOTname = gradle-grails-sass
version = 1.2name = gradle-grails-sass
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.tacitknowledge.gradle.sass

import com.moowork.gradle.node.task.NpmTask
import com.moowork.gradle.node.npm.NpmTask

class InstallSass extends NpmTask
{
Expand All @@ -11,7 +11,7 @@ class InstallSass extends NpmTask

project.afterEvaluate{
workingDir = project.node.nodeModulesDir

def pkgName = project.sass.version ? "node-sass@${project.sass.version}" : 'node-sass'
args = ['install', pkgName]

Expand Down

0 comments on commit 22ab6a9

Please # to comment.