Skip to content
Closed
Show file tree
Hide file tree
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
17 changes: 17 additions & 0 deletions modules/apps/frontend-js/frontend-js-jquery-web/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import com.liferay.gradle.util.copy.StripPathSegmentsAction

task buildBootstrapJS(type: Copy)
task buildJQuery(type: Copy)
task buildJQueryForm(type: Copy)
task buildPopperJS(type: Copy)

File jsDestinationDir = file("tmp/META-INF/resources")
Expand Down Expand Up @@ -39,6 +40,21 @@ buildJQuery {
into jqueryDestinationDir
}

buildJQueryForm {
dependsOn buildJQuery

eachFile new StripPathSegmentsAction(2)

from npmInstall.nodeModulesDir

include "@liferay/jquery-form/jquery.form.js"

includeEmptyDirs = false
into jqueryDestinationDir

rename "jquery.form.js", "form.js"
}

buildPopperJS {
dependsOn buildJQuery

Expand All @@ -56,6 +72,7 @@ buildPopperJS {
classes {
dependsOn buildBootstrapJS
dependsOn buildJQuery
dependsOn buildJQueryForm
dependsOn buildPopperJS
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"@liferay/jquery-form": "3.51.0-liferay.1",
"bootstrap": "4.3.1",
"jquery": "3.5.1",
"popper.js": "1.14.7"
Expand Down
Loading