File tree 6 files changed +199
-3
lines changed
lib/gen/antlrv4/ts-antlrv4
6 files changed +199
-3
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ frontend/.postinstall
44
44
lib /gen /* /* /* .go
45
45
lib /gen /* /* /* .ts
46
46
lib /gen /featuresearch /**
47
+ lib /gen /antlrv4 /ts-antlrv4 /antlr /**
47
48
48
49
# Ignore coverage files
49
50
coverage
Original file line number Diff line number Diff line change @@ -247,11 +247,17 @@ node-test: playwright-install
247
247
# ###############################
248
248
# ANTLR
249
249
# ###############################
250
- antlr-gen : clean-antlr
250
+ antlr-gen : clean-antlr antlr-gen-go antlr-gen-ts
251
+
252
+ antlr-gen-go :
251
253
java -jar /usr/local/lib/antlr-$$ {ANTLR4_VERSION}-complete.jar -Dlanguage=Go -o lib/gen/featuresearch/parser -visitor -no-listener antlr/FeatureSearch.g4
252
254
255
+ antlr-gen-ts :
256
+ java -jar /usr/local/lib/antlr-$$ {ANTLR4_VERSION}-complete.jar -Dlanguage=TypeScript -o lib/gen/antlrv4/ts-antlrv4 -visitor antlr/FeatureSearch.g4
257
+
253
258
clean-antlr :
254
259
rm -rf lib/gen/featuresearch/parser
260
+ rm -rf lib/gen/antlrv4/ts-antlrv4/antlr
255
261
256
262
# ###############################
257
263
# License
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " @webstatus.dev/ts-antlrv4" ,
3
+ "version" : " 1.0.0" ,
4
+ "description" : " TypeScript ANTLR4 generated code for webstatus.dev" ,
5
+ "main" : " dist/index.js" ,
6
+ "types" : " dist/index.d.ts" ,
7
+ "license" : " Apache-2.0" ,
8
+ "scripts" : {
9
+ "build" : " tsc" ,
10
+ "clean" : " rimraf dist"
11
+ },
12
+ "dependencies" : {
13
+ "antlr4" : " ^4.13.1"
14
+ },
15
+ "devDependencies" : {
16
+ "@types/antlr4" : " ^4.9.3" ,
17
+ "typescript" : " ^5.0.0" ,
18
+ "rimraf" : " ^5.0.0"
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "target" : " ES2020" ,
4
+ "module" : " ES2020" ,
5
+ "moduleResolution" : " node" ,
6
+ "declaration" : true ,
7
+ "outDir" : " ./dist" ,
8
+ "strict" : true ,
9
+ "esModuleInterop" : true ,
10
+ "skipLibCheck" : true ,
11
+ "forceConsistentCasingInFileNames" : true
12
+ },
13
+ "include" : [
14
+ " antlr/**/*.ts"
15
+ ],
16
+ "exclude" : [
17
+ " node_modules" ,
18
+ " dist"
19
+ ]
20
+ }
Original file line number Diff line number Diff line change 9
9
"license" : " Apache-2.0" ,
10
10
"workspaces" : [
11
11
" frontend" ,
12
- " lib/gen/openapi/ts-webstatus.dev-backend-types"
12
+ " lib/gen/openapi/ts-webstatus.dev-backend-types" ,
13
+ " lib/gen/antlrv4/ts-antlrv4"
13
14
],
14
15
"devDependencies" : {
15
16
"@playwright/test" : " ^1.50.1" ,
You can’t perform that action at this time.
0 commit comments