Comparing version 6.1.6 to 7.0.0-beta.0
@@ -1,1 +0,1 @@ | ||
{"name":"basscss","version":"6.1.6","homepage":"https://github.com/jxnblk/basscss","authors":["Brent Jackson <jxnblk@gmail.com>"],"description":"Low-level CSS Toolkit","main":"./css/basscss.css","keywords":["CSS","OOCSS","Utility","Framework"],"license":"MIT","ignore":["**/.*","node_modules","bower_components","test","tests"]} | ||
{"name":"basscss","version":"7.0.0-beta.0","homepage":"https://github.com/jxnblk/basscss","authors":["Brent Jackson <jxnblk@gmail.com>"],"description":"Low-level CSS Toolkit","main":"./css/basscss.css","keywords":["CSS","OOCSS","Utility","Framework"],"license":"MIT","ignore":["**/.*","node_modules","bower_components","test","tests"]} |
{ | ||
"name": "basscss", | ||
"version": "6.1.6", | ||
"version": "7.0.0-beta.0", | ||
"description": "Low-level CSS toolkit", | ||
@@ -17,9 +17,13 @@ "style": "src/basscss.css", | ||
"dependencies": { | ||
"basscss-align": "^1.0.0", | ||
"basscss-background-colors": "^1.0.0-beta.1", | ||
"basscss-background-images": "0.0.9", | ||
"basscss-base-buttons": "^1.1.0", | ||
"basscss-base-forms": "^1.2.0", | ||
"basscss-base-forms": "^2.0.0-beta.2", | ||
"basscss-base-reset": "^2.0.1", | ||
"basscss-base-tables": "^1.0.0", | ||
"basscss-base-typography": "^1.1.1", | ||
"basscss-base-typography": "^2.0.0-beta.0", | ||
"basscss-border-colors": "^1.0.0-beta.0", | ||
"basscss-borders": "^1.0.2", | ||
"basscss-btn": "^1.0.0-beta.0", | ||
"basscss-button-blue": "0.0.1", | ||
@@ -36,25 +40,29 @@ "basscss-button-blue-outline": "0.0.3", | ||
"basscss-button-sizes": "^1.0.5", | ||
"basscss-button-solid": "^1.0.0-beta.0", | ||
"basscss-button-transparent": "^1.1.0", | ||
"basscss-color-base": "^1.3.2", | ||
"basscss-color-base": "^2.0.0-beta.0", | ||
"basscss-color-buttons": "^1.0.1", | ||
"basscss-color-forms": "^2.2.1", | ||
"basscss-color-forms": "^3.0.0-beta.0", | ||
"basscss-color-forms-dark": "^1.1.0", | ||
"basscss-color-input-range": "^1.0.0-beta.0", | ||
"basscss-color-progress": "^1.0.0-beta.0", | ||
"basscss-color-tables": "^1.0.2", | ||
"basscss-colors": "^1.0.10", | ||
"basscss-colors": "^2.0.0-beta.1", | ||
"basscss-defaults": "^2.0.1", | ||
"basscss-grid": "^1.0.2", | ||
"basscss-highlight": "0.0.1", | ||
"basscss-input-range": "^1.1.5", | ||
"basscss-input-range": "^2.0.0-beta.0", | ||
"basscss-media-object": "^1.0.4", | ||
"basscss-positions": "^1.0.1", | ||
"basscss-progress": "^1.0.5", | ||
"basscss-progress": "^2.0.0-beta.0", | ||
"basscss-responsive-states": "^1.0.1", | ||
"basscss-responsive-white-space": "0.0.1", | ||
"basscss-table-object": "0.0.7", | ||
"basscss-type-scale": "^1.0.0", | ||
"basscss-ui-utility-groups": "^1.0.1", | ||
"basscss-utility-headings": "0.0.6", | ||
"basscss-utility-layout": "^1.1.0", | ||
"basscss-utility-typography": "^1.1.0", | ||
"basscss-utility-layout": "^2.0.0-beta.1", | ||
"basscss-utility-typography": "^2.0.0-beta.0", | ||
"basscss-white-space": "^1.0.1", | ||
"flex-object": "^1.1.3" | ||
"flex-object": "^2.0.0-beta.0" | ||
}, | ||
@@ -66,2 +74,3 @@ "devDependencies": { | ||
"cssstats": "^1.6.0", | ||
"filesize": "^3.1.2", | ||
"mocha": "^2.2.1", | ||
@@ -68,0 +77,0 @@ "postcss": "^4.1.4", |
@@ -5,2 +5,4 @@ | ||
var cssnext = require('cssnext'); | ||
var cssstats = require('cssstats'); | ||
var filesize = require('filesize'); | ||
var Cleancss = require('clean-css'); | ||
@@ -20,13 +22,14 @@ var pkg = require('../package.json'); | ||
var removeRoot = postcss.plugin('remove-root', function(opts) { | ||
opts = opts || {}; | ||
return function(root) { | ||
root.eachRule(function(rule) { | ||
if (rule.selector === ':root') { | ||
rule.removeSelf(); | ||
} | ||
}); | ||
} | ||
}); | ||
compile = function() { | ||
var meta = [ | ||
'/*', | ||
'', | ||
' Basscss v' + pkg.version, | ||
' ' + pkg.description, | ||
' http://basscss.com', | ||
'', | ||
'*/', | ||
'' | ||
].join('\n'); | ||
var dir = path.join(__dirname, '../src/'); | ||
@@ -47,3 +50,8 @@ var dest = path.join(__dirname, '../css/'); | ||
}); | ||
css = meta + '\n\n' + postcss().use(removeComments()).process(css).css; | ||
css = | ||
postcss() | ||
.use(removeComments()) | ||
.use(removeRoot()) | ||
.process(css) | ||
.css; | ||
var minified = new Cleancss({ | ||
@@ -53,2 +61,29 @@ advanced: false, | ||
var stats = cssstats(css); | ||
console.log('Size: ' + filesize(stats.size)); | ||
console.log('Gzipped: ' + filesize(stats.gzipSize)); | ||
console.log('Rules: ' + stats.rules.length); | ||
console.log('Selectors: ' + stats.aggregates.selectors); | ||
console.log('Declarations: ' + stats.aggregates.declarations); | ||
css = | ||
[ | ||
'/*', | ||
'', | ||
' Basscss v' + pkg.version, | ||
' ' + pkg.description, | ||
' http://basscss.com', | ||
'', | ||
' ' + filesize(stats.size), | ||
' ' + filesize(stats.gzipSize) + ' Gzipped', | ||
' ' + stats.rules.length + ' Rules', | ||
' ' + stats.aggregates.selectors + ' Selectors', | ||
' ' + stats.aggregates.declarations + ' Declarations', | ||
' ' + stats.aggregates.properties.length + ' Properties', | ||
'', | ||
'*/', | ||
'' | ||
].join('\n') + | ||
'\n\n' + | ||
css; | ||
fs.writeFileSync(dest + 'basscss.css', css); | ||
@@ -55,0 +90,0 @@ fs.writeFileSync(dest + 'basscss.min.css', minified); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13
40859
49
10
895
1
+ Addedbasscss-align@^1.0.0
+ Addedbasscss-btn@^1.0.0-beta.0
+ Addedbasscss-type-scale@^1.0.0
+ Addedbasscss-align@1.0.2(transitive)
+ Addedbasscss-background-colors@1.1.3(transitive)
+ Addedbasscss-base-forms@2.0.2(transitive)
+ Addedbasscss-base-typography@2.0.3(transitive)
+ Addedbasscss-border-colors@1.1.3(transitive)
+ Addedbasscss-btn@1.1.1(transitive)
+ Addedbasscss-button-solid@1.0.1(transitive)
+ Addedbasscss-color-base@2.0.2(transitive)
+ Addedbasscss-color-forms@3.0.2(transitive)
+ Addedbasscss-color-input-range@1.0.2(transitive)
+ Addedbasscss-color-progress@1.0.2(transitive)
+ Addedbasscss-colors@2.2.0(transitive)
+ Addedbasscss-input-range@2.0.2(transitive)
+ Addedbasscss-progress@2.0.1(transitive)
+ Addedbasscss-type-scale@1.0.6(transitive)
+ Addedbasscss-utility-layout@2.0.4(transitive)
+ Addedbasscss-utility-typography@2.1.0(transitive)
+ Addedcolors.css@3.0.0(transitive)
+ Addedflex-object@2.0.5(transitive)
- Removedbasscss-base-forms@1.2.0(transitive)
- Removedbasscss-base-typography@1.1.1(transitive)
- Removedbasscss-color-base@1.4.0(transitive)
- Removedbasscss-color-forms@2.2.1(transitive)
- Removedbasscss-colors@1.0.10(transitive)
- Removedbasscss-input-range@1.1.5(transitive)
- Removedbasscss-progress@1.0.5(transitive)
- Removedbasscss-utility-layout@1.1.0(transitive)
- Removedbasscss-utility-typography@1.1.0(transitive)
- Removedflex-object@1.1.3(transitive)
Updatedbasscss-colors@^2.0.0-beta.1
Updatedflex-object@^2.0.0-beta.0