Ember-materialize-shim ![Build Status](https://camo.githubusercontent.com/42dada5abe10c4e1b5057d45055e1e6594ba3e987e66e6e7e1a4ebbb5874fdac/68747470733a2f2f7472617669732d63692e6f72672f6c6576616e746f2d66696e616e6369616c2f656d6265722d6d6174657269616c697a652d7368696d2e7376673f6272616e63683d6d6173746572)
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 repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember 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/.