[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

maxmalov/ember-cli-jss-shims

Repository files navigation

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 repository
  • cd ember-cli-jss-shims
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember 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.

About

Ember CLI shims for jss and related plugins

Resources

License

Stars

Watchers

Forks

Packages

No packages published