The Query Creator is an open source point-and-click interface used to create Keen Query structure. It's maintained by the team at Keen IO.
npm install query-creator --save
or
yarn add query-creator
<QueryCreator
modalContainer={modalContainer}
projectId={projectId}
readKey={readKey}
masterKey={masterKey}
host={host}
onUpdateQuery={(query) => {}}
onUpdateChartSettings={(chartSettings) => {}}
httpProtocol={httpProtocol}
/>
The @keen.io/query-creator
use two step build to address issues with CSS specificity.
First stage is responsible for transpilation Typescript code to esnext
and emiting type declarations.
Second stage is responsible for code transpilation based on supported browserlist defined in package.json
file and increasing styled-components
css specificity by using plugins from .babelrc
file.
Generator functions transformations are disabled so applications that use this package should take care of it on their own.
- yarn - package manager
node
- make sure it's minimum 10.x.x
- checkout repository
- run
yarn
- to install project dependencies - create a
config.js
file (useconfig.template.js
) and provideKeen
credentials - run application in development mode
yarn start
List of useful commands that could be used by developers. Execution in the command-line interface should be prefixed with yarn
package manager.
Command | Description |
---|---|
lint |
run linter against current application codebase. |
test |
run unit tests. |
build |
builds application distribution. |
prettier |
run code formatter process against current codebase. |
This project uses Conventional Commits to enforce common commit standards.
Command | Description |
---|---|
npx git-cz |
run commit command line interface. |