t2cd 0.0.2 → 0.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/CHANGELOG.md +3 -1
- package/README.md +1 -1
- package/dist/index.cjs.js +26 -0
- package/package.json +40 -35
- package/.editorconfig +0 -17
- package/.eslintrc +0 -48
- package/.prettierignore +0 -1
- package/.travis.yml +0 -13
- package/bin/t2.js +0 -20
- package/src/__tests__/t1.test.js +0 -8
- package/src/t1.js +0 -5
- package/yarn.lock +0 -3525
package/CHANGELOG.md
CHANGED
|
@@ -2,4 +2,6 @@
|
|
|
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
|
-
|
|
5
|
+
### [0.1.0](https://github.com/cdcabrera/t1/compare/v0.0.5...v0.1.0) (2022-04-20)
|
|
6
|
+
|
|
7
|
+
## [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;
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "t2cd",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "testing",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"source": "src/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"css",
|
|
10
|
+
"es",
|
|
11
|
+
"lib",
|
|
12
|
+
"umd"
|
|
13
|
+
],
|
|
5
14
|
"author": "CD Cabrera <cabrera.code@gmail.com>",
|
|
15
|
+
"homepage": "",
|
|
6
16
|
"license": "MIT",
|
|
7
17
|
"repository": {
|
|
8
18
|
"type": "git",
|
|
@@ -11,44 +21,39 @@
|
|
|
11
21
|
"bugs": {
|
|
12
22
|
"url": "https://github.com/cdcabrera/t1/issues"
|
|
13
23
|
},
|
|
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": "./bin/t1.js",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"react-component"
|
|
26
|
+
],
|
|
29
27
|
"scripts": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
28
|
+
"build": "rollup -c",
|
|
29
|
+
"build-watch": "rollup -c -w",
|
|
30
|
+
"dev": "run-p build-watch",
|
|
31
|
+
"release": "standard-version"
|
|
34
32
|
},
|
|
35
33
|
"dependencies": {
|
|
36
|
-
"
|
|
34
|
+
"@patternfly/react-core": "4.202.16",
|
|
35
|
+
"prop-types": "^15.8.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": "^17.0.2",
|
|
39
|
+
"react-dom": "^17.0.2"
|
|
37
40
|
},
|
|
38
41
|
"devDependencies": {
|
|
39
|
-
"babel
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
42
|
+
"@babel/cli": "^7.17.6",
|
|
43
|
+
"@babel/core": "^7.17.9",
|
|
44
|
+
"@babel/preset-env": "^7.16.11",
|
|
45
|
+
"@babel/preset-react": "^7.16.7",
|
|
46
|
+
"@babel/plugin-syntax-jsx": "^7.16.7",
|
|
47
|
+
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
|
48
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
49
|
+
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
50
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
51
|
+
"babel-jest": "^27.5.1",
|
|
52
|
+
"babel-preset-react-app": "^10.0.1",
|
|
53
|
+
"npm-run-all": "^4.1.5",
|
|
54
|
+
"rollup": "^2.70.2",
|
|
55
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
56
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
57
|
+
"standard-version": "^9.3.2"
|
|
53
58
|
}
|
|
54
59
|
}
|
package/.editorconfig
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Editor configuration, see http://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 2
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
|
|
11
|
-
[*.snap]
|
|
12
|
-
max_line_length = off
|
|
13
|
-
trim_trailing_whitespace = false
|
|
14
|
-
|
|
15
|
-
[*.md]
|
|
16
|
-
max_line_length = off
|
|
17
|
-
trim_trailing_whitespace = false
|
package/.eslintrc
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"parser": "babel-eslint",
|
|
3
|
-
"env": {
|
|
4
|
-
"node": true,
|
|
5
|
-
"es6": true,
|
|
6
|
-
"mocha": true
|
|
7
|
-
},
|
|
8
|
-
"plugins": [
|
|
9
|
-
"node",
|
|
10
|
-
"prettier",
|
|
11
|
-
"mocha"
|
|
12
|
-
],
|
|
13
|
-
"extends": [
|
|
14
|
-
"eslint:recommended",
|
|
15
|
-
"plugin:node/recommended",
|
|
16
|
-
"plugin:prettier/recommended"
|
|
17
|
-
],
|
|
18
|
-
"parserOptions":{
|
|
19
|
-
"ecmaVersion": 2018
|
|
20
|
-
},
|
|
21
|
-
"rules": {
|
|
22
|
-
"arrow-parens": [
|
|
23
|
-
"error",
|
|
24
|
-
"as-needed"
|
|
25
|
-
],
|
|
26
|
-
"comma-dangle": 0,
|
|
27
|
-
"max-len": [
|
|
28
|
-
"error",
|
|
29
|
-
{
|
|
30
|
-
"code": 240,
|
|
31
|
-
"ignoreUrls": true
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"no-console": 0,
|
|
35
|
-
"no-debugger": 1,
|
|
36
|
-
"no-plusplus": 0,
|
|
37
|
-
"node/no-unsupported-features/es-syntax": 1,
|
|
38
|
-
"node/shebang": 0,
|
|
39
|
-
"prettier/prettier": [
|
|
40
|
-
"error",
|
|
41
|
-
{
|
|
42
|
-
"singleQuote": true,
|
|
43
|
-
"printWidth": 120
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"space-before-function-paren": 0
|
|
47
|
-
}
|
|
48
|
-
}
|
package/.prettierignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
package.json
|
package/.travis.yml
DELETED
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/__tests__/t1.test.js
DELETED