Skip to content

General code cleanup #30

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

Open
wants to merge 1 commit 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
27 changes: 27 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js}]
charset = utf-8

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

# Indentation override for all JS under lib directory
[lib/**.js]
indent_style = space
indent_size = 2

[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
dist/
*.sw*

Expand Down
4 changes: 3 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
"expr": true,
"trailing": true,
"node": true,
"esnext": true
"esversion": 6,
"mocha": true,
"strict": "global"
}
12 changes: 7 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
var gulp = require('gulp');
var babel = require('gulp-babel');
'use strict';

const gulp = require('gulp');
const babel = require('gulp-babel');

gulp.task('default', function () {
return gulp.src([ 'lib/**' ])
.pipe(babel())
.pipe(gulp.dest('dist'));
return gulp.src(['lib/**'])
.pipe(babel())
.pipe(gulp.dest('dist'));
});
Loading