Skip to content

Commit

Permalink
Upgraded npm packages (webpack-4 and babel-7)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rivera committed Nov 13, 2018
1 parent 44e3d67 commit 3f68b40
Show file tree
Hide file tree
Showing 20 changed files with 4,912 additions and 6,242 deletions.
18 changes: 18 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// https://babeljs.io/docs/en/v7-migration
module.exports = {
presets: [
'@babel/preset-env'
],
plugins: [
[
'@babel/plugin-transform-runtime',
{
"corejs": false,
"helpers": true,
"regenerator": false,
"useESModules": false
}
]
],
ignore: ['node_modules']
};
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"codeFrame": true,
"ecmaVersion": 6,
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true
"impliedStrict": true
}
},
"rules": {
Expand Down Expand Up @@ -50,6 +49,7 @@
}],
"no-param-reassign": 0,
"object-curly-spacing": [2, "never"],
"implicit-arrow-linebreak": [2, "beside"],
"import/no-mutable-exports": 1,
"import/prefer-default-export": 1,
"import/no-extraneous-dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6
8
37 changes: 37 additions & 0 deletions DEBT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Technical Debt

Although this file should contains technical debt, it also can contain
improvements or feature request.

## Add a method to trigger events

It would be useful to have a method to trigger events, e.g.

```javascript
trigger(node: Element, eventns: String | Object)
```

## Get events from other source

It could be nice to have a method that can obtain the methods registered
by other sorces, such as jQuery internal API.

For example:

```javascript
addSources('jQuery', function($) {
// perform logic here...
return {
// return the cache object from internal API
node,
events: {
click: [
{ handler, namespace, useCapture, selector, delegated, source },
],
}
};
});
```

The method `getEventListeners` should check also in the sources registered
in order to get the event listeners.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $ yarn add handle-events
<script src="https://unpkg.com/handle-events/dist/handle-events.min.js"></script>

<!-- or from rawgit.com -->
<script src="https://cdn.rawgit.com/jherax/handle-events/1.1.2/dist/handle-events.min.js"></script>
<script src="https://cdn.rawgit.com/jherax/handle-events/1.1.3/dist/handle-events.min.js"></script>
```

In the above case, the library will be included as global object
Expand Down
Loading

0 comments on commit 3f68b40

Please sign in to comment.