Skip to content

Commit 6feabcd

Browse files
authored
Generate a static parser, move tests to vis_type_timelion (#55299)
* Use generated parser, move tests to vis_type_timelion * Remove legacy tests * Create a grunt task for generating a parser
1 parent d3cef47 commit 6feabcd

File tree

6 files changed

+1843
-137
lines changed

6 files changed

+1843
-137
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ bower_components
99
/built_assets
1010
/html_docs
1111
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
12+
/src/legacy/core_plugins/vis_type_timelion/public/_generated_/**
1213
src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data
1314
/src/legacy/ui/public/angular-bootstrap
1415
/src/legacy/ui/public/flot-charts
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Vis type Timelion
2+
3+
# Generate a parser
4+
If your grammar was changed in `public/chain.peg` you need to re-generate the static parser. You could use a grunt task:
5+
6+
```
7+
grunt peg:timelion_chain
8+
```
9+
10+
The generated parser will be appeared at `public/_generated_` folder, which is included in `.eslintignore`

0 commit comments

Comments
 (0)