keski_lib_catalog 1.0.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/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # keski_lib_catalog
2
+
3
+ > Keski catalog components for Keski store, Codenation Studio
4
+
5
+ [![NPM](https://img.shields.io/npm/v/keski_lib_catalog.svg)](https://www.npmjs.com/package/keski_lib_catalog) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install --save keski_lib_catalog
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```jsx
16
+ import React, { Component } from 'react'
17
+
18
+ import MyComponent from 'keski_lib_catalog'
19
+ import 'keski_lib_catalog/dist/index.css'
20
+
21
+ class Example extends Component {
22
+ render() {
23
+ return <MyComponent />
24
+ }
25
+ }
26
+ ```
27
+
28
+ ## License
29
+
30
+ © [Francisco Marmolejo](https://github.com/Francisco Marmolejo)
package/dist/index.css ADDED
@@ -0,0 +1,9 @@
1
+ /* add css module styles here (optional) */
2
+
3
+ ._3ybTi {
4
+ margin: 2em;
5
+ padding: 0.5em;
6
+ border: 2px solid #000;
7
+ font-size: 2em;
8
+ text-align: center;
9
+ }
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
2
+
3
+ var React = _interopDefault(require('react'));
4
+
5
+ var styles = {"test":"_3ybTi"};
6
+
7
+ var ExampleComponent = function ExampleComponent(_ref) {
8
+ var text = _ref.text;
9
+ return /*#__PURE__*/React.createElement("div", {
10
+ className: styles.test
11
+ }, "Example Component: ", text);
12
+ };
13
+
14
+ exports.ExampleComponent = ExampleComponent;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.js"],"sourcesContent":["import React from 'react'\nimport styles from './styles.module.css'\n\nexport const ExampleComponent = ({ text }) => {\n return <div className={styles.test}>Example Component: {text}</div>\n}\n"],"names":["ExampleComponent","_ref","text","React","createElement","className","styles","test"],"mappings":";;;;;;IAGaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAiB;EAAA,IAAXC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EACrC,oBAAOC,KAAA,CAAAC,aAAA;IAAKC,SAAS,EAAEC,MAAM,CAACC;KAAM,qBAAmB,EAACL,IAAU,CAAC;AACrE,CAAC;;;;"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+
3
+ var styles = {"test":"_3ybTi"};
4
+
5
+ var ExampleComponent = function ExampleComponent(_ref) {
6
+ var text = _ref.text;
7
+ return /*#__PURE__*/React.createElement("div", {
8
+ className: styles.test
9
+ }, "Example Component: ", text);
10
+ };
11
+
12
+ export { ExampleComponent };
13
+ //# sourceMappingURL=index.modern.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.modern.js","sources":["../src/index.js"],"sourcesContent":["import React from 'react'\nimport styles from './styles.module.css'\n\nexport const ExampleComponent = ({ text }) => {\n return <div className={styles.test}>Example Component: {text}</div>\n}\n"],"names":["ExampleComponent","_ref","text","React","createElement","className","styles","test"],"mappings":";;;;IAGaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAiB;EAAA,IAAXC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EACrC,oBAAOC,KAAA,CAAAC,aAAA;IAAKC,SAAS,EAAEC,MAAM,CAACC;KAAM,qBAAmB,EAACL,IAAU,CAAC;AACrE,CAAC;;;;"}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "keski_lib_catalog",
3
+ "version": "1.0.0",
4
+ "description": "Keski catalog components for Keski store, Codenation Studio",
5
+ "author": "Francisco Marmolejo",
6
+ "license": "",
7
+ "repository": "Francisco Marmolejo/keski_lib_catalog",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.modern.js",
10
+ "source": "src/index.js",
11
+ "engines": {
12
+ "node": ">=10"
13
+ },
14
+ "scripts": {
15
+ "build": "microbundle-crl --no-compress --format modern,cjs",
16
+ "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
+ "prepare": "run-s build",
18
+ "test": "run-s test:unit test:lint test:build",
19
+ "test:build": "run-s build",
20
+ "test:lint": "eslint .",
21
+ "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
+ "test:watch": "react-scripts test --env=jsdom",
23
+ "predeploy": "cd example && npm install && npm run build",
24
+ "deploy": "gh-pages -d example/build"
25
+ },
26
+ "peerDependencies": {
27
+ "react": "^16.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "microbundle-crl": "^0.13.10",
31
+ "babel-eslint": "^10.0.3",
32
+ "cross-env": "^7.0.2",
33
+ "eslint": "^6.8.0",
34
+ "eslint-config-prettier": "^6.7.0",
35
+ "eslint-config-standard": "^14.1.0",
36
+ "eslint-config-standard-react": "^9.2.0",
37
+ "eslint-plugin-import": "^2.18.2",
38
+ "eslint-plugin-node": "^11.0.0",
39
+ "eslint-plugin-prettier": "^3.1.1",
40
+ "eslint-plugin-promise": "^4.2.1",
41
+ "eslint-plugin-react": "^7.17.0",
42
+ "eslint-plugin-standard": "^4.0.1",
43
+ "gh-pages": "^2.2.0",
44
+ "npm-run-all": "^4.1.5",
45
+ "prettier": "^2.0.4",
46
+ "react": "^16.13.1",
47
+ "react-dom": "^16.13.1",
48
+ "react-scripts": "^3.4.1"
49
+ },
50
+ "files": [
51
+ "dist"
52
+ ]
53
+ }