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 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
- ## [0.0.2](https://github.com/cdcabrera/t1/compare/v0.0.1...v0.0.2) (2019-03-02)
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
@@ -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;
package/package.json CHANGED
@@ -1,8 +1,18 @@
1
1
  {
2
2
  "name": "t2cd",
3
- "version": "0.0.2",
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
- "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": "./bin/t1.js",
24
+ "keywords": [
25
+ "react-component"
26
+ ],
29
27
  "scripts": {
30
- "start": "node ./bin/t1.js --hello=\"weeeee\" --lorem",
31
- "release": "> ./CHANGELOG.md && standard-version",
32
- "test": "nyc mocha --recursive \"./src/**/*.js\"",
33
- "coverage": "nyc report --reporter=text-lcov > coverage.lcov"
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
- "yargs": "^13.2.1"
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-eslint": "^10.0.1",
40
- "eslint": "^5.15.0",
41
- "eslint-config-esnext": "^4.0.0",
42
- "eslint-config-node": "^4.0.0",
43
- "eslint-plugin-mocha": "^5.3.0",
44
- "eslint-config-prettier": "^4.1.0",
45
- "eslint-plugin-babel": "^5.3.0",
46
- "eslint-plugin-import": "^2.16.0",
47
- "eslint-plugin-node": "^8.0.1",
48
- "eslint-plugin-prettier": "^3.0.1",
49
- "mocha": "^6.0.2",
50
- "nyc": "^13.3.0",
51
- "prettier": "^1.16.4",
52
- "standard-version": "^5.0.1"
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
@@ -1,13 +0,0 @@
1
- language: node_js
2
-
3
- cache: yarn
4
-
5
- jobs:
6
- include:
7
- - stage: test
8
- env:
9
- - NAME=yarn
10
- node_js: "10"
11
- before_script: yarn global add codecov
12
- script: yarn test && yarn coverage
13
- after_success: codecov
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();
@@ -1,8 +0,0 @@
1
- const assert = require('assert');
2
- const { helloWorld, loremIpsum } = require('../t1');
3
-
4
- describe('HelloWorld', () => {
5
- it('should render a hello world string ', () => {
6
- assert.strictEqual(helloWorld('test'), 'Hello world! How are test');
7
- });
8
- });
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 };