Updating bundle-compile.sh and adding gradle task

This commit is contained in:
Tim Mickel 2016-02-03 14:11:08 -05:00
parent 71d48d56da
commit 5ed3220a34
2 changed files with 8 additions and 1 deletions

View file

@ -52,6 +52,11 @@ task switchToFreeGA(type: Copy) {
into "$appModuleRootFolder"
}
task generateWebpackBundle(type: Exec) {
workingDir '../../../bin'
commandLine './bundle-compile.sh'
}
class GenerateScratchJrPNGsTask extends DefaultTask {
File commonHome = project.file("../../..")
File binDir = project.file("${commonHome}/bin")
@ -86,6 +91,7 @@ task generateScratchJrPNGs(type: GenerateScratchJrPNGsTask)
task cleanScratchJrResources(type: CleanScratchJrResourcesTask)
afterEvaluate {
preBuild.dependsOn generateWebpackBundle
processFreeDebugGoogleServices.dependsOn switchToFreeGA
processFreeReleaseGoogleServices.dependsOn switchToFreeGA
prepareFreeDebugDependencies.dependsOn switchToFree

View file

@ -1,2 +1,3 @@
#!/bin/sh
npm run build;
cd ..;
/usr/local/bin/node ./node_modules/webpack/bin/webpack.js