Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ abstract class BundleJsAndAssetsTask : Exec() {
@get:OutputDirectory lateinit var jsSourceMapsDir: File
@get:OutputFile lateinit var jsSourceMapsFile: File

@TaskAction
fun run() {
override fun exec() {
cleanOutputDirectories()
executeBundleCommand()
configureBundleCommand()
super.exec()
}

private fun cleanOutputDirectories() {
Expand All @@ -47,7 +47,7 @@ abstract class BundleJsAndAssetsTask : Exec() {
jsSourceMapsDir.recreateDir()
}

private fun executeBundleCommand() {
private fun configureBundleCommand() {
workingDir(reactRoot)

@Suppress("SpreadOperator")
Expand All @@ -69,7 +69,5 @@ abstract class BundleJsAndAssetsTask : Exec() {
"--sourcemap-output",
jsSourceMapsFile,
*extraArgs.toTypedArray()))

super.exec()
}
}