oneagency-jacket
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "jacket", | ||
"name": "Jacket", | ||
"description": "Jacket is a Scss starterkit based on Gulp, Libsass and scss-lint with some sane default tasks and based on the Smacss and BEVM structures. Ready to be plugged in Ocelot or ready to run standalone.", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
], | ||
"homepage": "https://github.com/Crosscheck/jacket", | ||
"homepage": "https://github.com/Crosscheck/Jacket", | ||
"moduleType": [], | ||
@@ -19,0 +19,0 @@ "ignore": [ |
@@ -10,3 +10,3 @@ { | ||
"fontAwesome": "font-awesome/scss", | ||
"scss": "src/scss/**/*.scss", | ||
"scss": "./src/scss", | ||
"css": "./dist/css", | ||
@@ -13,0 +13,0 @@ "js": "./dist/js" |
@@ -15,2 +15,3 @@ // ______ __ __ __ _______ | ||
var gutil = require("gulp-util"); | ||
var notifier = require('terminal-notifier'); | ||
var chalk = require("chalk"); | ||
@@ -29,2 +30,5 @@ var browserSync = require('browser-sync').create(); | ||
// Css | ||
var minifyCss = require('gulp-minify-css'); | ||
// Load configuration file | ||
@@ -41,3 +45,3 @@ var config = require("./config.json"); | ||
console.log(metadata, 'Metadata produced during the build process'); | ||
} | ||
}; | ||
@@ -48,3 +52,3 @@ // ----------------------------------------------------------------------------- | ||
gulp.task("favicons", "Generates cross-device favicons from assets/img/logo/favicon.png", function() { | ||
gulp.task("favicons", "Generates cross-device favicons from dist/img/logo/favicon.png", function() { | ||
return favicons(config.favicons, errorCallBack); | ||
@@ -59,3 +63,3 @@ }); | ||
gulp.task("sass", "Compiles your SCSS files to CSS", function () { | ||
return gulp.src(config.path.scss) | ||
return gulp.src(config.path.scss + "/*.scss") | ||
.pipe(sourcemaps.init()) | ||
@@ -78,2 +82,4 @@ .pipe(sassGlob()) | ||
gutil.log(gutil.colors.black.bgRed(" COLUMN:", gutil.colors.red.bgBlack(" " + err.column))); | ||
gutil.log(gutil.colors.black.bgRed(" ERROR:", gutil.colors.red.bgBlack(" " + err.formatted.split("\n")[0]))); | ||
notifier(err.message.split("\n")[0], { title: "LINE " + err.line }); | ||
return this.emit("end"); | ||
@@ -88,2 +94,15 @@ }) | ||
// ----------------------------------------------------------------------------- | ||
// CSS MINIFY -- https://www.npmjs.com/package/gulp-minify-css | ||
// ----------------------------------------------------------------------------- | ||
gulp.task("css-minify", "Minifies css files for production enviroments", function() { | ||
gulp.src(config.path.css + "/*.css") | ||
.pipe(minifyCss({ | ||
keepSpecialComments : false, | ||
advanced: false | ||
})) | ||
.pipe(gulp.dest(config.path.css)); | ||
}); | ||
// ----------------------------------------------------------------------------- | ||
// SCSS LINT -- https://www.npmjs.com/package/gulp-scss-lint | ||
@@ -93,3 +112,3 @@ // ----------------------------------------------------------------------------- | ||
gulp.task("scss-lint", "Scans your SCSS files for errors", function() { | ||
gulp.src(config.path.scss) | ||
gulp.src(config.path.scss + "/**/*.scss") | ||
.pipe(scsslint()); | ||
@@ -115,3 +134,3 @@ }); | ||
gulp.task("watch", "Watches your SASS files", function() { | ||
gulp.watch(config.path.scss, ["sass"]); | ||
gulp.watch(config.path.scss + "/**/*.scss", ["sass"]); | ||
}); | ||
@@ -124,9 +143,8 @@ | ||
gulp.task("sassdoc", "Create the Scss documentation for your project", function() { | ||
return gulp.src("assets/scss/utils/**/*.scss") | ||
return gulp.src(config.path.scss + "/utils/**/*.scss") | ||
.pipe(sassdoc({ | ||
dest: "sassdoc" | ||
dest: "dist/sassdoc" | ||
})); | ||
}); | ||
// ----------------------------------------------------------------------------- | ||
@@ -139,2 +157,3 @@ // DEFAULT TASK | ||
"sass", | ||
// "css-minify", | ||
"scss-lint", | ||
@@ -141,0 +160,0 @@ "watch", |
{ | ||
"name": "oneagency-jacket", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Jacket is a Scss starterkit based on Gulp, Libsass and scss-lint with some sane default tasks and based on the Smacss and BEVM structures. Ready to be plugged in Ocelot or ready to run standalone.", | ||
@@ -10,3 +10,3 @@ "scripts": { | ||
"type": "git", | ||
"url": "git+https://github.com/Crosscheck/jacket.git" | ||
"url": "git+https://github.com/Crosscheck/Jacket.git" | ||
}, | ||
@@ -26,6 +26,9 @@ "keywords": [ | ||
"gulp-help": "^1.6.1", | ||
"gulp-minify-css": "^1.2.2", | ||
"gulp-sass": "^2.0.4", | ||
"gulp-sass-glob": "0.0.2", | ||
"gulp-scss-lint": "^0.3.0", | ||
"gulp-sequence": "^0.4.1", | ||
"gulp-sourcemaps": "^1.5.2", | ||
"gulp-util": "^3.0.7", | ||
"node-bourbon": "^4.2.3", | ||
@@ -36,3 +39,3 @@ "node-neat": "^1.7.2", | ||
"sassdoc": "^2.1.15", | ||
"gulp-sequence": "^0.4.1" | ||
"terminal-notifier": "^0.1.2" | ||
}, | ||
@@ -44,3 +47,6 @@ "author": "One Agency", | ||
}, | ||
"engines": { | ||
"node": ">=4.2.4" | ||
}, | ||
"homepage": "https://github.com/Crosscheck/jacket#readme" | ||
} |
@@ -1,1 +0,11 @@ | ||
# jacket | ||
# Jacket | ||
[![npm](https://nodei.co/npm/oneagency-jacket.png?downloads=true)](https://www.npmjs.org/package/oneagency-jacket) | ||
[![version](https://img.shields.io/npm/v/oneagency-jacket.svg)](https://www.npmjs.org/package/oneagency-jacket) | ||
[![status](https://travis-ci.org/Crosscheck/Jacket.svg?branch=master)](https://travis-ci.org/Crosscheck/Jacket) | ||
[![coverage](https://img.shields.io/coveralls/Crosscheck/Jacket.svg)](https://coveralls.io/github/Crosscheck/Jacket) | ||
[![dependencies](https://david-dm.org/Crosscheck/Jacket.svg)](https://david-dm.org/Crosscheck/Jacket) | ||
[![devDependencies](https://david-dm.org/Crosscheck/Jacket/dev-status.svg)](https://david-dm.org/Crosscheck/Jacket#info=devDependencies) | ||
[![downloads](https://img.shields.io/npm/dm/oneagency-jacket.svg)](https://www.npmjs.org/package/oneagency-jacket) | ||
[![license](https://img.shields.io/npm/l/oneagency-jacket.svg)](https://www.npmjs.org/package/oneagency-jacket) | ||
[![node](https://img.shields.io/node/v/oneagency-jacket.svg)](https://www.npmjs.org/package/oneagency-jacket) |
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
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
1425097
7293
12
18