0.2.2 • Published 5 years ago

codemirror-mode-promql v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

CodeMirror-mode-promql

CircleCI GitHub license

a CodeMirror mode for the PromQL language

sample

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'; by import './index.ts';
  • Run npm install and npm 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

License

MIT

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago