ember-paper
Advanced tools
Comparing version 0.0.15 to 0.0.16
25
index.js
'use strict'; | ||
var path = require('path'); | ||
var autoprefixer = require('broccoli-autoprefixer'); | ||
function AutoprefixerPreprocessor(options) { | ||
this.name = 'ember-cli-autoprefixer'; | ||
this.ext = 'css'; | ||
this.options = options || {}; | ||
} | ||
AutoprefixerPreprocessor.prototype.toTree = function(tree) { | ||
return autoprefixer(tree, { browsers: ['last 2 versions'] }); | ||
}; | ||
module.exports = { | ||
@@ -11,3 +22,3 @@ name: 'ember-paper', | ||
}, | ||
included:function(app){ | ||
included: function(app){ | ||
app.import('vendor/material-icons/styles.css', { destDir: '/' }); | ||
@@ -20,13 +31,7 @@ app.import('vendor/material-icons/fonts/material-icon-font.eot', { destDir: 'assets/fonts' }); | ||
app.import(app.bowerDirectory+'/hammerjs/hammer.js'); | ||
}, | ||
postprocessTree: function(type, tree) { | ||
if (type === 'all' || type === 'styles') { | ||
tree = autoprefixer(tree, { | ||
browsers: ['last 2 versions'] | ||
}); | ||
} | ||
return tree; | ||
setupPreprocessorRegistry: function(type, registry){ | ||
registry.add('css', new AutoprefixerPreprocessor()); | ||
if (registry.remove) registry.remove('css', 'broccoli-autoprefixer'); | ||
} | ||
}; |
{ | ||
"name": "ember-paper", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"directories": { | ||
@@ -5,0 +5,0 @@ "doc": "doc", |
@@ -15,2 +15,14 @@ # Ember Paper | ||
Ember-paper uses sass for its styles. To import them run: | ||
``` | ||
$ npm install --save-dev broccoli-sass | ||
``` | ||
and then create a file in `app/styles/app.scss` and import the styles at the beginning of your file: | ||
```sass | ||
@import 'ember-paper'; | ||
``` | ||
All the components and styles are ready to use in your application templates. | ||
@@ -17,0 +29,0 @@ Navigate through the docs to understand how to use each component. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36
6
6559532
76658