mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Updating bundle-compile.sh and adding gradle task
This commit is contained in:
parent
71d48d56da
commit
5ed3220a34
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
#!/bin/sh
|
||||
npm run build;
|
||||
cd ..;
|
||||
/usr/local/bin/node ./node_modules/webpack/bin/webpack.js
|
||||
|
|
Loading…
Reference in a new issue