Skip to content

Commit

Permalink
Changed default workDir location to be local to project directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sten Roger Sandvik committed Mar 10, 2016
1 parent 9355708 commit f0a591c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Version 0.12 *(not released)*
* Refactored windows-specific logic for npm _(peol)_
* Use temporary repository for resolving node dependencies
* Using 4.4.0 (latest LTS) as default node version
* Changed default workDir location to be local to project directory
* ...

Version 0.11 *(2015-09-26)*
Expand Down
5 changes: 2 additions & 3 deletions src/main/groovy/com/moowork/gradle/node/NodeExtension.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ class NodeExtension
{
final static String NAME = 'node'

final static String CONFIG_NAME = 'nodeDist'

def File workDir

def File nodeModulesDir
Expand All @@ -27,7 +25,8 @@ class NodeExtension

NodeExtension( final Project project )
{
this.workDir = new File( project.gradle.gradleUserHomeDir, 'nodejs' )
def cacheDir = new File( project.projectDir, '.gradle' )
this.workDir = new File( cacheDir, 'nodejs' )
this.nodeModulesDir = project.projectDir
}

Expand Down

0 comments on commit f0a591c

Please sign in to comment.