ember-cli-autoprefixer
Advanced tools
Comparing version 0.8.1 to 1.0.0-beta.0
## master | ||
### 0.9.0 | ||
[BREAKING] - Will trigger deprecation warnings from autoprefixer if you still use the `browsers` key in `ember-cli-build`. To maintain this approach, change the key name to `overrideBrowserslist`. The preferred approach is now to use a `.browserlistrc` file, or add a `browserslist` item to your `package.json`. See https://github.com/browserslist/browserslist#readme for more information. | ||
+ Upgrades Ember to 3.13 | ||
+ Upgrades broccoli-autoprofixer to `7.x` | ||
### 0.8.1 | ||
@@ -5,0 +11,0 @@ + Fix issue with asset fingerprinting not taking autoprefixing into account [#39](https://github.com/kimroen/ember-cli-autoprefixer/pull/39) |
@@ -1,2 +0,1 @@ | ||
/*jshint node:true*/ | ||
'use strict'; | ||
@@ -3,0 +2,0 @@ |
23
index.js
@@ -1,10 +0,9 @@ | ||
/* jshint node: true */ | ||
'use strict'; | ||
var autoprefixer = require('broccoli-autoprefixer'); | ||
var defaults = require('lodash/defaults'); | ||
const Autoprefixer = require('broccoli-autoprefixer'); | ||
const treesToProcess = ['css', 'less', 'styl', 'scss', 'sass']; | ||
module.exports = { | ||
name: 'ember-cli-autoprefixer', | ||
name: require('./package').name, | ||
included: function(app) { | ||
@@ -19,6 +18,8 @@ this.app = app; | ||
this.options = defaults(this.app.options.autoprefixer || {}, { | ||
browsers: this.project.targets && this.project.targets.browsers, | ||
enabled: true | ||
}); | ||
this.options = Object.assign( | ||
{ | ||
enabled: true | ||
}, | ||
this.app.options.autoprefixer || {} | ||
); | ||
@@ -30,4 +31,4 @@ this.enabled = this.options.enabled; | ||
postprocessTree: function(type, tree) { | ||
if ((type === 'all' || type === 'styles') && this.enabled) { | ||
tree = autoprefixer(tree, this.options); | ||
if (this.enabled && treesToProcess.includes(type)) { | ||
tree = new Autoprefixer(tree, this.options); | ||
} | ||
@@ -34,0 +35,0 @@ |
The MIT License (MIT) | ||
Copyright (c) 2016 Kim Røen | ||
Copyright (c) 2019 Kim Røen | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
105
package.json
{ | ||
"name": "ember-cli-autoprefixer", | ||
"version": "0.8.1", | ||
"version": "1.0.0-beta.0", | ||
"description": "Process styles in an ember-cli application using Autoprefixer", | ||
"keywords": [ | ||
"ember-addon", | ||
"autoprefixer", | ||
"css", | ||
"prefix", | ||
"preprocess" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/kimroen/ember-cli-autoprefixer.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Kim Røen", | ||
"directories": { | ||
@@ -10,10 +23,45 @@ "doc": "doc", | ||
"scripts": { | ||
"build": "ember build", | ||
"start": "ember server", | ||
"test": "ember try:testall" | ||
"build": "ember build --environment=production", | ||
"lint:hbs": "ember-template-lint .", | ||
"lint:js": "eslint .", | ||
"start": "ember serve", | ||
"test": "ember test", | ||
"test:all": "ember try:each" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/kimroen/ember-cli-autoprefixer.git" | ||
"dependencies": { | ||
"broccoli-autoprefixer": "^7.0.0", | ||
"ember-cli-htmlbars": "^4.2.2" | ||
}, | ||
"devDependencies": { | ||
"@ember/optional-features": "^1.3.0", | ||
"@glimmer/component": "^1.0.0", | ||
"@glimmer/tracking": "^1.0.0", | ||
"babel-eslint": "^10.0.3", | ||
"broccoli-asset-rev": "^3.0.0", | ||
"ember-auto-import": "^1.5.3", | ||
"ember-cli": "~3.16.0", | ||
"ember-cli-babel": "^7.17.2", | ||
"ember-cli-dependency-checker": "^3.2.0", | ||
"ember-cli-eslint": "^5.1.0", | ||
"ember-cli-inject-live-reload": "^2.0.2", | ||
"ember-cli-sri": "^2.1.1", | ||
"ember-cli-template-lint": "^1.0.0-beta.3", | ||
"ember-cli-uglify": "^3.0.0", | ||
"ember-disable-prototype-extensions": "^1.1.3", | ||
"ember-export-application-global": "^2.0.1", | ||
"ember-load-initializers": "^2.1.1", | ||
"ember-maybe-import-regenerator": "^0.1.6", | ||
"ember-qunit": "^4.6.0", | ||
"ember-resolver": "^7.0.0", | ||
"ember-source": "~3.16.0", | ||
"ember-source-channel-url": "^2.0.1", | ||
"ember-try": "^1.4.0", | ||
"eslint-plugin-ember": "^7.7.2", | ||
"eslint-plugin-node": "^11.0.0", | ||
"loader.js": "^4.7.0", | ||
"qunit-dom": "^1.0.0" | ||
}, | ||
"engines": { | ||
"node": "10.* || >= 12" | ||
}, | ||
"bugs": { | ||
@@ -23,39 +71,5 @@ "url": "https://github.com/kimroen/ember-cli-autoprefixer/issues" | ||
"homepage": "https://github.com/kimroen/ember-cli-autoprefixer", | ||
"engines": { | ||
"node": ">= 4" | ||
"ember": { | ||
"edition": "octane" | ||
}, | ||
"author": "Kim Røen", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"broccoli-asset-rev": "^2.2.0", | ||
"ember-cli": "2.3.0", | ||
"ember-cli-app-version": "^1.0.0", | ||
"ember-cli-babel": "^5.1.5", | ||
"ember-cli-dependency-checker": "^1.2.0", | ||
"ember-cli-htmlbars": "^1.0.1", | ||
"ember-cli-htmlbars-inline-precompile": "^0.3.1", | ||
"ember-cli-inject-live-reload": "^1.3.1", | ||
"ember-cli-qunit": "^1.2.1", | ||
"ember-cli-release": "0.2.8", | ||
"ember-cli-sri": "^2.0.0", | ||
"ember-cli-uglify": "^1.2.0", | ||
"ember-disable-prototype-extensions": "^1.1.0", | ||
"ember-disable-proxy-controllers": "^1.0.1", | ||
"ember-export-application-global": "^1.0.4", | ||
"ember-load-initializers": "^0.5.0", | ||
"ember-resolver": "^2.0.3", | ||
"ember-try": "^0.1.2", | ||
"loader.js": "^4.0.0" | ||
}, | ||
"keywords": [ | ||
"ember-addon", | ||
"autoprefixer", | ||
"css", | ||
"prefix", | ||
"preprocess" | ||
], | ||
"dependencies": { | ||
"broccoli-autoprefixer": "^5.0.0", | ||
"lodash": "^4.0.0" | ||
}, | ||
"ember-addon": { | ||
@@ -66,4 +80,7 @@ "configPath": "tests/dummy/config", | ||
"ember-cli-sri" | ||
] | ||
], | ||
"versionCompatibility": { | ||
"ember": ">3.8.0" | ||
} | ||
} | ||
} |
@@ -13,4 +13,5 @@ # Autoprefixer for Ember CLI [![Build Status](https://travis-ci.org/kimroen/ember-cli-autoprefixer.svg?branch=master)](https://travis-ci.org/kimroen/ember-cli-autoprefixer) | ||
## Options | ||
By default ember-cli-autoprefixer passes your projects target browsers (in Ember CLI >= 2.13.0) | ||
to autoprefixer. However, you can manually configure what browsers to target and other options by | ||
Add the target browsers to your package.json as per https://github.com/browserslist/browserslist#readme or use a `.browserslistrc` file. | ||
You can manually configure what browsers to target and other options by | ||
specifying them in your `ember-cli-build.js` (or `Brocfile.js`). An example: | ||
@@ -21,3 +22,3 @@ | ||
autoprefixer: { | ||
browsers: ['last 2 ios version'], | ||
overrideBrowserslist: ['IE11'], | ||
cascade: false | ||
@@ -32,3 +33,3 @@ } | ||
Other options would also go here along with `browsers`, `enabled` and `cascade`. | ||
Other options would also go here along with `overrideBrowserslist`, `enabled` and `cascade`. | ||
@@ -35,0 +36,0 @@ You can read more about these settings and others [over on the Autoprefixer page](https://github.com/postcss/autoprefixer#options). |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
8200
38
27
6
1
+ Addedember-cli-htmlbars@^4.2.2
+ Added@ember/edition-utils@1.2.0(transitive)
+ Added@types/minimatch@3.0.5(transitive)
+ Added@types/symlink-or-copy@1.2.2(transitive)
+ Addedautoprefixer@9.8.8(transitive)
+ Addedbabel-plugin-htmlbars-inline-precompile@3.2.0(transitive)
+ Addedbroccoli-autoprefixer@7.2.0(transitive)
+ Addedbroccoli-debug@0.6.5(transitive)
+ Addedbroccoli-node-api@1.7.0(transitive)
+ Addedbroccoli-node-info@2.2.0(transitive)
+ Addedbroccoli-output-wrapper@2.0.0(transitive)
+ Addedbroccoli-persistent-filter@2.3.1(transitive)
+ Addedbroccoli-plugin@3.1.0(transitive)
+ Addedbrowserslist@4.23.3(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcommon-tags@1.8.2(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedember-cli-babel-plugin-helpers@1.1.1(transitive)
+ Addedember-cli-htmlbars@4.5.0(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedfs-extra@8.1.0(transitive)
+ Addedfs-merger@3.2.1(transitive)
+ Addedfs-tree-diff@2.0.1(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedjson-stable-stringify@1.1.1(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedmatcher-collection@2.0.1(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedpicocolors@0.2.11.1.0(transitive)
+ Addedpostcss@7.0.39(transitive)
+ Addedpostcss-value-parser@4.2.0(transitive)
+ Addedrsvp@4.8.5(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedstrip-bom@4.0.0(transitive)
+ Addedsync-disk-cache@1.3.4(transitive)
+ Addedtree-sync@1.4.0(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedupdate-browserslist-db@1.1.0(transitive)
+ Addedwalk-sync@1.1.42.2.0(transitive)
- Removedlodash@^4.0.0
- Removedansi-styles@3.2.1(transitive)
- Removedautoprefixer@7.2.6(transitive)
- Removedbroccoli-autoprefixer@5.0.0(transitive)
- Removedbrowserslist@2.11.3(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedpostcss@6.0.23(transitive)
- Removedpostcss-value-parser@3.3.1(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedbroccoli-autoprefixer@^7.0.0