Skip to content

Commit

Permalink
Merge pull request #7 from brozeph/v0.2.2
Browse files Browse the repository at this point in the history
updating Babel and gulp dependencies for security
  • Loading branch information
brozeph committed Feb 9, 2019
2 parents f9cab2e + 89a9956 commit 54dd860
Show file tree
Hide file tree
Showing 13 changed files with 8,151 additions and 3,582 deletions.
11 changes: 11 additions & 0 deletions .babelrc
@@ -0,0 +1,11 @@
{
"presets": [
[
"@babel/preset-env"
]
],
"plugins": [
"@babel/plugin-transform-runtime"
],
"sourceMaps": true
}
44 changes: 25 additions & 19 deletions .eslintrc.yml
@@ -1,6 +1,4 @@
---
ecmaFeatures:
modules: true
env:
browser: false
es6: true
Expand All @@ -14,30 +12,18 @@
- "babel"
rules:
array-bracket-spacing:
- 0 # disabled, see babel/array-bracket-spacing
- 2
- "never"
array-callback-return: 2
arrow-parens: 0 # disabled, see babel/arrow-parens
arrow-parens: 2
arrow-spacing:
- 2
- before: true
after: true
babel/array-bracket-spacing:
- 2
- "never"
babel/arrow-parens: 2
babel/flow-object-type: 2
babel/func-params-comma-dangle: 2
babel/generator-star-spacing:
- 2
- before: true
after: false
babel/new-cap: 2
babel/no-await-in-loop: 2
babel/object-curly-spacing:
- 2
- "always"
babel/object-shorthand: 2
block-spacing:
- 2
- "always"
Expand All @@ -60,15 +46,17 @@
default-case: 2
eqeqeq: 2
generator-star-spacing:
- 0 # disabled, see babel/generator-star-spacing
- 2
- before: true
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
no-confusing-arrow: 2
no-console: 2
no-const-assign: 2
no-constant-condition: 2
no-control-regex: 2
Expand Down Expand Up @@ -99,15 +87,15 @@
no-implied-eval: 2
no-inner-declarations: 2
no-invalid-regexp: 2
no-invalid-this: 0 # using this:: notation which breaks this rule
no-invalid-this: 2
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 @@ -151,10 +139,28 @@
no-useless-concat: 2
no-void: 2
no-with: 2
object-shorthand: 2
quotes:
- 2
- "single"
radix: 2
semi: 2
sort-imports:
- 2
- ignoreCase: true
ignoreMemberSort: true
sort-keys:
- 2
- "asc"
- caseSensitive: false
natural: true
sort-vars:
- 2
- ignoreCase: true
space-before-function-paren:
- 2
- "always"
spaced-comment: ["error", "always"]
use-isnan: 2
valid-jsdoc: 2
valid-typeof: 2
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
@@ -1,6 +1,7 @@
.DS_Store
.nyc_output
dist
npm-debug.log
lib-cov
node_modules
reports
notes.md
/test/sandbox/
54 changes: 48 additions & 6 deletions .npmignore
@@ -1,8 +1,50 @@
.DS_Store
.git
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_modules
reports
notes.md
/src/
/test/
/test/sandbox/
4 changes: 2 additions & 2 deletions .travis.yml
@@ -1,5 +1,5 @@
language: node_js
node_js:
- "4"
- "6"
- "7"
- "8"
- "10"
30 changes: 30 additions & 0 deletions gulpfile.babel.js
@@ -0,0 +1,30 @@
import { dest, series, src } from 'gulp';
import babel from 'gulp-babel';
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());
}

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

This file was deleted.

4 changes: 4 additions & 0 deletions history.md
@@ -1,3 +1,7 @@
# v0.2.2 - 02/08/2019

* Updated gulp and Babel dependencies

# v0.2.1 - 09/02/2017

* Added configuration to disable `verbose` for use on certain distros of Linux (i.e. Alpine)
Expand Down

0 comments on commit 54dd860

Please sign in to comment.