tangled
alpha
login
or
join now
danabra.mov
/
typelex
56
fork
atom
An experimental TypeSpec syntax for Lexicon
56
fork
atom
overview
issues
1
pulls
2
pipelines
inline config in example
danabra.mov
5 months ago
05b1161f
fbf297f7
+1
-6
2 changed files
expand all
collapse all
unified
split
packages
example
package.json
tspconfig.yaml
+1
-1
packages/example/package.json
···
5
5
"type": "module",
6
6
"scripts": {
7
7
"build": "pnpm run build:lexicons && pnpm run build:codegen",
8
8
-
"build:lexicons": "tsp compile typelex/main.tsp",
8
8
+
"build:lexicons": "tsp compile typelex/main.tsp --emit @typelex/emitter --option '@typelex/emitter.emitter-output-dir={project-root}/lexicons'",
9
9
"build:codegen": "lex gen-server --yes ./src lexicons/app/example/*.json"
10
10
},
11
11
"dependencies": {
-5
packages/example/tspconfig.yaml
···
1
1
-
emit:
2
2
-
- "@typelex/emitter"
3
3
-
options:
4
4
-
"@typelex/emitter":
5
5
-
output-dir: "./lexicons"