kibana/dev_docs
Spencer cfdb8553ba
[pkgs/peggy] automatically transform peggy files with babel-register and webpack (#145615)
In order to get us closer to the developer experience we want for
packages, we are trying to move package builds out of bazel and instead
we want to build files on demand. In the case of .peggy files this means
importing them directly and teaching babel/jest/webpack how to handle
these imports by automatically transpiling and caching the results.

This change does just that, adding a `@kbn/peggy` package which wraps
peggy for types, and also adds support for defining peggy config
adjacent to a peggy grammar file in a `${basename}.config.json` file.
This file will be parsed and used to configure things like
`allowedStartRules` as described in [the peggy
docs](https://peggyjs.org/documentation.html#generating-a-parser-javascript-api).

This PR also implements `@kbn/peggy-loader` which uses `@kbn/peggy` to
transpile peggy files in webpack, and a peggy transform for both Jest
and our custom babel register hook.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-11-22 11:25:50 -07:00
..
assets [DevDocs] Update kibana_template_no_data_config image (#129641) 2022-04-07 07:48:36 +02:00
contributing add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
getting_started [api-docs] follow the correct schema for frontmatter (#138348) 2022-08-10 17:17:50 -05:00
key_concepts Rename all vis-editors and datavis to visualizations (#144589) 2022-11-05 19:16:20 -04:00
operations [pkgs/peggy] automatically transform peggy files with babel-register and webpack (#145615) 2022-11-22 11:25:50 -07:00
tutorials [Saved Objects] Add documentation covering hidden saved object types (#144647) 2022-11-08 16:42:02 +01:00
api_welcome.mdx Update broken link on api_welcome.mdx (#138198) 2022-08-16 17:31:39 +09:30
kibana_server_core_components.mdx Clean up dev docs (#124271) 2022-02-03 10:09:10 -05:00