JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 58
  • Score
    100M100P100Q70947F
  • License MIT

A simple shim for using Materialize in Ember.js apps

Package Exports

  • ember-materialize-shim

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-materialize-shim) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Ember-materialize-shim

Build Status Greenkeeper badge Ember Observer Score dependencies Status devDependencies Status

FASTBOOT COMPATIBLE

A very simple shim to add Materialize SASS and JavaScript resources to your ember.js app

Use

Install this addon into your ember.js app, using ember-cli.

Reinstall node-sass to ensure that you have an older version, which is required to circumvent an outstanding issue.

ember install ember-materialize-shim
npm uninstall node-sass && npm install

And then you can import materialize styles

app/styles/app.scss

@import "materialize"

And import materialize javascript

my-file.js

import Materialize from 'materialize';

Optionally, you may omit the JavaScript component of Materialize, by customizing your ember-cli-build.js

var app = new EmberApp(defaults, {
  ...
  'materialize-shim': {
    omitJS: true
  }
});

Contributing

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.