fortune-css
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -10,11 +10,12 @@ const gulp = require('gulp'); | ||
const stylelint = require('gulp-stylelint'); | ||
const fortune = ['./src/fortune.css']; | ||
const lab = ['./src/lab.css']; | ||
const files = ['./src/fortune.css']; | ||
const postcssVanilla = [ | ||
const postcssRegular = [ | ||
postcssimport(), | ||
postcsscssnext({ | ||
browsers: [""] | ||
browsers: [''] | ||
}) | ||
]; | ||
const postcssAutoprefix = [ | ||
const postcssPrefix = [ | ||
postcssimport(), | ||
@@ -25,12 +26,18 @@ postcsscssnext({ | ||
]; | ||
const postcssLab = [ | ||
postcssimport(), | ||
postcsscssnext({ | ||
browsers: ['last 2 versions'] | ||
}) | ||
]; | ||
// Build | ||
gulp.task('build', ['build: vanilla', 'build: autoprefixed']); | ||
gulp.task('build', ['build: regular', 'build: minified', 'build: prefixed', 'build: lab']); | ||
// Build vanilla version | ||
gulp.task('build: vanilla', () => | ||
gulp.task('build: regular', () => | ||
gulp | ||
.src(files) | ||
.pipe(postcss(postcssVanilla)) | ||
.pipe(nano()) | ||
.src(fortune) | ||
.pipe(postcss(postcssRegular)) | ||
.pipe(rename("fortune.css")) | ||
@@ -45,13 +52,28 @@ .pipe(gulp.dest("./dist")) | ||
// Build minified version | ||
gulp.task('build: minified', () => | ||
gulp | ||
.src(fortune) | ||
.pipe(postcss(postcssRegular)) | ||
.pipe(nano()) | ||
.pipe(rename("fortune.min.css")) | ||
.pipe(gulp.dest("./dist")) | ||
.pipe(size({ showFiles: true })) | ||
.pipe(gzip()) | ||
.pipe(rename("fortune.min.css.gz")) | ||
.pipe(gulp.dest("./dist")) | ||
.pipe(size({ showFiles: true, gzip: true })) | ||
); | ||
// Build autoprefixed version | ||
gulp.task('build: autoprefixed', () => | ||
gulp.task('build: prefixed', () => | ||
gulp | ||
.src(files) | ||
.pipe(postcss(postcssAutoprefix)) | ||
.src(fortune) | ||
.pipe(postcss(postcssPrefix)) | ||
.pipe(nano()) | ||
.pipe(rename('fortune.prefixed.css')) | ||
.pipe(rename('fortune.prefixed.min.css')) | ||
.pipe(gulp.dest('./dist')) | ||
.pipe(size({ showFiles: true })) | ||
.pipe(gzip()) | ||
.pipe(rename('fortune.prefixed.css.gz')) | ||
.pipe(rename('fortune.prefixed.min.css.gz')) | ||
.pipe(gulp.dest('./dist')) | ||
@@ -61,2 +83,17 @@ .pipe(size({ showFiles: true, gzip: true })) | ||
// Build labs | ||
gulp.task('build: lab', () => | ||
gulp | ||
.src(lab) | ||
.pipe(postcss(postcssLab)) | ||
.pipe(nano()) | ||
.pipe(rename('lab.min.css')) | ||
.pipe(gulp.dest('./dist')) | ||
.pipe(size({ showFiles: true })) | ||
.pipe(gzip()) | ||
.pipe(rename("lab.min.css.gz")) | ||
.pipe(gulp.dest("./dist")) | ||
.pipe(size({ showFiles: true, gzip: true })) | ||
); | ||
// Lint | ||
@@ -63,0 +100,0 @@ gulp.task('lint', ['default'], () => |
{ | ||
"name": "fortune-css", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "Vikram Babu", | ||
@@ -5,0 +5,0 @@ "description": "Fortune is your friendly CSS framework.", |
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
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
245153
35
3494
4