harmonyc 0.7.0 → 0.7.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/README.md +11 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -10,7 +10,17 @@ You need to have Node.js installed. Then you can install Harmony Code in your pr
|
|
|
10
10
|
npm install harmonyc
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Then add it to your `vitest.config.js` or `vite.config.js` file, and specify which folder to watch for `.harmony` files:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import harmony from 'harmonyc/vitest'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
plugins: [harmony({ watchDir: 'src' })],
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
You can run it manually for all `.harmony` files in your `src` folder:
|
|
14
24
|
|
|
15
25
|
```bash
|
|
16
26
|
harmonyc src/**/*.harmony
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harmonyc",
|
|
3
3
|
"description": "Harmony Code - model-driven BDD for Vitest",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"author": "Bernát Kalló",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
8
|
"harmonyc": "./cli.js"
|
|
9
9
|
},
|
|
10
10
|
"exports": {
|
|
11
|
-
"./
|
|
12
|
-
"types": "./
|
|
13
|
-
"default": "./
|
|
11
|
+
"./vitest": {
|
|
12
|
+
"types": "./vitest/index.d.ts",
|
|
13
|
+
"default": "./vitest/index.js"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://github.com/harmony-ac/code#readme",
|