Skip to content

Commit

Permalink
Merge bbe8184 into 2ccf319
Browse files Browse the repository at this point in the history
  • Loading branch information
brozeph committed Feb 9, 2019
2 parents 2ccf319 + bbe8184 commit d92b8e3
Show file tree
Hide file tree
Showing 12 changed files with 8,103 additions and 3,554 deletions.
15 changes: 10 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"presets": [
"es2015",
"stage-0"
]
}
"presets": [
[
"@babel/preset-env"
]
],
"plugins": [
"@babel/plugin-transform-runtime"
],
"sourceMaps": true
}
29 changes: 14 additions & 15 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
es6: true
mocha: true
node: true
globals:
should: true
parser: "babel-eslint"
parserOptions:
ecmaVersion: 6
sourceType: "module"
plugins:
- "babel"
- "flowtype"
rules:
array-bracket-spacing:
- 2
Expand Down Expand Up @@ -48,7 +45,6 @@
curly: 2
default-case: 2
eqeqeq: 2
flowtype/object-type-delimiter: 2
generator-star-spacing:
- 2
- before: true
Expand All @@ -60,7 +56,6 @@
no-case-declarations: 2
no-cond-assign: 2
no-confusing-arrow: 2
no-console: 2
no-const-assign: 2
no-constant-condition: 2
no-control-regex: 2
Expand Down Expand Up @@ -91,15 +86,15 @@
no-implied-eval: 2
no-inner-declarations: 2
no-invalid-regexp: 2
no-invalid-this: 2
no-invalid-this: 0 # using this:: notation which breaks this rule
no-irregular-whitespace: 2
no-iterator: 2
no-labels: 2
no-lone-blocks: 2
no-loop-func: 2
no-magic-numbers:
- 2
- ignore: [-1, 0, 1]
- ignore: [-1, 0, 1, 2]
ignoreArrayIndexes: true
no-mixed-requires:
- 0
Expand Down Expand Up @@ -148,15 +143,19 @@
- 2
- "single"
radix: 2
semi: 2
sort-keys: 2
sort-imports: 2
sort-vars: 2
space-before-function-paren:
- 2
- "always"
spaced-comment: ["error", "always"]
use-isnan: 2
sort-imports:
- 2
- ignoreCase: true
ignoreMemberSort: true
sort-keys:
- 2
- "asc"
- caseSensitive: true
natural: true
sort-vars:
- 2
- ignoreCase: true
valid-jsdoc: 2
valid-typeof: 2
vars-on-top: 2
Expand Down
56 changes: 47 additions & 9 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,51 @@
.git/
.nyc_output/
coverage/
examples/
src/
test/
src
test

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db

# Everything else #
######################
.nyc_output
.babelrc
.coveralls.yml
.eslintrc.yml
.gitignore
.npmignore
.travis.yml
.vscode
gulpfile.babel.js
history.md
lib-cov
node-chess.tmproj #textmate project file
node_modules
reports
46 changes: 24 additions & 22 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
import { dest, series, src } from 'gulp';
import babel from 'gulp-babel';
import del from 'del';
import del from 'gulp-clean';
import eslint from 'gulp-eslint';
import gulp from 'gulp';
import sourcemaps from 'gulp-sourcemaps';

module.exports = (() => {
gulp.task('build', ['clean-build'], () => {
return gulp
.src('src/**/*.js')
.pipe(sourcemaps.init())
.pipe(babel({
presets: ['es2015', 'stage-0']
}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('dist'));
});
function build () {
return src('src/**/*.js')
.pipe(sourcemaps.init())
.pipe(babel())
.pipe(sourcemaps.write('.'))
.pipe(dest('dist'));
}

gulp.task('clean-build', () => del('dist'));
function clean () {
return src(['dist', 'reports'], { allowEmpty : true, read : false })
.pipe(del());
}

gulp.task('lint', () => {
return gulp
.src(['src/**/*.js', 'test/**/*.js', '!node_modules/**', '!reports/**', '!test/examples/*transpiled.js'])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});
})();
function lint () {
return src(['gulpfile.babel.js', 'src/**/*.js', 'test/**/*.js'])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
}

exports.build = build;
exports.clean = clean;
exports.default = series(clean, lint, build);
exports.lint = lint;
4 changes: 4 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.1.0 - 02/05/2019

* Updated Babel dependencies

# v1.0.2 - 08/16/2017

* Fixed issue where errors encountered from the server were not properly surfaced on the `Client` instance on `#call`
Expand Down

0 comments on commit d92b8e3

Please sign in to comment.