@cycjimmy/hello-github-package-npm 4.0.1 → 6.1.0
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/LICENSE +1 -1
- package/README.md +0 -1
- package/dist/{hello-world.cjs.js → hello-world.cjs} +1 -1
- package/dist/hello-world.esm.js +2 -2
- package/dist/hello-world.umd.js +3 -3
- package/dist/hello-world.umd.min.js +3 -3
- package/package.json +37 -31
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ function styleInject(css, ref) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{
|
|
38
|
+
var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;border:1px solid #000;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}._2GQl-YcmkJ{height:300px;margin:auto;width:500px}._2EBBO29zT_{height:80%;width:80%}";
|
|
39
39
|
var _style = {"helloWrapper":"_2GQl-YcmkJ","hello":"_2EBBO29zT_"};
|
|
40
40
|
styleInject(css_248z);
|
|
41
41
|
|
package/dist/hello-world.esm.js
CHANGED
|
@@ -33,7 +33,7 @@ function styleInject(css, ref) {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{
|
|
36
|
+
var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;border:1px solid #000;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}._2GQl-YcmkJ{height:300px;margin:auto;width:500px}._2EBBO29zT_{height:80%;width:80%}";
|
|
37
37
|
var _style = {"helloWrapper":"_2GQl-YcmkJ","hello":"_2EBBO29zT_"};
|
|
38
38
|
styleInject(css_248z);
|
|
39
39
|
|
|
@@ -51,4 +51,4 @@ var index = {
|
|
|
51
51
|
_style: _style
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
export default
|
|
54
|
+
export { index as default };
|
package/dist/hello-world.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.helloWorld = factory());
|
|
5
|
-
}(this, (function () { 'use strict';
|
|
5
|
+
})(this, (function () { 'use strict';
|
|
6
6
|
|
|
7
7
|
var helloTemplate = (function (_ref) {
|
|
8
8
|
var message = _ref.message,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{
|
|
42
|
+
var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;border:1px solid #000;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}._2GQl-YcmkJ{height:300px;margin:auto;width:500px}._2EBBO29zT_{height:80%;width:80%}";
|
|
43
43
|
var _style = {"helloWrapper":"_2GQl-YcmkJ","hello":"_2EBBO29zT_"};
|
|
44
44
|
styleInject(css_248z);
|
|
45
45
|
|
|
@@ -59,4 +59,4 @@
|
|
|
59
59
|
|
|
60
60
|
return index;
|
|
61
61
|
|
|
62
|
-
}))
|
|
62
|
+
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @cycjimmy/hello-github-package-npm
|
|
1
|
+
/*!
|
|
2
|
+
* @cycjimmy/hello-github-package-npm v6.1.0
|
|
3
3
|
* Homepage: https://github.com/cycjimmy/hello-github-package-npm#readme
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).helloWorld=t()}(this,(function(){"use strict";var e={helloWrapper:"_2GQl-YcmkJ",hello:"_2EBBO29zT_"};!function(e,t){void 0===t&&(t={});var l=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===l&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("._2EBBO29zT_,._2GQl-YcmkJ{
|
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).helloWorld=t()}(this,(function(){"use strict";var e={helloWrapper:"_2GQl-YcmkJ",hello:"_2EBBO29zT_"};!function(e,t){void 0===t&&(t={});var l=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===l&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("._2EBBO29zT_,._2GQl-YcmkJ{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;border:1px solid #000;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}._2GQl-YcmkJ{height:300px;margin:auto;width:500px}._2EBBO29zT_{height:80%;width:80%}");var t=function(e){var t=e.message,l=e._style;return'\n<div class="'.concat(l.helloWrapper,'">\n <p class="').concat(l.hello,'">').concat(t,"</p>\n</div>\n")}({message:"hello world!",_style:e});return{helloWorld:function(){return"hello world!"},helloElement:t,_style:e}}));
|
package/package.json
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cycjimmy/hello-github-package-npm",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "hello github package npm",
|
|
5
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/hello-world.cjs",
|
|
6
7
|
"module": "dist/hello-world.esm.js",
|
|
7
8
|
"browser": "dist/hello-world.umd.min.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
"require": "./dist/hello-world.cjs",
|
|
11
|
+
"import": "./dist/hello-world.esm.js"
|
|
12
|
+
},
|
|
8
13
|
"scripts": {
|
|
9
14
|
"start": "npm run dev",
|
|
10
|
-
"test": "jest --color --forceExit --detectOpenHandles",
|
|
11
|
-
"coveralls": "jest --color --forceExit --detectOpenHandles --coverage",
|
|
12
|
-
"lint": "eslint -c .eslintrc
|
|
13
|
-
"lint:fix": "eslint --fix -c .eslintrc
|
|
14
|
-
"dev": "cross-env NODE_ENV=development rollup -c rollup/rollup.config.dev.
|
|
15
|
+
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --color --forceExit --detectOpenHandles",
|
|
16
|
+
"coveralls": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --color --forceExit --detectOpenHandles --coverage",
|
|
17
|
+
"lint": "eslint --ext .js,.cjs,.mjs -c .eslintrc .",
|
|
18
|
+
"lint:fix": "eslint --ext .js,.cjs,.mjs --fix -c .eslintrc . --fix",
|
|
19
|
+
"dev": "cross-env NODE_ENV=development rollup -c rollup/rollup.config.dev.mjs --watch",
|
|
15
20
|
"build": "npm run build:prod:umd && npm run build:prod",
|
|
16
|
-
"build:prod": "cross-env NODE_ENV=production rollup -c rollup/rollup.config.prod.
|
|
17
|
-
"build:prod:umd": "cross-env NODE_ENV=production rollup -c rollup/rollup.config.dev.
|
|
18
|
-
"build:deployment": "cross-env NODE_ENV=deployment rollup -c rollup/rollup.config.dev.
|
|
21
|
+
"build:prod": "cross-env NODE_ENV=production rollup -c rollup/rollup.config.prod.mjs",
|
|
22
|
+
"build:prod:umd": "cross-env NODE_ENV=production rollup -c rollup/rollup.config.dev.mjs",
|
|
23
|
+
"build:deployment": "cross-env NODE_ENV=deployment rollup -c rollup/rollup.config.dev.mjs"
|
|
19
24
|
},
|
|
20
25
|
"repository": {
|
|
21
26
|
"type": "git",
|
|
@@ -39,29 +44,30 @@
|
|
|
39
44
|
"access": "public"
|
|
40
45
|
},
|
|
41
46
|
"dependencies": {
|
|
42
|
-
"@cycjimmy/sass-lib": "^
|
|
47
|
+
"@cycjimmy/sass-lib": "^2.0.0"
|
|
43
48
|
},
|
|
44
49
|
"devDependencies": {
|
|
45
|
-
"@babel/core": "^7.
|
|
46
|
-
"@babel/preset-env": "^7.
|
|
47
|
-
"@cycjimmy/config-lib": "^
|
|
48
|
-
"@rollup/plugin-babel": "^5.
|
|
49
|
-
"@rollup/plugin-commonjs": "^
|
|
50
|
+
"@babel/core": "^7.17.7",
|
|
51
|
+
"@babel/preset-env": "^7.16.11",
|
|
52
|
+
"@cycjimmy/config-lib": "^3.0.5",
|
|
53
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
54
|
+
"@rollup/plugin-commonjs": "^21.0.2",
|
|
55
|
+
"@rollup/plugin-eslint": "^8.0.1",
|
|
50
56
|
"@rollup/plugin-json": "^4.1.0",
|
|
51
|
-
"@rollup/plugin-node-resolve": "^
|
|
52
|
-
"autoprefixer": "^
|
|
53
|
-
"babel-jest": "^
|
|
54
|
-
"coveralls": "^3.1.
|
|
55
|
-
"cross-env": "^7.0.
|
|
56
|
-
"eslint": "^
|
|
57
|
-
"eslint-config-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"rollup
|
|
62
|
-
"rollup-plugin-
|
|
63
|
-
"rollup-plugin-
|
|
64
|
-
"rollup-plugin-postcss": "^
|
|
65
|
-
"rollup-plugin-terser": "^
|
|
57
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
58
|
+
"autoprefixer": "^10.4.3",
|
|
59
|
+
"babel-jest": "^27.5.1",
|
|
60
|
+
"coveralls": "^3.1.1",
|
|
61
|
+
"cross-env": "^7.0.3",
|
|
62
|
+
"eslint": "^8.11.0",
|
|
63
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
64
|
+
"eslint-plugin-import": "^2.25.4",
|
|
65
|
+
"jest": "^27.5.1",
|
|
66
|
+
"node-sass": "^7.0.1",
|
|
67
|
+
"rollup": "^2.70.1",
|
|
68
|
+
"rollup-plugin-browsersync": "^1.3.3",
|
|
69
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
70
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
71
|
+
"rollup-plugin-terser": "^7.0.2"
|
|
66
72
|
}
|
|
67
73
|
}
|