@texas2010/lib 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 texas2010
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # Welcome to Texas2010's Library 👋
2
+
3
+ ![Version](https://img.shields.io/badge/version-0.0.1-blue.svg?cacheSeconds=2592000)
4
+ ![Prerequisite](https://img.shields.io/badge/node-%3E%3D20.6.0-blue.svg)
5
+ [![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/texas2010/texas2010-lib#readme)
6
+ [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/texas2010/texas2010-lib/graphs/commit-activity)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
8
+
9
+ > Reuseable Services and helpers for Texas2010's projects
10
+
11
+ ### 🏠 [Homepage](https://github.com/texas2010/texas2010-lib)
12
+
13
+ ## Prerequisites
14
+
15
+ - node >=20.6.0
16
+
17
+ ## Install
18
+
19
+ ```sh
20
+ npm install
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```sh
26
+ npm run dev
27
+ ```
28
+
29
+ ## Run tests
30
+
31
+ ```sh
32
+ npm run test
33
+ ```
34
+
35
+ ## Author
36
+
37
+ 👤 **texas2010**
38
+
39
+ - Github: [@texas2010](https://github.com/texas2010)
40
+
41
+ ## 🤝 Contributing
42
+
43
+ Contributions, issues and feature requests are welcome!
44
+
45
+ Feel free to check [issues page](https://github.com/texas2010/texas2010-lib/issues).
46
+
47
+ ## 📝 License
48
+
49
+ Copyright © 2025 [texas2010](https://github.com/texas2010)
50
+
51
+ This project is [MIT](LICENSE) licensed.
52
+
53
+ This is an open-source project by texas2010.
54
+ If you use or modify this project, you must include attribution clearly in your documentation, UI, or package metadata.
55
+
56
+ Do not claim authorship or remove credit.
57
+
58
+ ---
59
+
60
+ _This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_
@@ -0,0 +1,3 @@
1
+ declare const commsProtocol = "commsProtocol";
2
+
3
+ export { commsProtocol };
@@ -0,0 +1,4 @@
1
+ const o = "commsProtocol";
2
+ export {
3
+ o as commsProtocol
4
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export { };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,2 @@
1
+
2
+ export { };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+
3
+ declare const HelloReact: FC;
4
+
5
+ export { HelloReact };
@@ -0,0 +1,5 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ const l = () => /* @__PURE__ */ o("div", { children: "Hello from React!" });
3
+ export {
4
+ l as HelloReact
5
+ };
@@ -0,0 +1,3 @@
1
+ declare const helloShared: () => string;
2
+
3
+ export { helloShared };
@@ -0,0 +1,4 @@
1
+ const e = () => "Hello from shared!";
2
+ export {
3
+ e as helloShared
4
+ };
package/package.json ADDED
@@ -0,0 +1,117 @@
1
+ {
2
+ "name": "@texas2010/lib",
3
+ "version": "0.0.2",
4
+ "description": "Reusable services and helpers for internal projects",
5
+ "keywords": [],
6
+ "homepage": "https://github.com/texas2010/texas2010-lib",
7
+ "bugs": {
8
+ "url": "https://github.com/texas2010/texas2010-lib/issues"
9
+ },
10
+ "type": "module",
11
+ "files": [
12
+ "build",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "main": "./build/shared/index.js",
17
+ "types": "./build/shared/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "import": "./build/shared/index.js",
21
+ "types": "./build/shared/index.d.ts"
22
+ },
23
+ "./shared": {
24
+ "import": "./build/shared/index.js",
25
+ "types": "./build/shared/index.d.ts"
26
+ },
27
+ "./shared/*": {
28
+ "import": "./build/shared/*/index.js",
29
+ "types": "./build/shared/*/index.d.ts"
30
+ },
31
+ "./frontend": {
32
+ "import": "./build/frontend/index.js",
33
+ "types": "./build/frontend/index.d.ts"
34
+ },
35
+ "./frontend/*": {
36
+ "import": "./build/frontend/*/index.js",
37
+ "types": "./build/frontend/*/index.d.ts"
38
+ },
39
+ "./backend": {
40
+ "import": "./build/backend/index.js",
41
+ "types": "./build/backend/index.d.ts"
42
+ },
43
+ "./backend/*": {
44
+ "import": "./build/backend/*/index.js",
45
+ "types": "./build/backend/*/index.d.ts"
46
+ },
47
+ "./internal/*": null
48
+ },
49
+ "scripts": {
50
+ "test:unit": "TEST_KIND=unit vitest run --config vitest.config.ts",
51
+ "test:unit:watch": "TEST_KIND=unit vitest --config vitest.config.ts --watch --reporter tree",
52
+ "local-release": "changeset version && changeset publish",
53
+ "_note": "",
54
+ "typecheck": "tsc --noEmit",
55
+ "clean": "rm -rf build/*",
56
+ "prebuild": "npm run clean",
57
+ "build:js": "vite build",
58
+ "build:types": "tsc --emitDeclarationOnly -p tsconfig.json && tsc-alias -p tsconfig.json",
59
+ "build:dts": "rollup -c rollup.dts.config.js",
60
+ "build": "npm-run-all build:js build:types build:dts",
61
+ "docker:up": "docker compose --profile dev up -d --force-recreate base_dev",
62
+ "docker:down": "docker compose --profile dev down -v --remove-orphans",
63
+ "docker:logs": "docker compose --profile dev logs -f",
64
+ "docker:dev:logs": "docker compose --profile dev logs -f base_dev",
65
+ "docker:restart": "npm run docker:down && npm run docker:up",
66
+ "docker:build": "docker compose build --no-cache base_dev",
67
+ "predev": "npm run docker:down && npm run docker:build && npm run docker:up",
68
+ "dev": "trap 'docker compose --profile dev down -v --remove-orphans || true' EXIT INT TERM; docker compose --profile dev logs -f base_dev",
69
+ "publish:fake": "node integration/setup/publish.js",
70
+ "install-package": "node integration/setup/install-package.js",
71
+ "create-fake-files": "node integration/setup/create-fake-files.js",
72
+ "pre:integration": "npm run build && npm run create-fake-files && npm run publish:fake && npm run install-package",
73
+ "test:integration": "npm run pre:integration && vitest run --config vitest.config.ts",
74
+ "test:integration:watch": "npm run pre:integration && vitest --config vitest.config.ts --watch --reporter=tree",
75
+ "ci:unit": "npm run test:unit",
76
+ "ci:build": "npm run build",
77
+ "ci:integration": "docker compose --profile test up --build --abort-on-container-exit --exit-code-from base_test --force-recreate --remove-orphans",
78
+ "ci:down": "docker compose down -v --remove-orphans",
79
+ "ci": "npm run ci:unit && npm run ci:build && npm run ci:integration && npm run ci:down",
80
+ "prepublishOnly": "npm run ci"
81
+ },
82
+ "engines": {
83
+ "node": ">=20.6.0"
84
+ },
85
+ "devDependencies": {
86
+ "@changesets/cli": "^2.29.5",
87
+ "@eslint/js": "^9.26.0",
88
+ "@types/react": "^19.1.4",
89
+ "@types/react-dom": "^19.1.5",
90
+ "@vitejs/plugin-react": "^5.1.1",
91
+ "concurrently": "^9.2.1",
92
+ "eslint": "^9.26.0",
93
+ "eslint-plugin-react-hooks": "^5.2.0",
94
+ "eslint-plugin-react-refresh": "^0.4.20",
95
+ "globals": "^16.1.0",
96
+ "npm-run-all": "^4.1.5",
97
+ "rollup": "^4.53.2",
98
+ "rollup-plugin-dts": "^6.2.3",
99
+ "tsc-alias": "^1.8.16",
100
+ "typescript": "~5.8.3",
101
+ "typescript-eslint": "^8.32.1",
102
+ "vite": "^7.2.4",
103
+ "vite-tsconfig-paths": "^5.1.4",
104
+ "vitest": "^4.0.13"
105
+ },
106
+ "dependencies": {
107
+ "@types/node": "^22.15.14",
108
+ "react": "^19.1.0",
109
+ "react-dom": "^19.1.0"
110
+ },
111
+ "repository": {
112
+ "type": "git",
113
+ "url": "git+https://github.com/texas2010/texas2010-lib.git"
114
+ },
115
+ "author": "texas2010",
116
+ "license": "MIT"
117
+ }