Skip to content

Commit

Permalink
Generate a static parser, move tests to vis_type_timelion (#55299) (#…
Browse files Browse the repository at this point in the history
…55401)

* Use generated parser, move tests to vis_type_timelion

* Remove legacy tests

* Create a grunt task for generating a parser
  • Loading branch information
sulemanof authored Jan 22, 2020
1 parent f84ac08 commit 2339e28
Show file tree
Hide file tree
Showing 6 changed files with 1,843 additions and 137 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ bower_components
/built_assets
/html_docs
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
/src/legacy/core_plugins/vis_type_timelion/public/_generated_/**
src/legacy/core_plugins/vis_type_vislib/public/vislib/__tests__/lib/fixtures/mock_data
/src/legacy/ui/public/angular-bootstrap
/src/legacy/ui/public/flot-charts
Expand Down
10 changes: 10 additions & 0 deletions src/legacy/core_plugins/vis_type_timelion/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Vis type Timelion

# Generate a parser
If your grammar was changed in `public/chain.peg` you need to re-generate the static parser. You could use a grunt task:

```
grunt peg:timelion_chain
```

The generated parser will be appeared at `public/_generated_` folder, which is included in `.eslintignore`
Loading

0 comments on commit 2339e28

Please sign in to comment.