Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from brozeph/v0.2.2
updating Babel and gulp dependencies for security
- Loading branch information
Showing
13 changed files
with
8,151 additions
and
3,582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.DS_Store | ||
.nyc_output | ||
dist | ||
npm-debug.log | ||
lib-cov | ||
node_modules | ||
reports | ||
notes.md | ||
/test/sandbox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- "4" | ||
- "6" | ||
- "7" | ||
- "8" | ||
- "10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.