ember-build-time-data

0.1.2 • Public • Published

ember-build-time-data

Build Status

An Ember addon to help you insert JSON data into your application at build time.

Compatibility

  • Ember.js v3.12 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-build-time-data

Usage

Add a JSON file

Create a data.json file inside the /support folder:

{
    "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:

import data from '../support/data';

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i ember-build-time-data

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

8.01 kB

Total Files

11

Last publish

Collaborators

  • robert-96