How do I use this repo to add new Javascript libraries to DNN?
ainsofs opened this issue · 1 comments
ainsofs commented
How do I use this repo to add new Javascript libraries to DNN?
bdukes commented
I see your request in #27 to add select2. Here are the steps I took to do that:
- Clone the repository
- Call
.\NewBowerLibrary.ps1 select2
from PowerShell (passing the name of the package on Bower) - I'm then prompted for the library's friendly name (in this case, it's just capitalized "Select2")
- It opens the files for the new package
- Enter the URL to the release notes and license
- Update the
.dnn
manifest:- Fill in the description (based on the README on GitHub)
- Fill in the CDN URL in the
.dnn
manifest - Uncomment the jQuery
dependency
in the.dnn
manifest and set to the correct version - Look to see that there's a minified version of the JavaScript file, so replace
select2.js
withselect2.min.js
and update two references in the.dnn
manifest - Since there are additional CSS files (beyond just the JavaScript file), I zipped those in a
Resources.zip
file and added<component type="ResourceFile">
section that I copied from another library.
- Commit to the Git repo
- Push
Then, a build will be created on http://teamcity.engagesoftware.com/, and shortly thereafter a release on the project's releases page