tachyons-widths
Advanced tools
Comparing version 0.4.1 to 1.0.0
@@ -1,39 +0,29 @@ | ||
// Gulp tasks for Tachyons | ||
// Load plugins | ||
var gulp = require('gulp'), | ||
watch = require('gulp-watch'), | ||
prefix = require('gulp-autoprefixer'), | ||
minifyCSS = require('gulp-minify-css'), | ||
sass = require('gulp-sass'), | ||
rename = require('gulp-rename'), | ||
basswork = require('gulp-basswork'), | ||
minifyCss = require('gulp-minify-css'), | ||
transform = require('vinyl-transform'), | ||
size = require('gulp-size'), | ||
rename = require('gulp-rename'); | ||
webserver = require('gulp-webserver'); | ||
// Task that compiles scss files down to good old css | ||
gulp.task('pre-process', function(){ | ||
gulp.src('./widths.scss') | ||
.pipe(watch('./widths.scss', function(files) { | ||
return files.pipe(sass()) | ||
.pipe(size({gzip: false, showFiles: true, title:'un-prefixed css'})) | ||
.pipe(size({gzip: true, showFiles: true, title:'un-prefixed gzipped css'})) | ||
.pipe(prefix()) | ||
.pipe(size({gzip: false, showFiles: true, title:'prefixed css'})) | ||
.pipe(size({gzip: true, showFiles: true, title:'prefixed css'})) | ||
.pipe(gulp.dest('./')) | ||
.pipe(minifyCSS()) | ||
.pipe(rename('widths.min.css')) | ||
.pipe(gulp.dest('./')) | ||
.pipe(size({gzip: false, showFiles: true, title:'minified css'})) | ||
.pipe(size({gzip: true, showFiles: true, title:'minified css'})) | ||
})); | ||
gulp.task('css', function() { | ||
gulp.src('./src/tachyons-widths.css') | ||
.pipe(basswork()) | ||
.pipe(size({gzip: true, showFiles: true, title:'prefixed'})) | ||
.pipe(gulp.dest('./')) | ||
.pipe(minifyCss()) | ||
.pipe(size({gzip: true, showFiles: true, title:'minified'})) | ||
.pipe(rename({ extname: '.min.css' })) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
/* | ||
DEFAULT TASK | ||
*/ | ||
gulp.task('serve', function() { | ||
gulp.src('.') | ||
.pipe(webserver({})); | ||
}); | ||
gulp.task('default', ['pre-process'], function(){ | ||
gulp.start('pre-process'); | ||
gulp.watch('*.scss', ['pre-process']); | ||
gulp.task('default', ['css', 'serve'], function() { | ||
gulp.watch(['./src/**/*'], ['css']); | ||
}); | ||
{ | ||
"name": "tachyons-widths", | ||
"version": "0.4.1", | ||
"style": "widths.css", | ||
"version": "1.0.0", | ||
"style": "tachyons-widths.css", | ||
"homepage": "http://mrmrs.io/tachyons-widths", | ||
"description": "Performance based sass module.", | ||
"description": "Performance based css module.", | ||
"keywords": [ | ||
"oocss", | ||
"sass", | ||
"css", | ||
"css", | ||
"rwd", | ||
@@ -32,8 +32,8 @@ "design", | ||
"gulp": "^3.8.10", | ||
"gulp-autoprefixer": "^2.0.0", | ||
"gulp-basswork": "0.0.9", | ||
"gulp-minify-css": "^0.3.11", | ||
"gulp-rename": "^1.2.0", | ||
"gulp-sass": "^1.1.0", | ||
"gulp-size": "^1.1.0", | ||
"gulp-watch": "^2.0.0" | ||
"gulp-size": "^1.2.0", | ||
"gulp-webserver": "^0.8.7", | ||
"vinyl-transform": "^1.0.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "scripts": { |
@@ -16,2 +16,6 @@ # TACHYONS-WIDTHS | ||
@custom-media --breakpoint-not-small screen and (max-width: 48em); | ||
@custom-media --breakpoint-medium screen and (min-width: 48em) and (max-width: 64em); | ||
@custom-media --breakpoint-large screen and (min-width: 64em); | ||
/* | ||
@@ -52,3 +56,3 @@ | ||
@include break(not-small) { | ||
@media (--breakpoint-not-small) { | ||
.wi1-ns { width: 1rem; } | ||
@@ -78,3 +82,3 @@ .wi2-ns { width: 2rem; } | ||
@include break(medium) { | ||
@media (--breakpoint-medium) { | ||
.wi1-m { width: 1rem; } | ||
@@ -104,3 +108,3 @@ .wi2-m { width: 2rem; } | ||
@include break(large) { | ||
@media (--breakpoint-large) { | ||
.wi1-l { width: 1rem; } | ||
@@ -129,2 +133,3 @@ .wi2-l { width: 2rem; } | ||
} | ||
``` | ||
@@ -134,4 +139,3 @@ | ||
[http://mrmrs.cc - Entire internet gateway to all things mrmrs](http://mrmrs.cc) | ||
[http://mrmrs.io - Open source projects](http://mrmrs.io) | ||
[mrmrs](http://mrmrs.io) | ||
@@ -142,3 +146,3 @@ ## License | ||
Copyright (c) 2014 @mrmrs | ||
Copyright (c) 2015 @mrmrs | ||
@@ -145,0 +149,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
424
1
160
24973
8
1