Newtonian Physics Mockumentary
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@maxmalov/ember-cli-jss-shims

1.1.0 • Public • Published

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.

Install

npm i @maxmalov/ember-cli-jss-shims

DownloadsWeekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • avatar