Skip to content

Commit

Permalink
Add JSCS config file
Browse files Browse the repository at this point in the history
Ref #71
  • Loading branch information
koistya committed Feb 27, 2015
1 parent 999dbac commit 798a101
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"preset": "google",
"disallowSpacesInAnonymousFunctionExpression": null,
"validateLineBreaks": "LF",
"validateIndentation": 2,
"excludeFiles": ["build/**", "node_modules/**"],
"esprima": "esprima-fb"
}
9 changes: 6 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ var browserSync;
gulp.task('default', ['sync']);

// Clean output directory
gulp.task('clean', del.bind(null, ['.tmp', 'build/*', '!build/.git'], {dot: true}));
gulp.task('clean', del.bind(
null, ['.tmp', 'build/*', '!build/.git'], {dot: true}
));

// 3rd party libraries
gulp.task('vendor', function() {
Expand Down Expand Up @@ -135,7 +137,7 @@ gulp.task('serve', ['build:watch'], function(cb) {

var server = (function startup() {
var child = cp.fork('build/server.js', {
env: assign({ NODE_ENV: 'development' }, process.env)
env: assign({NODE_ENV: 'development'}, process.env)
});
child.once('message', function(message) {
if (message.match(/^online$/)) {
Expand Down Expand Up @@ -200,7 +202,8 @@ gulp.task('deploy', function() {
}

return gulp.src('build/**/*')
.pipe($.if('**/robots.txt', !argv.production ? $.replace('Disallow:', 'Disallow: /') : $.util.noop()))
.pipe($.if('**/robots.txt', !argv.production ?
$.replace('Disallow:', 'Disallow: /') : $.util.noop()))
.pipe($.ghPages({
remoteUrl: 'https://github.com/{name}/{name}.github.io.git',
branch: 'master'
Expand Down
2 changes: 1 addition & 1 deletion preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
}
// Ignore all files within node_modules
if (filename.indexOf('node_modules') === -1) {
return babel.transform(src, { filename: filename }).code;
return babel.transform(src, {filename: filename}).code;
}
return src;
}
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ var config = {
},
{
test: /\.less$/,
loader: 'style-loader!css-loader!' + AUTOPREFIXER_LOADER + '!less-loader'
loader: 'style-loader!css-loader!' + AUTOPREFIXER_LOADER +
'!less-loader'
},
{
test: /\.gif/,
Expand Down

0 comments on commit 798a101

Please sign in to comment.