@maxmalov/ember-cli-jss-shims
v1.1.0
Published
Brings JSS and its plugins to your Ember applications
Downloads
1
Readme
ember-cli-jss-shims
JSS is a better abstraction over CSS for Ember.js Default preset included!
Installation
ember install ember-cli-jss-shims
Usage
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.
Plugins
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());
Collaboration
The following outlines the details of collaborating on this Ember addon.
Installation
git clone https://github.com/maxmalov/ember-cli-jss-shims
this repositorycd ember-cli-jss-shims
npm install
bower install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
License
ember-cli-jss-shims
is licensed under the MIT License.