Skip to content

Commit

Permalink
Merge 7ebc978 into a22bcc4
Browse files Browse the repository at this point in the history
  • Loading branch information
nason committed Jun 17, 2018
2 parents a22bcc4 + 7ebc978 commit 686c23c
Show file tree
Hide file tree
Showing 9 changed files with 11,362 additions and 2,818 deletions.
37 changes: 34 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
{
"plugins": ["transform-runtime", "transform-object-rest-spread"],
"presets": ["env"]
}
"presets": [
[
"env", {
"modules": false,
"useBuiltIns": true,
"targets": {
"node": "8"
}
}
]
],
"plugins": [
"transform-object-rest-spread"
],

"env": {
"test": {
"presets": [
[
"env", {
"modules": "commonjs",
"useBuiltIns": true,
"targets": {
"node": "current"
}
}
]
],
"plugins": [
"istanbul"
]
}
}
}
7 changes: 3 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"parser": "babel-eslint",
"plugins": [
"babel",
"prettier"
],
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"modules": true
"experimentalObjectRestSpread": true
}
},
"root": true,
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
node_modules
*.log
lib
es
coverage
.nyc_output
.idea
.DS_Store
16 changes: 16 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"reporter": [
"lcov",
"text",
"html"
],
"include": [
"src/**/*.js"
],
"exclude": [
"src/**/*.spec.js"
],
"all": true,
"sourceMap": false,
"instrument": false
}
24 changes: 24 additions & 0 deletions .size-limit
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"name": "lib/index.js (min)",
"path": "lib/index.js",
"limit": "10 KB",
"gzip": false
},
{
"name": "lib/index.js (min + gzip)",
"path": "lib/index.js",
"limit": "4 KB"
},
{
"name": "lib/index.umd.js (min)",
"path": "lib/index.umd.js",
"limit": "10 KB",
"gzip": false
},
{
"name": "lib/index.umd.js (min + gzip)",
"path": "lib/index.umd.js",
"limit": "4 KB"
}
]
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Prerequisites

[Node.js](http://nodejs.org/) >= v8 must be installed.

## Installation

- Running `npm install` in the module's root directory will install everything you need for development.

## Running Tests

- `npm test` will run the tests once.

## Building

- `npm run build` will build the module.

- `npm run clean` will delete built resources.

0 comments on commit 686c23c

Please sign in to comment.