0.2.2 • Published 5 years ago
codemirror-mode-promql v0.2.2
CodeMirror-mode-promql
a CodeMirror mode for the PromQL language
Samples coming from https://github.com/infinityworks/prometheus-example-queries
Playground
https://nexucis.github.io/codemirror-mode-promql/
Usage
Contributions
Any contribution or suggestion would be really appreciated. Feel free to use the Issue section or to send a pull request.
Development
In case you want to contribute and change the code by yourself, an easy way to do it is to:
- Copy all file in the folder src in the folder example/angular-promql/src
- Modify the file main.ts and replace the line
import 'codemirror-mode-promql';
byimport './index.ts';
Run
npm install
andnpm start
in the folder example/angular-promql/src
Once you modified the code of the lib, don't forget to report the changes in the tracked corresponding file :).
Deploy to Github Page
npm install -g angular-cli-ghpages
- go on examples/angular-promql
ng build --prod --base-href "https://nexucis.github.io/codemirror-mode-promql/"
ngh -d dist/angular-promql