tuts-test-library 1.0.0 → 1.0.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/dist/index.cjs +50 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/package.json +6 -1
- package/eslint.config.js +0 -23
- package/public/vite.svg +0 -1
- package/src/components/Greetings.tsx +0 -11
- package/src/components/Hello.tsx +0 -9
- package/src/index.ts +0 -3
- package/tsconfig.app.json +0 -28
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -26
- package/tsconfig.tsup.json +0 -30
- package/tsup.config.ts +0 -11
- package/vite.config.ts +0 -15
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
Greetings: () => Greetings_default,
|
|
24
|
+
Hello: () => Hello_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
27
|
+
|
|
28
|
+
// src/components/Hello.tsx
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
function Hello() {
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Test Library is Working Successfully!" });
|
|
32
|
+
}
|
|
33
|
+
var Hello_default = Hello;
|
|
34
|
+
|
|
35
|
+
// src/components/Greetings.tsx
|
|
36
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
37
|
+
var Greetings = ({ name }) => {
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
|
|
39
|
+
"Hello ",
|
|
40
|
+
name,
|
|
41
|
+
"!"
|
|
42
|
+
] });
|
|
43
|
+
};
|
|
44
|
+
var Greetings_default = Greetings;
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
Greetings,
|
|
48
|
+
Hello
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/components/Hello.tsx","../src/components/Greetings.tsx"],"sourcesContent":["// src/index.ts\r\nexport { default as Hello } from './components/Hello'\r\nexport { default as Greetings } from './components/Greetings'","// src/components/Hello.tsx\r\n\r\nfunction Hello(){\r\n return (\r\n <div>Test Library is Working Successfully!</div>\r\n )\r\n}\r\n\r\nexport default Hello","interface HelloTwoProps {\r\n name: string\r\n}\r\n\r\nconst Greetings = ({name}: HelloTwoProps) => {\r\n return (\r\n <div>Hello {name}!</div>\r\n )\r\n}\r\n\r\nexport default Greetings"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIQ;AAFR,SAAS,QAAO;AACZ,SACI,4CAAC,SAAI,mDAAqC;AAElD;AAEA,IAAO,gBAAQ;;;ACFX,IAAAA,sBAAA;AAFJ,IAAM,YAAY,CAAC,EAAC,KAAI,MAAqB;AAC3C,SACE,8CAAC,SAAI;AAAA;AAAA,IAAO;AAAA,IAAK;AAAA,KAAC;AAEtB;AAEA,IAAO,oBAAQ;","names":["import_jsx_runtime"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare function Hello(): react_jsx_runtime.JSX.Element;
|
|
4
|
+
|
|
5
|
+
interface HelloTwoProps {
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Greetings: ({ name }: HelloTwoProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Greetings, Hello };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare function Hello(): react_jsx_runtime.JSX.Element;
|
|
4
|
+
|
|
5
|
+
interface HelloTwoProps {
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Greetings: ({ name }: HelloTwoProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Greetings, Hello };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/components/Hello.tsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
function Hello() {
|
|
4
|
+
return /* @__PURE__ */ jsx("div", { children: "Test Library is Working Successfully!" });
|
|
5
|
+
}
|
|
6
|
+
var Hello_default = Hello;
|
|
7
|
+
|
|
8
|
+
// src/components/Greetings.tsx
|
|
9
|
+
import { jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Greetings = ({ name }) => {
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
12
|
+
"Hello ",
|
|
13
|
+
name,
|
|
14
|
+
"!"
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
var Greetings_default = Greetings;
|
|
18
|
+
export {
|
|
19
|
+
Greetings_default as Greetings,
|
|
20
|
+
Hello_default as Hello
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Hello.tsx","../src/components/Greetings.tsx"],"sourcesContent":["// src/components/Hello.tsx\r\n\r\nfunction Hello(){\r\n return (\r\n <div>Test Library is Working Successfully!</div>\r\n )\r\n}\r\n\r\nexport default Hello","interface HelloTwoProps {\r\n name: string\r\n}\r\n\r\nconst Greetings = ({name}: HelloTwoProps) => {\r\n return (\r\n <div>Hello {name}!</div>\r\n )\r\n}\r\n\r\nexport default Greetings"],"mappings":";AAIQ;AAFR,SAAS,QAAO;AACZ,SACI,oBAAC,SAAI,mDAAqC;AAElD;AAEA,IAAO,gBAAQ;;;ACFX;AAFJ,IAAM,YAAY,CAAC,EAAC,KAAI,MAAqB;AAC3C,SACE,qBAAC,SAAI;AAAA;AAAA,IAAO;AAAA,IAAK;AAAA,KAAC;AAEtB;AAEA,IAAO,oBAAQ;","names":[]}
|
package/package.json
CHANGED
|
@@ -4,8 +4,12 @@
|
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.2",
|
|
8
8
|
"type": "module",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
9
13
|
"scripts": {
|
|
10
14
|
"dev": "tsup --watch --sourcemap",
|
|
11
15
|
"build": "tsup",
|
|
@@ -33,6 +37,7 @@
|
|
|
33
37
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
34
38
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
35
39
|
"globals": "^16.5.0",
|
|
40
|
+
"np": "^10.2.0",
|
|
36
41
|
"tsup": "^8.5.1",
|
|
37
42
|
"typescript": "~5.9.3",
|
|
38
43
|
"typescript-eslint": "^8.46.4",
|
package/eslint.config.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import js from '@eslint/js'
|
|
2
|
-
import globals from 'globals'
|
|
3
|
-
import reactHooks from 'eslint-plugin-react-hooks'
|
|
4
|
-
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
5
|
-
import tseslint from 'typescript-eslint'
|
|
6
|
-
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
7
|
-
|
|
8
|
-
export default defineConfig([
|
|
9
|
-
globalIgnores(['dist']),
|
|
10
|
-
{
|
|
11
|
-
files: ['**/*.{ts,tsx}'],
|
|
12
|
-
extends: [
|
|
13
|
-
js.configs.recommended,
|
|
14
|
-
tseslint.configs.recommended,
|
|
15
|
-
reactHooks.configs.flat.recommended,
|
|
16
|
-
reactRefresh.configs.vite,
|
|
17
|
-
],
|
|
18
|
-
languageOptions: {
|
|
19
|
-
ecmaVersion: 2020,
|
|
20
|
-
globals: globals.browser,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
])
|
package/public/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/src/components/Hello.tsx
DELETED
package/src/index.ts
DELETED
package/tsconfig.app.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2022",
|
|
5
|
-
"useDefineForClassFields": true,
|
|
6
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"types": ["vite/client"],
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
|
|
11
|
-
/* Bundler mode */
|
|
12
|
-
"moduleResolution": "bundler",
|
|
13
|
-
"allowImportingTsExtensions": true,
|
|
14
|
-
"verbatimModuleSyntax": true,
|
|
15
|
-
"moduleDetection": "force",
|
|
16
|
-
"noEmit": true,
|
|
17
|
-
"jsx": "react-jsx",
|
|
18
|
-
|
|
19
|
-
/* Linting */
|
|
20
|
-
"strict": true,
|
|
21
|
-
"noUnusedLocals": true,
|
|
22
|
-
"noUnusedParameters": true,
|
|
23
|
-
"erasableSyntaxOnly": true,
|
|
24
|
-
"noFallthroughCasesInSwitch": true,
|
|
25
|
-
"noUncheckedSideEffectImports": true
|
|
26
|
-
},
|
|
27
|
-
"include": ["src"]
|
|
28
|
-
}
|
package/tsconfig.json
DELETED
package/tsconfig.node.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": ["ES2023"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"types": ["node"],
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
|
|
10
|
-
/* Bundler mode */
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"allowImportingTsExtensions": true,
|
|
13
|
-
"verbatimModuleSyntax": true,
|
|
14
|
-
"moduleDetection": "force",
|
|
15
|
-
"noEmit": true,
|
|
16
|
-
|
|
17
|
-
/* Linting */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
"erasableSyntaxOnly": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true,
|
|
23
|
-
"noUncheckedSideEffectImports": true
|
|
24
|
-
},
|
|
25
|
-
"include": ["vite.config.ts"]
|
|
26
|
-
}
|
package/tsconfig.tsup.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
5
|
-
"target": "ES2022",
|
|
6
|
-
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"emitDeclarationOnly": true,
|
|
10
|
-
"declarationDir": "dist",
|
|
11
|
-
"noEmit": false,
|
|
12
|
-
"types": ["vite/client"],
|
|
13
|
-
|
|
14
|
-
/* Bundler mode */
|
|
15
|
-
"jsx": "react-jsx",
|
|
16
|
-
"moduleResolution": "bundler",
|
|
17
|
-
"verbatimModuleSyntax": true,
|
|
18
|
-
"moduleDetection": "force",
|
|
19
|
-
|
|
20
|
-
/* Linting */
|
|
21
|
-
"strict": true,
|
|
22
|
-
"noUnusedLocals": true,
|
|
23
|
-
"noUnusedParameters": true,
|
|
24
|
-
"erasableSyntaxOnly": true,
|
|
25
|
-
"noFallthroughCasesInSwitch": true,
|
|
26
|
-
"noUncheckedSideEffectImports": true
|
|
27
|
-
},
|
|
28
|
-
"include": ["src"],
|
|
29
|
-
"exclude": ["node_modules", "dist"]
|
|
30
|
-
}
|
package/tsup.config.ts
DELETED
package/vite.config.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
3
|
-
import path from 'path';
|
|
4
|
-
|
|
5
|
-
// https://vite.dev/config/
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [react()],
|
|
8
|
-
resolve: {
|
|
9
|
-
alias: {
|
|
10
|
-
'@': path.resolve(__dirname, 'src')
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
|