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 +6 -0
- package/README.md +1 -1
- package/dist/index.cjs.js +26 -0
- package/dist/index.esm.js +16 -0
- package/package.json +34 -37
- package/src/index.js +9 -0
- package/src/one/__docs__/one.md +19 -0
- package/src/one/index.js +5 -0
- package/src/two/__docs__/two.md +19 -0
- package/src/two/index.js +5 -0
- package/bin/t2.js +0 -20
- package/src/t1.js +0 -5
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
|
@@ -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.
|
|
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
|
-
"
|
|
15
|
-
"
|
|
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
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
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
|
-
"
|
|
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
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
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,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
|
package/src/one/index.js
ADDED
|
@@ -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
|
package/src/two/index.js
ADDED
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();
|