Comparing version 0.8.14 to 0.8.15
@@ -5,3 +5,4 @@ var gulp = require('gulp'); | ||
var rename = require('gulp-rename'); | ||
var clean = require('gulp-clean') | ||
var clean = require('gulp-clean'); | ||
var gulpReplace = require('gulp-replace'); | ||
@@ -16,2 +17,3 @@ var p2bmapping = require('./template/p2b_mapping.json'); | ||
var cssDest = "./"; | ||
var stylusDest = "./stylus"; | ||
@@ -24,3 +26,2 @@ var style = "baicons.css"; | ||
var mobileStyle = "baicons-mobile.css" | ||
@@ -30,3 +31,3 @@ var mobileReference = 'icons-reference-mobile.html' | ||
function cleanFonts(cb) { | ||
gulp.src(fontPath).pipe(clean()).on('finish', cb) | ||
gulp.src(["./*.css", "./stylus/*.styl", fontPath]).pipe(clean()).on('finish', cb) | ||
} | ||
@@ -144,4 +145,12 @@ | ||
gulp.task('build', gulp.series(cleanFonts, generateFonts, generateFonts2, generateMobileFonts)); | ||
function generateMobileStylus(cb) { | ||
gulp.src(cssDest + mobileStyle) | ||
.pipe(gulpReplace(/fonts\/(baicons-mobile-\d+\.(eot|woff|ttf|svg))/g, '//s.baixing.net/font/baicons/fonts/$1')) | ||
.pipe(rename(mobileStyle.replace(/\.css$/, ".styl"))) | ||
.pipe(gulp.dest(stylusDest)) | ||
.on('finish',cb); | ||
} | ||
gulp.task('build', gulp.series(cleanFonts, generateFonts, generateFonts2, generateMobileFonts, generateMobileStylus)); | ||
gulp.task('default', gulp.series('build')); |
{ | ||
"name": "baicons", | ||
"version": "0.8.14", | ||
"version": "0.8.15", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 9 instances 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 9 instances in 1 package
729568
266
1099