t2cd 0.0.5 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -2,4 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.2](https://github.com/cdcabrera/t1/compare/v0.0.5...v0.1.2) (2022-04-20)
6
+
7
+ ### [0.1.1](https://github.com/cdcabrera/t1/compare/v0.0.5...v0.1.1) (2022-04-20)
8
+
9
+ ### [0.1.0](https://github.com/cdcabrera/t1/compare/v0.0.5...v0.1.0) (2022-04-20)
10
+
5
11
  ## [0.0.5](https://github.com/cdcabrera/t1/compare/v0.0.2...v0.0.5) (2019-03-02)
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # t2cd
2
2
 
3
- Build testing...
3
+ Build testing One and Two components...
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ const One = () => {
12
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("h1", null, "One lorem ipsum dolor sit"));
13
+ };
14
+
15
+ const Two = () => {
16
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("h2", null, "Two lorem ipsum dolor sit"));
17
+ };
18
+
19
+ const components = {
20
+ One,
21
+ Two
22
+ };
23
+
24
+ exports.One = One;
25
+ exports.Two = Two;
26
+ exports["default"] = components;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+
3
+ const One = () => {
4
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h1", null, "One lorem ipsum dolor sit"));
5
+ };
6
+
7
+ const Two = () => {
8
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h2", null, "Two lorem ipsum dolor sit"));
9
+ };
10
+
11
+ const components = {
12
+ One,
13
+ Two
14
+ };
15
+
16
+ export { One, Two, components as default };
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "t2cd",
3
- "version": "0.0.5",
3
+ "version": "0.1.2",
4
4
  "description": "testing",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "source": "src/index.js",
5
8
  "author": "CD Cabrera <cabrera.code@gmail.com>",
9
+ "homepage": "",
6
10
  "license": "MIT",
7
11
  "repository": {
8
12
  "type": "git",
@@ -11,46 +15,39 @@
11
15
  "bugs": {
12
16
  "url": "https://github.com/cdcabrera/t1/issues"
13
17
  },
14
- "engines": {
15
- "node": ">=10.14.0"
16
- },
17
- "standard-version": {},
18
- "nyc": {
19
- "include": [
20
- "src/**/*.js"
21
- ],
22
- "check-coverage": true,
23
- "lines": 50,
24
- "statements": 50,
25
- "functions": 50,
26
- "branches": 50
27
- },
28
- "bin": {
29
- "t2go": "./bin/t2.js"
30
- },
18
+ "keywords": [
19
+ "react-component"
20
+ ],
31
21
  "scripts": {
32
- "start": "./bin/t2.js --hello=\"weeeee\" --lorem",
33
- "release": "> ./CHANGELOG.md && standard-version",
34
- "test": "nyc mocha --recursive \"./src/**/*.js\"",
35
- "coverage": "nyc report --reporter=text-lcov > coverage.lcov"
22
+ "build": "rollup -c",
23
+ "build-watch": "rollup -c -w",
24
+ "dev": "run-p build-watch",
25
+ "release": "standard-version"
36
26
  },
37
27
  "dependencies": {
38
- "yargs": "^13.2.1"
28
+ "@patternfly/react-core": "4.202.16",
29
+ "prop-types": "^15.8.1"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^17.0.2",
33
+ "react-dom": "^17.0.2"
39
34
  },
40
35
  "devDependencies": {
41
- "babel-eslint": "^10.0.1",
42
- "eslint": "^5.15.0",
43
- "eslint-config-esnext": "^4.0.0",
44
- "eslint-config-node": "^4.0.0",
45
- "eslint-plugin-mocha": "^5.3.0",
46
- "eslint-config-prettier": "^4.1.0",
47
- "eslint-plugin-babel": "^5.3.0",
48
- "eslint-plugin-import": "^2.16.0",
49
- "eslint-plugin-node": "^8.0.1",
50
- "eslint-plugin-prettier": "^3.0.1",
51
- "mocha": "^6.0.2",
52
- "nyc": "^13.3.0",
53
- "prettier": "^1.16.4",
54
- "standard-version": "^5.0.1"
36
+ "@babel/cli": "^7.17.6",
37
+ "@babel/core": "^7.17.9",
38
+ "@babel/preset-env": "^7.16.11",
39
+ "@babel/preset-react": "^7.16.7",
40
+ "@babel/plugin-syntax-jsx": "^7.16.7",
41
+ "@babel/plugin-syntax-class-properties": "^7.12.13",
42
+ "@rollup/plugin-babel": "^5.3.1",
43
+ "@rollup/plugin-node-resolve": "^13.2.1",
44
+ "@rollup/plugin-replace": "^4.0.0",
45
+ "babel-jest": "^27.5.1",
46
+ "babel-preset-react-app": "^10.0.1",
47
+ "npm-run-all": "^4.1.5",
48
+ "rollup": "^2.70.2",
49
+ "rollup-plugin-delete": "^2.0.0",
50
+ "rollup-plugin-peer-deps-external": "^2.2.4",
51
+ "standard-version": "^9.3.2"
55
52
  }
56
53
  }
package/src/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { One } from './one';
2
+ import { Two } from './two';
3
+
4
+ const components = {
5
+ One,
6
+ Two
7
+ };
8
+
9
+ export { components as default, One, Two };
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: One component
3
+ section: extensions
4
+ ---
5
+
6
+ A **One** is used to lorem ipsum.
7
+
8
+
9
+ ## Examples
10
+ ### Basic component
11
+ ```js
12
+ import React from 'react';
13
+ const Example = () => {
14
+ return <React.Fragment>hello world</React.Fragment>
15
+ }
16
+ ```
17
+
18
+ ## Documentation
19
+ Lorem ipsum
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ const One = () => { return (<div><h1>One lorem ipsum dolor sit</h1></div>); };
4
+
5
+ export { One as default, One };
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: Two component
3
+ section: extensions
4
+ ---
5
+
6
+ ## Introduction
7
+ A **Two** is used to dolor sit.
8
+
9
+ ## Examples
10
+ ### Basic component
11
+ ```js
12
+ import React from 'react';
13
+ const Example = () => {
14
+ return <React.Fragment>hello world</React.Fragment>
15
+ }
16
+ ```
17
+
18
+ ## Documentation
19
+ Lorem ipsum
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+
3
+ const Two = () => { return (<div><h2>Two lorem ipsum dolor sit</h2></div>); };
4
+
5
+ export { Two as default, Two };
package/bin/t2.js DELETED
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { hello, lorem } = require('yargs').argv;
4
- const { helloWorld, loremIpsum } = require('../src/t1');
5
-
6
- const doIt = () => {
7
- const output = [];
8
-
9
- if (lorem) {
10
- output.push(loremIpsum('do it'));
11
- }
12
-
13
- if (hello) {
14
- output.push(helloWorld(hello));
15
- }
16
-
17
- console.log(`t1: ${output.join(', ')}`);
18
- };
19
-
20
- doIt();
package/src/t1.js DELETED
@@ -1,5 +0,0 @@
1
- const helloWorld = value => `Hello world! How are ${value}`;
2
-
3
- const loremIpsum = value => `Lorem ipsum! How are ${value}`;
4
-
5
- module.exports = { helloWorld, loremIpsum };