Hi All,
I'm trying to add a 3rd party library to my Oracle JET application v~4.2.0.
I followed the steps mentioned in Oracle docs
First step of installing the node module works fine and I can see the library added under node_modules folder
======================================
$ npm install upper-case --save
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ upper-case@1.1.3
added 1 package in 17.855s
Note: 'upper-case' lib is just for illustration purpose.
In oraclejet-build.js, added the below content
===============================
copyCustomLibsToStaging: {
fileList: [
{
cwd:'node_modules/upper-case/',
src: ['*'],
dest: 'web/js/libs/upper-case'
}
]
},
In the js directory updated the js/main-release-paths.json file to include the new library.
=========================
"upper-case": "libs/upper-case/upper-case"
Later when I run the oraclejet-build task the below info is displayed onto the console
===============================
Running "oraclejet-build" task
Oracle JET Grunt plugin
Processing Grunt command...
JET Warning: Missing platform. Default to web.
Oracle JET Tooling
cleaning staging path.....
copy files to staging directory.....
copy finished...
copy library files to staging directory.....
copy finished...
optimizing svg into SVG sprites.....
svg task finished...
compiling sass....
sass compile finished...
running theme injection task.....
indexHtml theme path injection finished..
running theme copy task.....
theme copy finished...
running injection task.....
mainJs paths injection finished..
Done.
But I don't see the library getting added to my libs folder.
Can someone guide me how to achieve this requirement or let me know in case I've missed any step.
Thanks,
Gaurav