Skip to content

Commit

Permalink
pkp/pkp-lib#9753 Copy jquery, jquery-ui, jquery-validation and chart.…
Browse files Browse the repository at this point in the history
…js files from node_modules to lib/pkp vendor and js/plugins folder
  • Loading branch information
blesildaramirez committed Jul 12, 2024
1 parent 06c0ed7 commit 6106c75
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,31 @@ module.exports = {
{
from: 'lib/ui-library/public/styles/tinymce',
to: '../lib/pkp/styles/tinymce'
}
},

// copy jquery and jquery-ui from node_modules to lib/pkp composer's vendor dir
{
from: 'node_modules/jquery/dist/',
to: '../lib/pkp/lib/vendor/components/jquery/',
},
{
from: 'node_modules/jquery-ui/dist/**/*.js',
to: '../lib/pkp/lib/vendor/components/jqueryui/[name][ext]',
},

// copy jquery-validation and Chart.js from node_modules to lib/pkp/js/lib
{
from: 'node_modules/jquery-validation/dist/',
to: '../lib/pkp/js/lib/jquery/plugins/validate/',
},
{
from: 'node_modules/chart.js/dist/Chart.js',
to: '../lib/pkp/js/lib/[name][ext]',
},
{
from: 'node_modules/chart.js/dist/Chart.min.js',
to: '../lib/pkp/js/lib/[name][ext]',
},
]
})
],
Expand Down

0 comments on commit 6106c75

Please sign in to comment.