Skip to content

Commit 48584d8

Browse files
committed
Remove optional dependencies from package.json, so they don't get installed by default. Version bump.
1 parent be7dd51 commit 48584d8

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,14 @@ You can get PNotify using NPM. (You can also use [jsDelivr](https://www.jsdelivr
8888
```sh
8989
npm install --save pnotify
9090

91-
# or, if you don't want optional dependencies
91+
# If you plan to use Material style:
92+
npm install --save material-design-icons
93+
94+
# If you plan to use the Animate module:
95+
npm install --save animate.css
9296

93-
npm install --save --no-optional pnotify
97+
# If you plan to use the NonBlock module:
98+
npm install --save nonblockjs
9499
```
95100

96101
Inside the pnotify module directory:
@@ -241,7 +246,7 @@ The default, standalone theme, Bright Theme. Include the CSS file in your page:
241246

242247
## Material
243248

244-
The Material Style module. Include the module in your JS, and set it as the default:
249+
The Material Style module. Requires [material-design-icons](https://www.npmjs.com/package/material-design-icons). Include the module in your JS, and set it as the default:
245250

246251
```js
247252
import PNotifyStyleMaterial from 'pnotify/dist/es/PNotifyStyleMaterial.js';

package-lock.json

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pnotify",
3-
"version": "4.0.0-beta.1",
3+
"version": "4.0.0-beta.2",
44
"description": "Beautiful dependency free notifications.",
55
"keywords": [
66
"notice",
@@ -63,10 +63,5 @@
6363
"uglify-es": "3.3.9",
6464
"uglify-js": "^3.4.9"
6565
},
66-
"optionalDependencies": {
67-
"animate.css": "^3.7",
68-
"material-design-icons": "^3.0",
69-
"nonblockjs": "^1.0"
70-
},
7166
"dependencies": {}
7267
}

0 commit comments

Comments
 (0)