@projectcaluma/ember-analytics
Version:
Ember addon for Caluma analytics.
83 lines (51 loc) • 4.71 kB
Markdown
# 
[](https://github.com/projectcaluma/ember-caluma/actions?query=workflow%3ATest)
[](https://automate.browserstack.com/public-build/RFNMT2hyTnRjNVZkUitkWUl2d3BWK21KbnU3MU1tTGpHS2tOVHVCU1RrZz0tLXJjZ1J5VEZ6ZmtJWVpFdHpDRnREcFE9PQ==--3034affde596526379b7a0a19798a7ba1f79154c)
[](https://codecov.io/gh/projectcaluma/ember-caluma)
[](https://github.com/prettier/prettier)
[](https://spdx.org/licenses/LGPL-3.0-or-later.html)
The Ember.js addons for [Caluma](https://caluma.io) - a collaborative form editing service.
## Browser support
|  |  |  |  |
| :-------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------: |
| last 2 versions | last 2 versions | last 2 versions | last 2 versions |
## Compatibility
`@projectcaluma/ember-*` packages are guaranteed to work with the following LTS versions of Ember.js:
- 5.4
- 4.12
## Documentation
You can find the interactive documentation [here](https://docs.caluma.io/ember-caluma).
## Contributing
### Installation
- `git clone git@github.com:projectcaluma/ember-caluma`
- `cd ember-caluma`
- `pnpm install`
### Linting
- `pnpm lint`
### Running tests
- `pnpm --filter @projectcaluma/ember-[package] exec ember test` – Runs the test suite on the current Ember version
- `pnpm --filter @projectcaluma/ember-[package] exec ember test --server` – Runs the test suite in "watch mode"
- `pnpm --filter @projectcaluma/ember-[package] exec ember try:each` – Runs the test suite against multiple Ember versions
Cross-browser testing provided by:
<a href="https://browserstack.com"><img alt="BrowserStack" src="https://user-images.githubusercontent.com/6150577/69328224-24f1d680-0c4f-11ea-8b02-5670334923a3.png" height="50"></a>
### Running the dummy application
#### With a mocked [Mirage.js](https://github.com/miragejs/ember-cli-mirage) backend
- `pnpm start`
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
#### With a dockerized [Caluma](https://github.com/projectcaluma/caluma) backend
- `docker compose up -d`
- `pnpm start-proxy`
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
### Updating the schema
The addon includes a mirage server for mocking Caluma's GraphQL API, which is generated from the GraphQL schema definition. If the upstream GraphQL schema changed you can update the addon by running
```bash
docker compose up -d
pnpm update-schema
pnpm update-possible-types
```
### Releasing
To release a new version, head over to [Actions](https://github.com/projectcaluma/ember-caluma/actions?query=workflow%3ARelease) and trigger a workflow run.
This will automatically check if a new version can be released, generate a changelog, draft a release and publish it on NPM.
## License
This project is licensed under the [LGPL-3.0-or-later license](LICENSE).
For further information on our license choice, you can read up on the [corresponding GitHub issue](https://github.com/projectcaluma/ember-caluma/issues/613).