@vnejs/helpers.tokenize-exec-line 0.1.4 → 0.1.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/helpers.tokenize-exec-line",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,18 +10,19 @@
|
|
|
10
10
|
"tsconfig.json"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"test": "npm run build && node tests.js",
|
|
14
13
|
"build": "npx @vnejs/monorepo package",
|
|
15
14
|
"publish:major:plugin": "npm run publish:major",
|
|
16
15
|
"publish:minor:plugin": "npm run publish:minor",
|
|
17
16
|
"publish:patch:plugin": "npm run publish:patch",
|
|
18
17
|
"publish:major": "npx @vnejs/monorepo publish major --access public",
|
|
19
18
|
"publish:minor": "npx @vnejs/monorepo publish minor --access public",
|
|
20
|
-
"publish:patch": "npx @vnejs/monorepo publish patch --access public"
|
|
19
|
+
"publish:patch": "npx @vnejs/monorepo publish patch --access public",
|
|
20
|
+
"test": "npx @vnejs/monorepo test"
|
|
21
21
|
},
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@vnejs/configs.ts-common": "~0.0
|
|
25
|
+
"@vnejs/configs.ts-common": "~0.1.0",
|
|
26
|
+
"@vnejs/configs.vitest": "~0.1.0"
|
|
26
27
|
}
|
|
27
28
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
|
|
3
|
+
import { tokenizeExecLine } from "../index.js";
|
|
4
|
+
|
|
5
|
+
describe("tokenizeExecLine", () => {
|
|
6
|
+
it.each([
|
|
7
|
+
["call label", ["call", "label"]],
|
|
8
|
+
["jump foo 42 true", ["jump", "foo", 42, true]],
|
|
9
|
+
["set x -3.5 false", ["set", "x", -3.5, false]],
|
|
10
|
+
['say "hello world"', ["say", "hello world"]],
|
|
11
|
+
["wrap {a:1}", ["wrap", "a:1"]],
|
|
12
|
+
])("%s → %j", (input, expected) => {
|
|
13
|
+
expect(tokenizeExecLine(input)).toEqual(expected);
|
|
14
|
+
});
|
|
15
|
+
});
|