@lucca-front/icons
Advanced tools
Comparing version 0.1.7 to 0.2.1
@@ -7,4 +7,6 @@ 'use strict'; | ||
let rename = require('gulp-rename'); | ||
let browserSync = require('browser-sync').create(); | ||
const OUT_DIR = './dist'; | ||
const DEMO_DIR = './demo'; | ||
const SASS_OPTIONS_DIST = { | ||
@@ -26,3 +28,3 @@ outputStyle: 'compressed', | ||
gulp.task('sass:dist', () => { | ||
return gulp.src('./src/main.scss') | ||
return gulp.src('./src/main-with-classes.scss') | ||
.pipe(sass(SASS_OPTIONS_DIST).on('error', sass.logError)) | ||
@@ -38,3 +40,17 @@ .pipe(rename('lucca-icons.min.css')) | ||
gulp.task('serve', ['prepare-dist-folder', 'sass:dist'], () => { | ||
browserSync.init({ | ||
server: { | ||
baseDir: DEMO_DIR, | ||
index: "demo.html", | ||
routes: { | ||
"/dist": "./dist" | ||
} | ||
} | ||
}); | ||
gulp.watch(["./demo/*.html", "./demo/*.css"], browserSync.reload); | ||
}); | ||
gulp.task('dist', ['prepare-dist-folder', 'sass:dist']); | ||
gulp.task('default', ['dist']); |
{ | ||
"name": "@lucca-front/icons", | ||
"version": "0.1.7", | ||
"version": "0.2.1", | ||
"description": "A library of icons made by the team @Lucca", | ||
@@ -13,3 +13,3 @@ "main": "gulpfile.js", | ||
"build": "gulp dist", | ||
"start": "gulp" | ||
"start": "gulp serve" | ||
}, | ||
@@ -37,2 +37,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"browser-sync": "^2.23.6", | ||
"gulp": "^3.9.1", | ||
@@ -39,0 +40,0 @@ "gulp-clean": "^0.3.2", |
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
675921
21
48
5