Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrige pacote do imagemin desatualizado e utiliza gulp-sass no lugar de gulp-compass #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions config.rb

This file was deleted.

20 changes: 7 additions & 13 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
var fs = require( 'fs' );
var gulp = require( 'gulp' );
var clean = require( 'gulp-clean' );
var compass = require( 'gulp-compass' );
var sass = require( 'gulp-sass' );
var plumber = require( 'gulp-plumber' );
var imagemin = require( 'gulp-imagemin' );
var jshint = require( 'gulp-jshint' );
var minifycss = require( 'gulp-minify-css' );
var rename = require( 'gulp-rename' );
var gulpconcat = require( 'gulp-concat' );
var gulpconcat = require( 'gulp-concat' );
var uglify = require( 'gulp-uglify' );
var zip = require( 'gulp-zip' );
var rsync = require( 'rsyncwrapper' ).rsync;
Expand Down Expand Up @@ -64,16 +64,10 @@ gulp.task( 'uglify-bootstrap', [ 'clean-bootstrap' ], function() {



gulp.task( 'compass', function() {
gulp.task( 'sass', function() {
var stream = gulp.src( gulpconfig.dirs.sass + '/**/*' )
.pipe( plumber() )
.pipe(
compass({
config_file : './config.rb',
css : gulpconfig.dirs.css,
sass: gulpconfig.dirs.sass
})
)
.pipe( sass().on('error', sass.logError) )
.pipe( minifycss() )
.pipe( gulp.dest( gulpconfig.dirs.css ) );

Expand All @@ -84,7 +78,7 @@ gulp.task( 'compass', function() {

gulp.task( 'watch', function() {
var watchers = [
gulp.watch( gulpconfig.dirs.sass + '/**/*', [ 'compass' ] ),
gulp.watch( gulpconfig.dirs.sass + '/**/*', [ 'sass' ] ),
gulp.watch( gulpconfig.dirs.src_js + '/**/*.js', [ 'uglify' ] )
];

Expand Down Expand Up @@ -256,12 +250,12 @@ gulp.task( 'clean-bootstrap', [ 'rename' ], function() {
/**
* Execution Tasks
*/
gulp.task( 'default', [ 'jshint', 'compass', 'uglify' ] );
gulp.task( 'default', [ 'jshint', 'sass', 'uglify' ] );
gulp.task( 'optimize', [ 'imagemin' ] );
gulp.task( 'ftp', [ 'ftp-deploy' ] );
gulp.task( 'compress', [ 'default', 'zip' ] );
gulp.task( 'bootstrap', [ 'uglify-bootstrap' ], function() {
gulp.start( 'compass' );
gulp.start( 'sass' );
});


Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "odin",
"description": "Tema base para desenvolvimento em WordPress",
"version": "2.2.3",
"version": "2.2.4",
"title": "Odin Framework",
"homepage": "http://wpod.in/",
"main": "gulpfile.js",
"devDependencies": {
"colors": "^0.6.2",
"gulp": "^3.8.6",
"gulp-clean": "^0.3.1",
"gulp-compass": "^1.1.9",
"gulp-concat": "^2.3.3",
"gulp-download": "0.0.1",
"gulp-ftp": "^0.4.0",
"gulp-imagemin": "^0.6.1",
"gulp-imagemin": "^3.3.0",
"gulp-jshint": "^1.7.1",
"gulp-minify-css": "^0.3.7",
"gulp-plumber": "^0.6.4",
"gulp-rename": "^1.2.0",
"gulp-sass": "^3.1.0",
"gulp-uglify": "^0.3.1",
"gulp-zip": "^0.4.0",
"rsyncwrapper": "^0.4.0"
Expand Down