rf-touchstone 0.0.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/LICENSE +21 -0
- package/coverage/coverage-badge.svg +20 -0
- package/development.md +181 -0
- package/dist/Touchstone.cjs.js +19 -0
- package/dist/Touchstone.es.js +9161 -0
- package/dist/Touchstone.umd.js +19 -0
- package/dist/touchstone.d.ts +697 -0
- package/package.json +73 -0
- package/readme.md +73 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 panz2018
|
|
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.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<svg width="103.3" height="20" viewBox="0 0 1033 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="coverage: 100%">
|
|
2
|
+
<title>coverage: 100%</title>
|
|
3
|
+
<linearGradient id="UdZSm" x2="0" y2="100%">
|
|
4
|
+
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
|
|
5
|
+
<stop offset="1" stop-opacity=".1"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
<mask id="QwWIL"><rect width="1033" height="200" rx="30" fill="#FFF"/></mask>
|
|
8
|
+
<g mask="url(#QwWIL)">
|
|
9
|
+
<rect width="603" height="200" fill="#555"/>
|
|
10
|
+
<rect width="430" height="200" fill="#49c31a" x="603"/>
|
|
11
|
+
<rect width="1033" height="200" fill="url(#UdZSm)"/>
|
|
12
|
+
</g>
|
|
13
|
+
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
|
|
14
|
+
<text x="60" y="148" textLength="503" fill="#000" opacity="0.25">coverage</text>
|
|
15
|
+
<text x="50" y="138" textLength="503">coverage</text>
|
|
16
|
+
<text x="658" y="148" textLength="330" fill="#000" opacity="0.25">100%</text>
|
|
17
|
+
<text x="648" y="138" textLength="330">100%</text>
|
|
18
|
+
</g>
|
|
19
|
+
|
|
20
|
+
</svg>
|
package/development.md
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# Development for RF Touchstone
|
|
2
|
+
|
|
3
|
+
## Setup Node.js environment
|
|
4
|
+
|
|
5
|
+
### Download and install [Node.js](https://nodejs.org/en/download/package-manager) from the official website
|
|
6
|
+
|
|
7
|
+
### Check the current version of Node.js
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
node -v
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Install yarn
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm install --global yarn
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Install packages
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
yarn install
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Check for outdated packages
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
yarn outdated
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Upgrades packages
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
yarn upgrade --latest
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Setup Python environment
|
|
38
|
+
|
|
39
|
+
### Create and Use Virtual Environments
|
|
40
|
+
|
|
41
|
+
#### Create a new virtual environment
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
python -m venv .venv
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Activate the virtual environment
|
|
48
|
+
|
|
49
|
+
On Windows:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
.venv\Scripts\activate
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
On MacOS/Linux
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
source .venv/bin/activate
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
#### To confirm the virtual environment is activated, check the location of your Python interpreter:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
where python
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
#### Check python version
|
|
68
|
+
|
|
69
|
+
```sh
|
|
70
|
+
python --version
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
#### Deactivate a virtual environment
|
|
74
|
+
|
|
75
|
+
On Windows:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
.venv\Scripts\deactivate
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Install packages using pip
|
|
82
|
+
|
|
83
|
+
#### Update pip
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
python -m pip install --upgrade pip
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
#### Install packages using a requirements file
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
python -m pip install -r requirements.txt
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
#### Check packages available for update
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
pip list --outdated
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Development
|
|
102
|
+
|
|
103
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
yarn lint
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Format with [Prettier](https://prettier.io/)
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
yarn format
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Unit test with [Vitest](https://vitest.dev/)
|
|
116
|
+
|
|
117
|
+
#### Interactive development
|
|
118
|
+
|
|
119
|
+
```sh
|
|
120
|
+
yarn vitest
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### Command line
|
|
124
|
+
|
|
125
|
+
```sh
|
|
126
|
+
yarn test:unit
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
#### Check test coverage
|
|
130
|
+
|
|
131
|
+
```sh
|
|
132
|
+
yarn test:coverage
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### All tests
|
|
136
|
+
|
|
137
|
+
Convenient command includes: lint, format, unit:test, test:coverage, build, and generate API docs
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
yarn test
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Compile, build and minify for production
|
|
144
|
+
|
|
145
|
+
```sh
|
|
146
|
+
yarn build
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Documentation (using [VitePress](https://vitepress.dev/) and [TypeDoc](https://typedoc.org/))
|
|
150
|
+
|
|
151
|
+
#### Generate API documentation from TSDoc comments
|
|
152
|
+
|
|
153
|
+
This command uses TypeDoc to parse TSDoc comments in the TypeScript source files and generates markdown files in the `docs/api` directory.
|
|
154
|
+
|
|
155
|
+
```sh
|
|
156
|
+
yarn docs:md
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
#### Start local development server for documentation
|
|
160
|
+
|
|
161
|
+
This command starts the VitePress development server. You can view your documentation site locally, usually at `http://localhost:5173`.
|
|
162
|
+
|
|
163
|
+
```sh
|
|
164
|
+
yarn docs:dev
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
#### Build documentation for deployment
|
|
168
|
+
|
|
169
|
+
This command builds the static HTML, CSS, and JavaScript files for the documentation site. The output will be in the `docs/.vitepress/dist` directory.
|
|
170
|
+
|
|
171
|
+
```sh
|
|
172
|
+
yarn docs:build
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
#### Preview the built documentation locally
|
|
176
|
+
|
|
177
|
+
After building the documentation, this command allows you to preview the production build locally before deploying it.
|
|
178
|
+
|
|
179
|
+
```sh
|
|
180
|
+
yarn docs:preview
|
|
181
|
+
```
|