Skip to content

Commit

Permalink
Refactoring for 2.0.0 and Node v10+ support
Browse files Browse the repository at this point in the history
- Rewrote tests to use `ava` (instead of `mocha`)
- Added `@babel/preset-env` with targets for `node` v6.4+ and the last 2 versions of browsers (see `.babelrc` and `.browserslistrc`)
- Updated Contributors list and section in `package.json`
  • Loading branch information
niftylettuce committed May 18, 2018
1 parent 5b7b891 commit 51b6a99
Show file tree
Hide file tree
Showing 32 changed files with 9,322 additions and 1,292 deletions.
19 changes: 15 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
"presets": [ "es2015", "stage-0" ],
"presets": [
["@babel/env", {
"targets": {
"node": "6.4.0"
}
}]
],
"plugins": [
"transform-runtime",
"add-module-exports"
]
[ "@babel/transform-runtime", {
"helpers": false,
"polyfill": false,
"regenerator": true
}],
"@babel/plugin-proposal-object-rest-spread"
],
"sourceMaps": "inline",
}
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
last 2 versions
13 changes: 5 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"extends": "@earnest/eslint-config-es7",
"rules": {
"babel/object-curly-spacing": 0,
"babel/array-bracket-spacing": 0,
"array-bracket-spacing": 0,
"curly": 0,
"padded-blocks": 0,
"no-console": 0
"env": { "browser": true },
"plugins": ["compat"],
"rules": { "compat/compat": "error" },
"settings": {
"polyfills": ["fetch","promises"]
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.DS_Store
*.log
.idea
node_modules
bower_components
lib
coverage
*.log
.DS_Store
test/unit/browser.bundled.js
.vscode
.nyc_output
lib
test/support/browser.bundled.js
6 changes: 0 additions & 6 deletions .istanbul.yml

This file was deleted.

8 changes: 2 additions & 6 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
test
media
coverage
src
.babelrc
.eslintrc
.istanbul.yml
circle.yml
component.json
bower.json
bower_components
.npmignore
.travis.yml
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

1 change: 1 addition & 0 deletions .remarkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/snapshots/**/*.md
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: node_js
node_js:
- '6'
- '7'
- '8'
- '9'
- '10'
script:
npm run test-coverage
after_success:
npm run coverage
22 changes: 17 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
The MIT License
MIT License

Copyright (c) 2015- Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)
Copyright (c) 2015 Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 51b6a99

Please sign in to comment.