Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robert-96/ember-build-time-data
An Ember addon to help you insert JSON data into your application at build time.
https://github.com/robert-96/ember-build-time-data
ember ember-addon json
Last synced: 30 days ago
JSON representation
An Ember addon to help you insert JSON data into your application at build time.
- Host: GitHub
- URL: https://github.com/robert-96/ember-build-time-data
- Owner: Robert-96
- License: mit
- Created: 2020-07-14T20:07:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T22:12:37.000Z (over 4 years ago)
- Last Synced: 2024-11-16T17:39:39.948Z (about 1 month ago)
- Topics: ember, ember-addon, json
- Language: JavaScript
- Homepage: https://robert-96.github.io/ember-build-time-data/
- Size: 1.18 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ember-build-time-data
[![npm version](https://badge.fury.io/js/ember-build-time-data.svg)](https://www.npmjs.com/package/ember-build-time-data)
[![Build Status](https://travis-ci.org/Robert-96/ember-build-time-data.svg?branch=master)](https://travis-ci.org/Robert-96/ember-build-time-data)An Ember addon to help you insert JSON data into your application at build time.
## Installation
```
ember install ember-build-time-data
```## Compatibility
* Ember.js v3.12 or above
* Ember CLI v2.13 or above
* Node.js v10 or above## Documentation
See the [documentation](https://robert-96.github.io/ember-build-time-data/).
## Usage
### Add a JSON file
Create a `data.json` file inside the `/support` folder:
```json
{
"data": {
"id": 1,
"name": "EMERALD",
"color": "#2ecc71"
}
}
```### Import the JSON file
In order you get the data in your components or route you only need to import it:
```js
import data from '../support/data';
```## Contributing
See the [Contributing](CONTRIBUTING.md) guide for details.
## License
This project is licensed under the [MIT License](LICENSE.md).