avalynx-alert 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,18 +41,18 @@ Then, include AvalynxAlert:
41
41
 
42
42
  Replace `path/to/avalynx-alert.js` and `path/to/avalynx-alert.css` with the actual path to the files in your project.
43
43
 
44
- ## Installation via jsDelivr
44
+ ## Installation via jsDelivr ([Link](https://cdn.jsdelivr.net/npm/avalynx-alert/))
45
45
 
46
46
  AvalynxAlert is also available via [jsDelivr](https://www.jsdelivr.com/). You can include it in your project like this:
47
47
 
48
48
  ```html
49
- <link href="https://cdn.jsdelivr.net/npm/avalynx-alert@0.0.8/dist/css/avalynx-alert.css" rel="stylesheet">
50
- <script src="https://cdn.jsdelivr.net/npm/avalynx-alert@0.0.8/dist/js/avalynx-alert.js"></script>
49
+ <link href="https://cdn.jsdelivr.net/npm/avalynx-alert@0.0.9/dist/css/avalynx-alert.css" rel="stylesheet">
50
+ <script src="https://cdn.jsdelivr.net/npm/avalynx-alert@0.0.9/dist/js/avalynx-alert.js"></script>
51
51
  ```
52
52
 
53
53
  Make sure to also include Bootstrap's JS/CSS in your project to ensure AvalynxAlert displays correctly.
54
54
 
55
- ## Installation via NPM
55
+ ## Installation via NPM ([Link](https://www.npmjs.com/package/avalynx-alert))
56
56
 
57
57
  AvalynxAlert is also available as a npm package. You can add it to your project with the following command:
58
58
 
@@ -84,6 +84,34 @@ import 'avalynx-alert/dist/css/avalynx-alert.min.css';
84
84
 
85
85
  Make sure to also include Bootstrap's JS/CSS in your project to ensure AvalynxAlert displays correctly.
86
86
 
87
+ ## Installation via Symfony AssetComposer
88
+
89
+ More information about the Symfony AssetComposer Bundle can be found [here](https://github.com/jbsnewmedia/asset-composer-bundle).
90
+
91
+ ```twig
92
+ {% do addAssetComposer('avalynx/avalynx-alert/dist/css/avalynx-alert.css') %}
93
+ {% do addAssetComposer('avalynx/avalynx-alert/dist/js/avalynx-alert.js') %}
94
+ ```
95
+
96
+ Make sure to also include Bootstrap's JS/CSS in your project to ensure AvalynxAlert displays correctly.
97
+
98
+ ## Installation via Composer ([Link](https://packagist.org/packages/avalynx/avalynx-alert))
99
+
100
+ AvalynxAlert is also available as a Composer package. You can add it to your project with the following command:
101
+
102
+ ```bash
103
+ composer require avalynx/avalynx-alert
104
+ ```
105
+
106
+ After installing, you can import AvalynxAlert into your HTML file like this:
107
+
108
+ ```html
109
+ <link href="vendor/avalynx/avalynx-alert/dist/css/avalynx-alert.css" rel="stylesheet">
110
+ <script src="vendor/avalynx/avalynx-alert/dist/js/avalynx-alert.js"></script>
111
+ ```
112
+
113
+ Make sure to also include Bootstrap's JS/CSS in your project to ensure AvalynxAlert displays correctly.
114
+
87
115
  ## Usage
88
116
 
89
117
  To create an alert, simply instantiate a new `AvalynxAlert` object with the desired options:
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * A simple alert system for web applications. Based on Bootstrap >=5.3 without any framework dependencies.
5
5
  *
6
- * @version 0.0.8
6
+ * @version 0.0.9
7
7
  * @license MIT
8
8
  * @author https://github.com/avalynx/avalynx-alert/graphs/contributors
9
9
  * @website https://github.com/avalynx/
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * A simple alert system for web applications. Based on Bootstrap >=5.3 without any framework dependencies.
5
5
  *
6
- * @version 0.0.8
6
+ * @version 0.0.9
7
7
  * @license MIT
8
8
  * @author https://github.com/avalynx/avalynx-alert/graphs/contributors
9
9
  * @website https://github.com/avalynx/
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * A simple alert system for web applications. Based on Bootstrap >=5.3 without any framework dependencies.
5
5
  *
6
- * @version 0.0.8
6
+ * @version 0.0.9
7
7
  * @license MIT
8
8
  * @author https://github.com/avalynx/avalynx-alert/graphs/contributors
9
9
  * @website https://github.com/avalynx/
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "avalynx-alert",
3
3
  "title": "AvalynxAlert",
4
4
  "description": "AvalynxAlert is a simple alert system for web applications. Based on Bootstrap >=5.3 without any framework dependencies.",
5
- "version": "0.0.8",
5
+ "version": "0.0.9",
6
6
  "license": "MIT",
7
7
  "main": "dist/js/avalynx-alert.js",
8
8
  "module": "dist/js/avalynx-alert.esm.js",
@@ -25,19 +25,20 @@
25
25
  "package.json"
26
26
  ],
27
27
  "author": {
28
- "name": "Juergen Schwind an the Avalynx-Alert Authors",
28
+ "name": "Juergen Schwind an the Avalynx-Alert authors",
29
29
  "url": "https://github.com/avalynx/avalynx-alert/graphs/contributors"
30
30
  },
31
31
  "homepage": "https://github.com/avalynx/",
32
32
  "repository": {
33
33
  "type": "git",
34
- "url": "https://github.com/avalynx/avalynx-alert.git"
34
+ "url": "git+https://github.com/avalynx/avalynx-alert.git"
35
35
  },
36
36
  "bugs": {
37
37
  "url": "https://github.com/avalynx/avalynx-alert/issues"
38
38
  },
39
39
  "scripts": {
40
- "test": "jest"
40
+ "test": "jest",
41
+ "build": "shx rm -rf dist; shx mkdir -p dist/js/; shx cp src/js/avalynx-alert.js dist/js/avalynx-alert.js; shx cp src/js/avalynx-alert.js dist/js/avalynx-alert.esm.js; node build.js dist/js/avalynx-alert.esm.js; shx mkdir -p dist/css/; shx cp src/css/avalynx-alert.css dist/css/avalynx-alert.css"
41
42
  },
42
43
  "dependencies": {
43
44
  "bootstrap": ">=5.3"
@@ -47,6 +48,8 @@
47
48
  "@babel/preset-env": "^7",
48
49
  "babel-jest": "^29",
49
50
  "jest": "^29",
50
- "jest-environment-jsdom": "^29"
51
+ "jest-environment-jsdom": "^29",
52
+ "shelljs": "^0",
53
+ "shx": "^0"
51
54
  }
52
55
  }