Skip to content

Commit

Permalink
Merge pull request #14 from brozeph/v1.0.0
Browse files Browse the repository at this point in the history
V1.0.0
  • Loading branch information
brozeph committed Jan 7, 2019
2 parents 9710dfd + dec3124 commit 9d7ce86
Show file tree
Hide file tree
Showing 13 changed files with 9,920 additions and 100 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
[
"@babel/preset-env"
]
],
"plugins": [
"@babel/plugin-transform-runtime"
],
"sourceMaps": true
}
34 changes: 32 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
---
env:
browser: false
es6: true
mocha: true
node: true
parser: "babel-eslint"
parserOptions:
ecmaVersion: 6
sourceType: "module"
plugins:
- "babel"
rules:
array-bracket-spacing:
- 2
Expand All @@ -14,6 +20,10 @@
- 2
- before: true
after: true
babel/new-cap: 2
babel/object-curly-spacing:
- 2
- "always"
block-spacing:
- 2
- "always"
Expand Down Expand Up @@ -41,6 +51,7 @@
after: false
guard-for-in: 2
handle-callback-err: 2
no-await-in-loop: 2
no-caller: 2
no-case-declarations: 2
no-cond-assign: 2
Expand Down Expand Up @@ -75,20 +86,21 @@
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
- grouping: true
allowCall: true
no-mixed-spaces-and-tabs: 2
no-multi-spaces: 2
no-multi-str: 2
no-native-reassign: 2
Expand All @@ -112,20 +124,38 @@
no-sparse-arrays: 2
no-sync: 2
no-throw-literal: 2
no-undef: 2
no-undefined: 2
no-unexpected-multiline: 2
no-unmodified-loop-condition: 2
no-unreachable: 2
no-unused-expressions: 2
no-unused-labels: 2
no-unused-vars:
- 2
- vars: all
no-useless-call: 2
no-useless-concat: 2
no-void: 2
no-with: 2
object-shorthand: 2
quotes:
- 2
- "single"
radix: 2
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.nyc_output
npm-debug.log
lib-cov
node_modules
Expand Down
51 changes: 51 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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
.gitignore
.travis.yml
.vscode
gulpfile.babel.js
lib-cov
node-chess.tmproj #textmate project file
node_modules
reports
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: node_js
node_js:
- 4
- 5
- 8
- 10
36 changes: 36 additions & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { dest, series, src } from 'gulp';
import babel from 'gulp-babel';
import coveralls from 'gulp-coveralls';
import del from 'gulp-clean';
import eslint from 'gulp-eslint';
import sourcemaps from 'gulp-sourcemaps';

function build () {
return src('src/**/*.js')
.pipe(sourcemaps.init())
.pipe(babel())
.pipe(sourcemaps.write('.'))
.pipe(dest('dist'));
}

function clean () {
return src(['dist', 'reports'], { allowEmpty : true, read : false })
.pipe(del());
}

function lint () {
return src(['gulpfile.babel.js', 'src/**/*.js', 'test/**/*.js'])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
}

function reportCoverage () {
return src(['reports/lcov.info']).pipe(coveralls());
}

exports.build = build;
exports.clean = clean;
exports.default = series(clean, lint, build);
exports.lint = lint;
exports.reportCoverage = reportCoverage;
44 changes: 0 additions & 44 deletions gulpfile.js

This file was deleted.

4 changes: 4 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.0.0 / 2019-01-04

* Modernized code, removed `co` dependency and moved to `babel` for transpilation

# v0.3.0 / 2016-04-20

* Added alias of `baseSettingsPath` (in addition to `baseConfigPath`)
Expand Down

0 comments on commit 9d7ce86

Please sign in to comment.