added dependency on npmInstall to ensure protobufjs is installed in bb server frontend

bb-server
Tal Moran 2017-07-03 03:37:32 +03:00
parent 08d9bd6217
commit fa4656f0a9
1 changed files with 3 additions and 0 deletions

View File

@ -45,10 +45,13 @@ task generateProtobufBundle(type: NpmTask) {
setEnvironment([PROTO_FILES: protoFiles.join(" ")]);
generateProtobufBundle.args = ['run', 'protoc']
}
dependsOn npmInstall
}
generateProtobufBundle.description = "Generate the bundle.js/bundle.d.ts files containing compiled protobufs"
npm_run_build.dependsOn(npm_install)
npm_run_build.dependsOn(generateProtobufBundle)
npm_start.dependsOn(generateProtobufBundle)