Skip to content

Commit

Permalink
Merge pull request #4 from zidein07/master
Browse files Browse the repository at this point in the history
include less, ess change gulpfile
  • Loading branch information
avevlad committed Dec 24, 2015
2 parents 386db91 + 6f6a234 commit 4bb0346
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 34 deletions.
44 changes: 20 additions & 24 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var gulp = require('gulp');
var gulpConnect = require('gulp-connect');
var gulpLess = require('gulp-less');
var gulpEjs = require('gulp-ejs');
var src = 'src';

var out = 'public';
Expand All @@ -13,27 +14,22 @@ gulp.task("connect", function () {
});
});

//gulp.task('ejs', function () {
// return gulp.src([src + '/*.ejs'])
// .pipe($.ejs())
// .pipe(gulp.dest(out + '/'))
// .pipe($.connect.reload());
//});
//
//gulp.task('less', function () {
// return gulp.src([src + '/less/*.less'])
// .pipe($.compass({
// css: out + '/css',
// less: src + '/less',
// image: out + '/images'
// }))
// .pipe($.connect.reload());
//});
//
//gulp.task('watch', function () {
// gulp.watch([src + '/less/*.less', src + '/less/**/*.less'], ['less']);
// gulp.watch([src + '/*.ejs', src + '/ejs/**/*.ejs'], ['ejs']);
// return gulp.watch([src + '/coffee/*.coffee'], ['coffee']);
//});
//
//gulp.task('default', ['connect', 'ejs', 'compass', 'watch']);
gulp.task('ejs', function () {
return gulp.src([src + '/*.ejs'])
.pipe(gulpEjs())
.pipe(gulp.dest(out + '/'))
.pipe(gulpConnect.reload());
});

gulp.task('less', function () {
return gulp.src('./src/less/**/*.less')
.pipe(gulpLess())
.pipe(gulp.dest('./public/css/'));
});

gulp.task('watch', function () {
gulp.watch([src + '/less/*.less', src + '/less/**/*.less'], ['less']);
return gulp.watch([src + '/*.ejs', src + '/ejs/**/*.ejs'], ['ejs']);
});

gulp.task('default', ['connect', 'less', 'ejs', 'watch']);
16 changes: 8 additions & 8 deletions public/css/main.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* line 74, icons/*.png */
.icons-sprite {
background: url('../images/icons-sdaf092d5c4.png') no-repeat; }

/* line 6, ../../src/sass/main.sass */
body {
background: #ffe250;
font-family: "Arial", "sans-serif"; }
body {
background: #000;
}
body div {
background: #000;
border-bottom: 2px;
border: 2px solid #00d6b2;
}
2 changes: 1 addition & 1 deletion public/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>
</nav>

<h1>home</h1>
<h1>homeOne</h1>

<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/dist/js/bootstrap.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ pageTitle = "Page title!"
<% include ejs/layout/top.ejs %>
<% include ejs/include/header.ejs %>

<h1>home</h1>
<h1>homeOne</h1>

<% include ejs/layout/bottom.ejs %>
5 changes: 5 additions & 0 deletions src/less/main.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
body {
background: #000;
div {
background: #000;
border-bottom: 2px;
border: 2px solid #00d6b2;
}
}

0 comments on commit 4bb0346

Please sign in to comment.