@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 cycjimmy
3
+ Copyright (c) 2019-2022 cycjimmy
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -61,4 +61,3 @@ This is a private javascript lib template for automatic test, release and so on.
61
61
  [license-image]: https://img.shields.io/npm/l/@cycjimmy/hello-github-package-npm
62
62
 
63
63
  [github-pages-url]: https://cycjimmy.github.io/hello-github-package-npm/
64
-
@@ -35,7 +35,7 @@ function styleInject(css, ref) {
35
35
  }
36
36
  }
37
37
 
38
- var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border:1px solid #000}._2GQl-YcmkJ{width:500px;height:300px;margin:auto}._2EBBO29zT_{width:80%;height:80%}";
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
 
@@ -33,7 +33,7 @@ function styleInject(css, ref) {
33
33
  }
34
34
  }
35
35
 
36
- var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border:1px solid #000}._2GQl-YcmkJ{width:500px;height:300px;margin:auto}._2EBBO29zT_{width:80%;height:80%}";
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 index;
54
+ export { index as default };
@@ -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{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border:1px solid #000}._2GQl-YcmkJ{width:500px;height:300px;margin:auto}._2EBBO29zT_{width:80%;height:80%}";
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 v4.0.1
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{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border:1px solid #000}._2GQl-YcmkJ{width:500px;height:300px;margin:auto}._2EBBO29zT_{width:80%;height:80%}");return{helloWorld:function(){return"hello world!"},helloElement: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}),_style:e}}));
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": "4.0.1",
3
+ "version": "6.1.0",
4
4
  "description": "hello github package npm",
5
- "main": "dist/hello-world.cjs.js",
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 'src/**/*.js'",
13
- "lint:fix": "eslint --fix -c .eslintrc 'src/**/*.js' --fix",
14
- "dev": "cross-env NODE_ENV=development rollup -c rollup/rollup.config.dev.js --watch",
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.js",
17
- "build:prod:umd": "cross-env NODE_ENV=production rollup -c rollup/rollup.config.dev.js",
18
- "build:deployment": "cross-env NODE_ENV=deployment rollup -c rollup/rollup.config.dev.js"
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": "^1.0.3"
47
+ "@cycjimmy/sass-lib": "^2.0.0"
43
48
  },
44
49
  "devDependencies": {
45
- "@babel/core": "^7.12.3",
46
- "@babel/preset-env": "^7.12.1",
47
- "@cycjimmy/config-lib": "^1.7.1",
48
- "@rollup/plugin-babel": "^5.2.1",
49
- "@rollup/plugin-commonjs": "^16.0.0",
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": "^10.0.0",
52
- "autoprefixer": "^9.8.6",
53
- "babel-jest": "^26.6.3",
54
- "coveralls": "^3.1.0",
55
- "cross-env": "^7.0.2",
56
- "eslint": "^7.13.0",
57
- "eslint-config-rollup": "^0.1.0",
58
- "jest": "^26.6.3",
59
- "node-sass": "^5.0.0",
60
- "rollup": "^2.33.1",
61
- "rollup-plugin-browsersync": "^1.3.1",
62
- "rollup-plugin-copy": "^3.3.0",
63
- "rollup-plugin-eslint": "^7.0.0",
64
- "rollup-plugin-postcss": "^3.1.8",
65
- "rollup-plugin-terser": "^6.1.0"
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
  }