ember-cli-rework
v1.0.0
Published
Use Rework CSS in your Ember app
Downloads
2
Readme
ember-cli-rework
Use Rework CSS postprocessing in your Ember app.
Installation
For Ember CLI >= 0.2.3
ember install ember-cli-rework
For Ember CLI < 0.2.3
ember install:addon ember-cli-rework
Usage
This addon will, by default, look for your css files in app/styles
and process them.
However, you will have tell the addon which Rework plugins to use in your Brocfile.js
:
var vars = require('rework-vars');
var customMedia = require('rework-custom-media');
var reworkNPM = require('rework-npm');
var app = EmberApp({
rework: {
plugins: [reworkNPM(), vars(), customMedia()]
}
});
A more involved plugin example:
var vars = require('rework-vars');
var classPrefix = require('rework-class-prefix');
var flexGrid = require('rework-flex-grid');
var colors = require('rework-colors')
var app = EmberApp({
rework: {
plugins[
vars(),
classPrefix('em-'),
flexGrid({
columns: 12,
classNames: {
grid: 'g',
row: 'r',
col: 'c'
}
}),
colors()
]
}
});
Known Issues
rework-npm
doesn't work in tandem withember-cli-divshot
Development
Installation
git clone
this repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
License
MIT
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander (@4lpine).