jss-vendor-prefixer
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -0,1 +1,7 @@ | ||
## 0.3.0 / 2015-09-21 | ||
- migrate to es6 | ||
- move examples to jss-examples repository | ||
- simplify packaging | ||
## 0.2.0 / 2015-02-08 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "jss-vendor-prefixer", | ||
"description": "Vendor prefixer for jss", | ||
"version": "0.2.2", | ||
"description": "JSS plugin that handles vendor prefixes on the browser", | ||
"version": "0.3.0", | ||
"author": { | ||
@@ -20,21 +20,36 @@ "name": "Oleg Slobodskoi", | ||
"engines": {}, | ||
"scripts": {}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/mit-license.php" | ||
} | ||
], | ||
"scripts": { | ||
"all": "npm run lint && npm run build", | ||
"test": "opener ./test/index.html", | ||
"build": "npm run clean && npm run build:lib && npm run build:max && npm run build:min", | ||
"clean": "rimraf ./lib/*", | ||
"build:lib": "babel src --out-dir lib", | ||
"build:max": "NODE_ENV=development webpack src/index.js dist/jss-vendor-prefixer.js", | ||
"build:min": "NODE_ENV=production webpack src/index.js dist/jss-vendor-prefixer.min.js", | ||
"lint": "eslint ./src", | ||
"prepublish": "npm run all && git push --tags" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"css-vendor": "^0.2.0" | ||
}, | ||
"main": "./lib/index.js", | ||
"devDependencies": { | ||
"browserify": "6.0.3", | ||
"babel": "^5.6.14", | ||
"babel-core": "^5.6.20", | ||
"babel-eslint": "^3.1.23", | ||
"babel-loader": "^5.3.1", | ||
"eslint": "^0.24.1", | ||
"eslint-config-airbnb": "^0.0.6", | ||
"eslint-config-jss": "^0.1.0", | ||
"eslint-plugin-react": "^2.7.0", | ||
"jss": "^2.3.4", | ||
"opener": "^1.4.1", | ||
"qunitjs": "1.15.0", | ||
"xpkg": "0.2.x", | ||
"jss": "^2.1.0" | ||
"rimraf": "^2.4.3", | ||
"webpack": "^1.11.0" | ||
}, | ||
"peerDependencies": { | ||
"jss": "^2.1.0" | ||
"jss": "^2.3.4" | ||
} | ||
} | ||
} |
@@ -1,36 +0,55 @@ | ||
## Vendor prefixer plugin for JSS | ||
 | ||
This vendor prefixer knows which properties and values are supported in the current runtime and changes only whats required. The best thing is - you don't need to download all of them.Also it is very fast, all checks are cached. [See example.](http://jsstyles.github.io/jss-vendor-prefixer/examples/property/index.html) | ||
## JSS plugin that handles vendor prefixes on the browser | ||
This vendor prefixer knows which properties and values are supported in the | ||
current runtime and changes only whats required. | ||
The best thing is - you don't need to download all of them. | ||
Also it is very fast, all checks are cached. | ||
[Demo](http://jsstyles.github.io/jss-examples/index.html#plugin-jss-vendor-prefixer) - | ||
[JSS](https://github.com/jsstyles/jss) | ||
[](https://gitter.im/jsstyles/jss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
## Usage example | ||
```javascript | ||
{ | ||
'.container': { | ||
transform: 'translateX(100px)' | ||
} | ||
} | ||
import jss from 'jss' | ||
import vendorPrefixer from 'jss-vendor-prefixer' | ||
jss.use(vendorPrefixer) | ||
const styleSheet = jss.createStyleSheet({ | ||
container: { | ||
transform: 'translateX(100px)' | ||
} | ||
}) | ||
``` | ||
```javascript | ||
console.log(styleSheet.toString()) | ||
``` | ||
```css | ||
.container { | ||
transform: -webkit-translateX(100px); | ||
.jss-0-0 { | ||
transform: -webkit-translateX(100px); | ||
} | ||
``` | ||
## Register plugin | ||
```javascript | ||
var jss = require('jss') | ||
var vendorPrefixer = require('jss-vendor-prefixer') | ||
jss.use(vendorPrefixer) | ||
console.log(styleSheet.classes) | ||
``` | ||
```javascript | ||
{ container: "jss-0-0" } | ||
``` | ||
## Run tests | ||
### Locally | ||
```bash | ||
npm i | ||
open test/local.html | ||
npm run test | ||
``` | ||
### From github | ||
[Tests](https://jsstyles.github.com/jss-vendor-prefixer/test) | ||
@@ -37,0 +56,0 @@ ## License |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
15507
296
59
13
11
4
1