Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Commit

Permalink
regular npm install now
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Dec 10, 2016
1 parent 33b6ddb commit 1abfe71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
18 changes: 2 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,6 @@ apply plugin: 'jacoco'
apply plugin: 'com.moowork.node'
apply from: "$rootDir/gradle/integTest.gradle"

task appNpmInstall(type: NpmTask) {
description = "Installs dependencies from package.json"
workingDir = file("${project.projectDir}/src/main/resources")
args = ['install']
}

task appNpmBuild(type: NpmTask) {
description = "Builds packages from package.json"
workingDir = file("${project.projectDir}/src/main/resources")
args = ['run', 'build']
}

jar {
baseName = 'pollistics'
version = '0.0.1'
Expand All @@ -57,11 +45,9 @@ dependencies {
testCompile("junit:junit")
testCompile(group: 'nl.jqno.equalsverifier', name: 'equalsverifier', version: '2.1.6')
}
build.dependsOn appNpmInstall
build.dependsOn appNpmBuild

bootRun.dependsOn appNpmInstall
bootRun.dependsOn appNpmBuild
build.dependsOn npmInstall
bootRun.dependsOn npmInstall

test {
testLogging {
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"scripts": {
"postinstall": "cd src/main/resources && npm install && npm run build"
}
}

0 comments on commit 1abfe71

Please sign in to comment.