Permalink
Browse files

Update dependencies and result

  • Loading branch information...
1 parent 2d1c573 commit 0ce895d72922e38f5292c5d8106663e82bf7ac71 @ai ai committed Jul 10, 2016
Showing with 73 additions and 191 deletions.
  1. +0 −125 .eslintrc
  2. +7 −7 Gemfile.lock
  3. +18 −18 README.md
  4. +4 −1 gulpfile.js
  5. +22 −18 package.json
  6. +7 −7 parsers.js
  7. +7 −7 prefixers.js
  8. +8 −8 preprocessors.js
View
@@ -1,125 +0,0 @@
-{
- "rules": {
- "space-before-function-paren": [2, { "named": "never" }],
- "no-shadow-restricted-names": [2],
- "computed-property-spacing": [2],
- "no-empty-character-class": [2],
- "no-irregular-whitespace": [2],
- "no-unexpected-multiline": [2],
- "no-multiple-empty-lines": [2],
- "space-return-throw-case": [2],
- "no-constant-condition": [2],
- "no-extra-boolean-cast": [2],
- "no-inner-declarations": [2],
- "no-this-before-super": [2],
- "no-use-before-define": [2],
- "no-array-constructor": [2],
- "object-curly-spacing": [2, "always"],
- "no-floating-decimal": [2],
- "no-warning-comments": [2],
- "handle-callback-err": [2],
- "no-unneeded-ternary": [2],
- "operator-assignment": [2],
- "space-before-blocks": [2],
- "no-native-reassign": [2],
- "no-trailing-spaces": [2],
- "operator-linebreak": [2, "after"],
- "consistent-return": [2],
- "no-duplicate-case": [2],
- "no-invalid-regexp": [2],
- "no-negated-in-lhs": [2],
- "constructor-super": [2],
- "no-nested-ternary": [2],
- "no-extend-native": [2],
- "block-scoped-var": [2],
- "no-control-regex": [2],
- "no-sparse-arrays": [2],
- "no-throw-literal": [2],
- "no-return-assign": [2],
- "no-const-assign": [2],
- "no-class-assign": [2],
- "no-extra-parens": [2],
- "no-regex-spaces": [2],
- "no-implied-eval": [2],
- "no-useless-call": [2],
- "no-self-compare": [2],
- "no-octal-escape": [2],
- "no-new-wrappers": [2],
- "no-process-exit": [2],
- "no-catch-shadow": [2],
- "linebreak-style": [2],
- "space-infix-ops": [2],
- "space-unary-ops": [2],
- "no-cond-assign": [2],
- "no-func-assign": [2],
- "no-unreachable": [2],
- "accessor-pairs": [2],
- "no-empty-label": [2],
- "no-fallthrough": [2],
- "no-path-concat": [2],
- "no-new-require": [2],
- "no-spaced-func": [2],
- "no-unused-vars": [2],
- "spaced-comment": [2],
- "no-delete-var": [2],
- "comma-spacing": [2],
- "no-extra-semi": [2],
- "no-extra-bind": [2],
- "arrow-spacing": [2],
- "prefer-spread": [2],
- "no-new-object": [2],
- "no-multi-str": [2],
- "semi-spacing": [2],
- "no-lonely-if": [2],
- "dot-notation": [2],
- "dot-location": [2, "property"],
- "comma-dangle": [2, "never"],
- "no-dupe-args": [2],
- "no-dupe-keys": [2],
- "no-ex-assign": [2],
- "no-obj-calls": [2],
- "valid-typeof": [2],
- "default-case": [2],
- "no-redeclare": [2],
- "no-div-regex": [2],
- "no-sequences": [2],
- "no-label-var": [2],
- "comma-style": [2],
- "brace-style": [2],
- "no-debugger": [2],
- "quote-props": [2, "as-needed"],
- "no-iterator": [2],
- "no-new-func": [2],
- "complexity": [2],
- "new-parens": [2],
- "no-eq-null": [2],
- "no-bitwise": [2],
- "wrap-iife": [2],
- "no-caller": [2],
- "use-isnan": [2],
- "no-labels": [2],
- "no-shadow": [2],
- "camelcase": [2],
- "eol-last": [2],
- "no-octal": [2],
- "no-empty": [2],
- "no-alert": [2],
- "no-proto": [2],
- "no-undef": [2],
- "no-eval": [2],
- "no-with": [2],
- "no-void": [2],
- "max-len": [2, 80],
- "new-cap": [2],
- "eqeqeq": [2],
- "no-new": [2],
- "quotes": [2, "single", "avoid-escape"],
- "indent": [2, 4],
- "semi": [2, "always"],
- "yoda": [2, "never"]
- },
- "env": {
- "mocha": true,
- "node": true
- }
-}
View
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
- chunky_png (1.3.5)
+ chunky_png (1.3.6)
compass (1.0.3)
chunky_png (~> 1.2)
compass-core (~> 1.0.2)
@@ -14,12 +14,12 @@ GEM
sass (>= 3.3.0, < 3.5)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
- ffi (1.9.10)
- multi_json (1.11.2)
- rb-fsevent (0.9.6)
- rb-inotify (0.9.5)
+ ffi (1.9.13)
+ multi_json (1.12.1)
+ rb-fsevent (0.9.7)
+ rb-inotify (0.9.7)
ffi (>= 0.5.0)
- sass (3.4.19)
+ sass (3.4.22)
PLATFORMS
ruby
@@ -29,4 +29,4 @@ DEPENDENCIES
sass
BUNDLED WITH
- 1.10.6
+ 1.12.4
View
@@ -2,7 +2,7 @@
Various benchmarks to have feedback about [PostCSS] perfomance.
-All results below was runned on node 5.3.0, Fedora 22, Intel 5Y70,
+All results below was runned on node 6.3.0, Fedora 23, Intel Core i7-6500U,
8 GB RAM and SSD:
[PostCSS]: https://github.com/postcss/postcss
@@ -12,13 +12,13 @@ All results below was runned on node 5.3.0, Fedora 22, Intel 5Y70,
Compare [CSS processors] for parsings, nested rules, mixins, variables and math:
```
-PostCSS: 39 ms
-Rework: 73 ms (1.9 times slower)
-libsass: 77 ms (1.9 times slower)
-Less: 179 ms (4.5 times slower)
-Stylus: 269 ms (6.8 times slower)
-Stylecow: 271 ms (6.9 times slower)
-Ruby Sass: 1101 ms (28.0 times slower)
+PostCSS: 40 ms
+libsass: 77 ms (1.9 times slower)
+Rework: 87 ms (2.2 times slower)
+Less: 159 ms (4.0 times slower)
+Stylus: 224 ms (5.7 times slower)
+Stylecow: 232 ms (5.9 times slower)
+Ruby Sass: 872 ms (22.0 times slower)
```
To get results on your environment:
@@ -36,13 +36,13 @@ npm test preprocessors
Compare [CSS parsers] written on JS:
```
-Mensch: 30 ms (1.2 times faster)
-CSSOM: 33 ms (1.1 times faster)
+Mensch: 24 ms (1.5 times faster)
+CSSOM: 25 ms (1.4 times faster)
PostCSS: 37 ms
-Rework: 51 ms (1.4 times slower)
-Stylecow: 100 ms (2.7 times slower)
-Gonzales: 158 ms (4.3 times slower)
-Gonzales PE: 163 ms (4.4 times slower)
+Rework: 47 ms (1.3 times slower)
+Stylecow: 74 ms (2.0 times slower)
+Gonzales: 113 ms (3.1 times slower)
+Gonzales PE: 138 ms (3.8 times slower)
```
To get results on your environment:
@@ -59,10 +59,10 @@ npm test parsers
Compare [vendor prefixes tools]:
```
-Autoprefixer: 45 ms
-Stylecow: 215 ms (4.7 times slower)
-nib: 470 ms (10.4 times slower)
-Compass: 2475 ms (54.5 times slower)
+Autoprefixer: 48 ms
+Stylecow: 197 ms (4.1 times slower)
+nib: 409 ms (8.5 times slower)
+Compass: 2398 ms (50.1 times slower)
```
To get results on your environment:
View
@@ -21,7 +21,10 @@ gulp.task('clean', function (done) {
gulp.task('bootstrap', function (done) {
var cache = path.join(__dirname, 'cache', 'bootstrap.css');
- if ( fs.existsSync(cache) ) return done();
+ if ( fs.existsSync(cache) ) {
+ done();
+ return;
+ }
var load = require('load-resources');
load('github:twbs/bootstrap:dist/css/bootstrap.css', '.css', function (f) {
View
@@ -2,37 +2,41 @@
"private": true,
"dependencies": {
"stylecow-plugin-nested-rules": "5.0.1",
- "stylecow-plugin-variables": "5.1.0",
- "stylecow-plugin-prefixes": "6.0.1",
+ "stylecow-plugin-variables": "5.1.1",
+ "stylecow-plugin-prefixes": "6.0.3",
+ "eslint-config-postcss": "2.0.2",
"stylecow-plugin-calc": "2.0.0",
- "postcss-simple-vars": "1.2.0",
+ "postcss-simple-vars": "3.0.0",
"gulp-bench-summary": "0.1.0",
"load-resources": "0.1.1",
"postcss-nested": "1.0.0",
- "postcss-mixins": "3.0.2",
- "gulp-sequence": "0.4.4",
- "stylecow-core": "2.2.2",
- "autoprefixer": "6.2.3",
- "postcss-calc": "5.0.0",
- "gonzales-pe": "3.2.1",
- "gulp-eslint": "1.1.1",
+ "postcss-mixins": "5.0.0",
+ "gulp-sequence": "0.4.5",
+ "stylecow-core": "2.3.0",
+ "autoprefixer": "6.3.7",
+ "postcss-calc": "5.2.1",
+ "gonzales-pe": "3.3.6",
+ "gulp-eslint": "3.0.1",
"gulp-bench": "1.1.0",
"gulp-util": "3.0.7",
- "node-sass": "3.4.2",
- "through2": "2.0.0",
+ "node-sass": "3.8.0",
+ "through2": "2.0.1",
"gonzales": "1.0.7",
- "fs-extra": "0.26.3",
- "postcss": "5.0.13",
+ "fs-extra": "0.30.0",
+ "postcss": "5.0.21",
"mensch": "0.3.1",
- "stylus": "0.53.0",
+ "stylus": "0.54.5",
"rework": "1.0.1",
- "cssom": "0.3.0",
- "less": "2.5.3",
+ "cssom": "0.3.1",
+ "less": "2.7.1",
"myth": "1.5.0",
- "gulp": "3.9.0",
+ "gulp": "3.9.1",
"nib": "1.1.0"
},
"scripts": {
"test": "gulp"
+ },
+ "eslintConfig": {
+ "extends": "eslint-config-postcss/es5"
}
}
View
@@ -1,12 +1,12 @@
-/* Results on node 5.3.0, Fedora 22, Intel 5Y70, 8 GB RAM and SSD:
+/* Results on node 6.3.0, Fedora 23, Intel Core i7-6500U, 8 GB RAM and SSD:
-Mensch: 30 ms (1.2 times faster)
-CSSOM: 33 ms (1.1 times faster)
+Mensch: 24 ms (1.5 times faster)
+CSSOM: 25 ms (1.4 times faster)
PostCSS: 37 ms
-Rework: 51 ms (1.4 times slower)
-Stylecow: 100 ms (2.7 times slower)
-Gonzales: 158 ms (4.3 times slower)
-Gonzales PE: 163 ms (4.4 times slower)
+Rework: 47 ms (1.3 times slower)
+Stylecow: 74 ms (2.0 times slower)
+Gonzales: 113 ms (3.1 times slower)
+Gonzales PE: 138 ms (3.8 times slower)
*/
var path = require('path');
View
@@ -1,9 +1,9 @@
-/* Results on node 5.3.0, Fedora 22, Intel 5Y70, 8 GB RAM and SSD:
+/* Results on node 6.3.0, Fedora 23, Intel Core i7-6500U, 8 GB RAM and SSD:
-Autoprefixer: 45 ms
-Stylecow: 215 ms (4.7 times slower)
-nib: 470 ms (10.4 times slower)
-Compass: 2475 ms (54.5 times slower)
+Autoprefixer: 48 ms
+Stylecow: 197 ms (4.1 times slower)
+nib: 409 ms (8.5 times slower)
+Compass: 2398 ms (50.1 times slower)
*/
var exec = require('child_process').exec;
@@ -28,15 +28,15 @@ stylecower.use(require('stylecow-plugin-prefixes'));
// nib
var stylus = require('stylus');
-var styl = "@import 'nib';\n" + css
+var styl = '@import \'nib\';\n' + css
.replace('@charset "UTF-8";', '')
.replace(/\}/g, '}\n').replace(/(\w)\[[^\]]+\]/g, '$1')
.replace(/filter:[^;}]+;?/ig, '')
.replace(/(@keyframes[^\{]+)\{/ig, '$1 {')
.replace(/url\([^\)]+\)/ig, 'white');
// Compass
-var scss = "@import 'compass/css3';\n" + css
+var scss = '@import \'compass/css3\';\n' + css
.replace(/([^-])transform:([^;}]+)(;|})/g, '$1@include transform($2)$3')
.replace(/transition:([^;}]+)(;|})/g, '@include transition($1)$2')
.replace(/background(-image)?:((linear|radial)([^;}]+))(;|})/g,
View
@@ -1,12 +1,12 @@
-/* Results on node 5.3.0, Fedora 22, Intel 5Y70, 8 GB RAM and SSD:
+/* Results on node 6.3.0, Fedora 23, Intel Core i7-6500U, 8 GB RAM and SSD:
-PostCSS: 39 ms
-Rework: 73 ms (1.9 times slower)
-libsass: 77 ms (1.9 times slower)
-Less: 179 ms (4.5 times slower)
-Stylus: 269 ms (6.8 times slower)
-Stylecow: 271 ms (6.9 times slower)
-Ruby Sass: 1101 ms (28.0 times slower)
+PostCSS: 40 ms
+libsass: 77 ms (1.9 times slower)
+Rework: 87 ms (2.2 times slower)
+Less: 159 ms (4.0 times slower)
+Stylus: 224 ms (5.7 times slower)
+Stylecow: 232 ms (5.9 times slower)
+Ruby Sass: 872 ms (22.0 times slower)
*/
var exec = require('child_process').exec;

0 comments on commit 0ce895d

Please sign in to comment.