Skip to content

LPS-125853 Switch to our @liferay/jquery-form fork #772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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