Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

[build/gulpjs] Make quotes consistent #137

Closed
wants to merge 1 commit into from
Closed
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
20 changes: 10 additions & 10 deletions gulp/config.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
var dest = "./public";
var dest = './public';
var src = './source';
var content = './content';

module.exports = {
stylus: {
src: src + "/styles/**/*.styl",
src: src + '/styles/**/*.styl',
dest: dest,
settings: {
// put stylus settings here
}
},
templates: {
templateSrc: src + "/templates/**/*.html",
contentSrc: content + "/**/*.md",
templateJSONsrc: content + "/**/template.json",
templateSrc: src + '/templates/**/*.html',
contentSrc: content + '/**/*.md',
templateJSONsrc: content + '/**/template.json',
dest: dest
},
images: {
src: dest + "/img/**",
dest: dest + "/img"
src: dest + '/img/**',
dest: dest + '/img'
},
del: {
files: [
dest + "/**/*.html",
dest + "/**/*.js",
dest + "/**/*.css",
dest + '/**/*.html',
dest + '/**/*.js',
dest + '/**/*.css',
'!'+ dest + '/index.html',
'!'+ dest + '/es6.html',
'!'+ dest + '/faq.html',
Expand Down
2 changes: 1 addition & 1 deletion gulp/tasks/minifyCss.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gulp.task('minifyCss', function() {
csswring
]))
.pipe(rename(function(path){
path.extname = ".min.css";
path.extname = '.min.css';
}))
.pipe(gulp.dest(config.dest))
.pipe(size());
Expand Down
8 changes: 4 additions & 4 deletions gulp/util/handleErrors.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
var notify = require("gulp-notify");
var notify = require('gulp-notify');

module.exports = function() {

var args = Array.prototype.slice.call(arguments);

// Send error to notification center with gulp-notify
notify.onError({
title: "Compile Error",
message: "<%= error %>"
title: 'Compile Error',
message: '<%= error %>'
}).apply(this, args);

// Keep gulp from hanging on this task
this.emit('end');
};
};