shoppingcartcustommodulelkhd 1.0.1
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/app.js +4 -0
- package/client.html +15 -0
- package/index.js +16 -0
- package/package.json +12 -0
package/app.js
ADDED
package/client.html
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Document</title>
|
|
7
|
+
<script src="index.js"></script>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
console.log(shoppingCartCustMod.name);
|
|
11
|
+
console.log(shoppingCartCustMod.description);
|
|
12
|
+
</script>
|
|
13
|
+
</head>
|
|
14
|
+
<body></body>
|
|
15
|
+
</html>
|
package/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
(function (context, modName, definition) {
|
|
2
|
+
// if node
|
|
3
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
4
|
+
module.exports = definition();
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// if window
|
|
8
|
+
else context[modName] = definition();
|
|
9
|
+
})(this, 'shoppingCartCustMod', function () {
|
|
10
|
+
const api = {
|
|
11
|
+
name: 'shopping cart',
|
|
12
|
+
description: 'This is a shopping cart module',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
return api;
|
|
16
|
+
});
|
package/package.json
ADDED