@jinntec/fore 1.7.2 → 1.9.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/README.md +24 -7
- package/dist/fore-dev.js +2 -2
- package/dist/fore-dev.js.map +1 -1
- package/dist/fore.js +2 -2
- package/dist/fore.js.map +1 -1
- package/index.js +1 -0
- package/package.json +7 -2
- package/src/actions/fx-call.js +74 -0
- package/src/fx-fore.js +25 -5
- package/src/fx-instance.js +14 -5
- package/src/fx-submission.js +54 -146
- package/src/ui/fx-control.js +17 -6
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ Include the following snippet at end of body:
|
|
|
134
134
|
```
|
|
135
135
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@jinntec/fore@latest/dist/fore-all.js"></script>
|
|
136
136
|
```
|
|
137
|
-
## Installation
|
|
137
|
+
## Installation width npm
|
|
138
138
|
|
|
139
139
|
Run
|
|
140
140
|
|
|
@@ -142,6 +142,7 @@ Run
|
|
|
142
142
|
|
|
143
143
|
in your project to install it.
|
|
144
144
|
|
|
145
|
+
|
|
145
146
|
Import it in your HTML page like so:
|
|
146
147
|
|
|
147
148
|
```
|
|
@@ -155,18 +156,17 @@ Import it in your HTML page like so:
|
|
|
155
156
|
If you intend to hack it yourself ...
|
|
156
157
|
|
|
157
158
|
> you need to have node installed on your machine (using 15.1.0)
|
|
158
|
-
|
|
159
|
+
|
|
159
160
|
* clone this repo to your machine
|
|
160
161
|
* run `npm i` to install dependencies
|
|
161
162
|
|
|
162
163
|
## Running demos and docs
|
|
163
164
|
|
|
164
165
|
1. checkout this repo or download the sources
|
|
165
|
-
1. change to the rootfolder
|
|
166
|
-
1.
|
|
167
|
-
1.
|
|
168
|
-
|
|
169
|
-
starts the testserver with 'doc/index.html' as entry page. This will send you to 'doc/demos.html' as an
|
|
166
|
+
1. change to the rootfolder and execute following command in your shell
|
|
167
|
+
1. `npm install` to install Fore dependencies
|
|
168
|
+
1. `npm run install-demos` to install Demo dependencies
|
|
169
|
+
1. `npm run start` starts the testserver with 'doc/index.html' as entry page. This will send you to 'doc/demos.html' as an
|
|
170
170
|
entry point. This lists out running examples to learn and copy from.
|
|
171
171
|
|
|
172
172
|
## Running test suite
|
|
@@ -181,6 +181,23 @@ Alternatively you can run the test suite from the commandline once:
|
|
|
181
181
|
npm run test
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
+
## Running the integration tests
|
|
185
|
+
|
|
186
|
+
Start the demo server and open cypress. Choose your browser and run all tests from there.
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
npm run start
|
|
190
|
+
npx cypress open
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Alternatively, start the demo server and run the tests headlessly:
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
npm run start
|
|
197
|
+
npx cypress run
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
|
|
184
201
|
## Building a package
|
|
185
202
|
|
|
186
203
|
```npm run build``` creates two bundles in 'dist' directory.
|