JSS is a better abstraction over CSS for Ember.js Default preset included!
ember install ember-cli-jss-shims
After installing ember-cli-jss-shims you can import JSS from the jss
package:
import jss from 'jss';
of import the internals directly:
import { create } from 'jss';
Have a look at the vendor shim test to understand what else can be imported this way.
ember-cli-jss-shims
is able to load default preset for JSS. To enable this feature you need to specify a includePresetDefault
flag in application configuration
// config/environment.js
jss: {
includePresetDefault: true
}
Then you can import default preset and setup global JSS instance:
import jss from 'jss';
import preset from 'jss-preset-default';
jss.setup(preset());
Or create a new instance:
import { create } from 'jss';
import preset from 'jss-preset-default';
const jss = create(preset());
The following outlines the details of collaborating on this Ember addon.
git clone https://github.com/maxmalov/ember-cli-jss-shims
this repositorycd ember-cli-jss-shims
npm install
bower install
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
ember-cli-jss-shims
is licensed under the MIT License.