harmonyc 0.7.0 → 0.7.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.
Files changed (2) hide show
  1. package/README.md +11 -1
  2. package/package.json +6 -7
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
- And then run it for all `.harmony` files in your `src` folder:
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.0",
4
+ "version": "0.7.2",
5
5
  "author": "Bernát Kalló",
6
6
  "type": "module",
7
7
  "bin": {
8
8
  "harmonyc": "./cli.js"
9
9
  },
10
10
  "exports": {
11
- "./test": {
12
- "types": "./test.d.ts",
13
- "default": "./js_api/js_api.js"
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",
@@ -22,10 +22,9 @@
22
22
  "url": "https://github.com/harmony-ac/code/issues"
23
23
  },
24
24
  "dependencies": {
25
- "@cucumber/cucumber-expressions": "^17.1.0",
26
25
  "fast-glob": "^3.3.2",
27
- "remark-parse": "^11.0.0",
28
- "source-map-js": "^1.2.0"
26
+ "typescript-parsec": "0.3.4",
27
+ "watcher": "^2.3.1"
29
28
  },
30
29
  "license": "MIT",
31
30
  "keywords": [