Skip to content

Commit

Permalink
- Enhancement: Add ESM distribution along with UMD and point to in `p…
Browse files Browse the repository at this point in the history
…ackage.json`;

apply Babel (preset-env)
- Refactoring: ESM in source
- npm: Add rollup script and add it to test script
- npm: Update devDeps (jsdoc, rollup)
  • Loading branch information
brettz9 committed May 6, 2019
1 parent 882bb33 commit 3df3066
Show file tree
Hide file tree
Showing 20 changed files with 4,294 additions and 41 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
["@babel/env"]
]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
docs/jsdoc
20 changes: 14 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": ["ash-nazg/sauron-node", "plugin:node/recommended-script"],
"extends": ["ash-nazg/sauron-node"],
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 2018,
"sourceType": "module"
},
"settings": {
"polyfills": [
Expand All @@ -20,6 +20,17 @@ module.exports = {
]
},
"overrides": [
{
files: "docs/jsdoc-config.js",
globals: {
"module": "readonly"
},
rules: {
strict: "off",
"import/unambiguous": "off",
"import/no-commonjs": "off"
}
},
{
files: ["**/*.md"],
rules: {
Expand Down Expand Up @@ -70,9 +81,6 @@ module.exports = {
"require-unicode-regexp": "off",
"yoda": "off",
"valid-jsdoc": 0,
"import/unambiguous": 0,
"global-require": 0,
"import/no-commonjs": 0,
"consistent-this": "off"
}
};
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
docs/jsdoc
test
rollup.config.js
scratchpad
Loading

0 comments on commit 3df3066

Please sign in to comment.