rf-touchstone 0.0.0 → 0.0.1
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/coverage/coverage-badge.svg +4 -4
- package/development.md +49 -25
- package/dist/Touchstone.cjs.js +7 -7
- package/dist/Touchstone.es.js +238 -168
- package/dist/Touchstone.umd.js +7 -7
- package/dist/touchstone.d.ts +125 -19
- package/package.json +23 -21
- package/readme.md +16 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
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
2
|
<title>coverage: 100%</title>
|
|
3
|
-
<linearGradient id="
|
|
3
|
+
<linearGradient id="dSfks" x2="0" y2="100%">
|
|
4
4
|
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
|
|
5
5
|
<stop offset="1" stop-opacity=".1"/>
|
|
6
6
|
</linearGradient>
|
|
7
|
-
<mask id="
|
|
8
|
-
<g mask="url(#
|
|
7
|
+
<mask id="rwmqg"><rect width="1033" height="200" rx="30" fill="#FFF"/></mask>
|
|
8
|
+
<g mask="url(#rwmqg)">
|
|
9
9
|
<rect width="603" height="200" fill="#555"/>
|
|
10
10
|
<rect width="430" height="200" fill="#49c31a" x="603"/>
|
|
11
|
-
<rect width="1033" height="200" fill="url(#
|
|
11
|
+
<rect width="1033" height="200" fill="url(#dSfks)"/>
|
|
12
12
|
</g>
|
|
13
13
|
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
|
|
14
14
|
<text x="60" y="148" textLength="503" fill="#000" opacity="0.25">coverage</text>
|
package/development.md
CHANGED
|
@@ -13,55 +13,76 @@ node -v
|
|
|
13
13
|
### Install yarn
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
|
|
16
|
+
yarn set version stable
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### Check the current version of yarn
|
|
20
20
|
|
|
21
21
|
```sh
|
|
22
|
-
yarn
|
|
22
|
+
yarn -v
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
###
|
|
25
|
+
### Install packages
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
|
-
yarn
|
|
28
|
+
yarn
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
###
|
|
31
|
+
### Check for outdated packages, and upgrade packages
|
|
32
32
|
|
|
33
33
|
```sh
|
|
34
|
-
yarn upgrade
|
|
34
|
+
yarn upgrade-interactive
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
## Setup Python environment
|
|
38
38
|
|
|
39
39
|
### Create and Use Virtual Environments
|
|
40
40
|
|
|
41
|
-
####
|
|
41
|
+
#### Install uv
|
|
42
|
+
|
|
43
|
+
`uv` is a fast Python package installer and virtual environment manager. You can install `uv` by running the following command:
|
|
42
44
|
|
|
43
45
|
```sh
|
|
44
|
-
|
|
46
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
45
47
|
```
|
|
46
48
|
|
|
47
|
-
####
|
|
49
|
+
#### Add the `uv` executable to your system's PATH
|
|
48
50
|
|
|
49
|
-
|
|
51
|
+
Source the appropriate environment file for your shell:
|
|
50
52
|
|
|
51
53
|
```sh
|
|
52
|
-
|
|
54
|
+
# On Bash, Zsh, or Sh:
|
|
55
|
+
source $HOME/.local/bin/env
|
|
56
|
+
# On Fish:
|
|
57
|
+
source $HOME/.local/bin/env.fish
|
|
53
58
|
```
|
|
54
59
|
|
|
55
|
-
|
|
60
|
+
You may need to restart your shell or open a new terminal session for the changes to take effect.
|
|
61
|
+
|
|
62
|
+
#### Create and Use Virtual Environments with uv
|
|
63
|
+
|
|
64
|
+
Create a new virtual environment:
|
|
56
65
|
|
|
57
66
|
```sh
|
|
67
|
+
uv venv .venv
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
#### Activate the virtual environment
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
# On Windows:
|
|
74
|
+
.venv\Scripts\activate
|
|
75
|
+
# On MacOS/Linux:
|
|
58
76
|
source .venv/bin/activate
|
|
59
77
|
```
|
|
60
78
|
|
|
61
79
|
#### To confirm the virtual environment is activated, check the location of your Python interpreter:
|
|
62
80
|
|
|
63
81
|
```sh
|
|
82
|
+
# On Windows:
|
|
64
83
|
where python
|
|
84
|
+
# On MacOS/Linux:
|
|
85
|
+
which python
|
|
65
86
|
```
|
|
66
87
|
|
|
67
88
|
#### Check python version
|
|
@@ -70,32 +91,33 @@ where python
|
|
|
70
91
|
python --version
|
|
71
92
|
```
|
|
72
93
|
|
|
73
|
-
####
|
|
94
|
+
#### Install packages using uv
|
|
74
95
|
|
|
75
|
-
|
|
96
|
+
Install packages using a requirements file:
|
|
76
97
|
|
|
77
98
|
```sh
|
|
78
|
-
.
|
|
99
|
+
uv pip install -r requirements.txt
|
|
79
100
|
```
|
|
80
101
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
#### Update pip
|
|
102
|
+
#### Check packages available for update
|
|
84
103
|
|
|
85
104
|
```sh
|
|
86
|
-
|
|
105
|
+
uv pip list --outdated
|
|
87
106
|
```
|
|
88
107
|
|
|
89
|
-
####
|
|
108
|
+
#### Upgrade packages
|
|
90
109
|
|
|
91
110
|
```sh
|
|
92
|
-
|
|
111
|
+
uv pip install -r requirements.txt --upgrade
|
|
93
112
|
```
|
|
94
113
|
|
|
95
|
-
####
|
|
114
|
+
#### Deactivate a virtual environment
|
|
96
115
|
|
|
97
116
|
```sh
|
|
98
|
-
|
|
117
|
+
# On Windows:
|
|
118
|
+
.venv\Scripts\deactivate
|
|
119
|
+
# On MacOS/Linux:
|
|
120
|
+
deactivate
|
|
99
121
|
```
|
|
100
122
|
|
|
101
123
|
## Development
|
|
@@ -116,8 +138,10 @@ yarn format
|
|
|
116
138
|
|
|
117
139
|
#### Interactive development
|
|
118
140
|
|
|
141
|
+
Runs the tests in interactive watch mode:
|
|
142
|
+
|
|
119
143
|
```sh
|
|
120
|
-
yarn
|
|
144
|
+
yarn test:watch
|
|
121
145
|
```
|
|
122
146
|
|
|
123
147
|
#### Command line
|