Skip to content

Commit 7f2b3b7

Browse files
committed
Update some more libraries to npm
- numeral - pepjs - picturefill - pubsub-js - respond.js - responsive-tabs - router.js - select2
1 parent 06eb627 commit 7f2b3b7

29 files changed

+166
-485
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,17 @@ License
141141

142142
This code is released under the [MIT license](LICENSE.md).
143143
However, the individual libraries are licensed by their respective owners.
144+
145+
146+
How to Migrate a Library from Bower to npm
147+
==========================================
148+
1. Find library on https://npms.io/
149+
2. Install with Yarn, e.g. `yarn add routerjs`
150+
3. Remove old `Resources.zip` and JS files
151+
4. Add `dnn-library.json` file
152+
5. Find files to publish in `node_modules` folder
153+
6. Update paths in `dnn-library.json` file
154+
7. Optionally ensure version is correct
155+
8. Optionally add `Resources.zip` section to `.dnn` file
156+
9. Optionally update CDN URL
157+
10. Don't do any of this, because it's automated, hopefully :-)

numeral_2.0.6/dnn-library.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"files": ["node_modules/numeral/min/numeral.min.js"],
3+
"resources": [
4+
"node_modules/numeral/min/**",
5+
"!node_modules/numeral/min/numeral.min.js"
6+
]
7+
}

numeral_2.0.6/numeral.dnn

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
</jsfile>
3636
</jsfiles>
3737
</component>
38+
<component type="ResourceFile">
39+
<resourceFiles>
40+
<basePath>Resources\Libraries\numeral\02_00_06</basePath>
41+
<resourceFile>
42+
<name>Resources.zip</name>
43+
</resourceFile>
44+
</resourceFiles>
45+
</component>
3846
</components>
3947
</package>
4048
</packages>

numeral_2.0.6/numeral.min.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,19 @@
99
"package": "gulp"
1010
},
1111
"dependencies": {
12+
"bootstrap": "^3.3.7",
13+
"jquery": "^3.2.1",
1214
"jquery.tipsy": "^1.0.3",
1315
"jszip": "^3.1.5",
16+
"numeral": "^2.0.6",
17+
"pepjs": "^0.4.3",
18+
"picturefill": "^3.0.2",
19+
"pubsub-js": "^1.5.7",
1420
"quill": "^1.3.4",
21+
"respond.js": "^1.4.2",
22+
"responsive-tabs": "^1.6.3",
23+
"routerjs": "^1.0.10",
24+
"select2": "4.0.5",
1525
"spectrum-colorpicker": "^1.8.0",
1626
"swiper": "^4.0.5",
1727
"systemjs": "^0.20.19",

pepjs_0.4.3/dnn-library.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"files": ["node_modules/pepjs/dist/pep.min.js"]
3+
}

0 commit comments

Comments
 (0)