Skip to content

Commit

Permalink
Add rollup for bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
nason committed Jun 14, 2018
1 parent a22bcc4 commit 286431f
Show file tree
Hide file tree
Showing 9 changed files with 10,633 additions and 2,480 deletions.
36 changes: 33 additions & 3 deletions .babelrc
@@ -1,4 +1,34 @@
{
"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"
}
}
]
]
}

}
}
7 changes: 3 additions & 4 deletions .eslintrc
@@ -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
@@ -1,5 +1,8 @@
node_modules
*.log
lib
umd
es
coverage
.idea
.DS_Store
12 changes: 12 additions & 0 deletions .size-limit
@@ -0,0 +1,12 @@
[
{
"name": "CJS",
"path": "lib/index.js",
"limit": "4 KB"
},
{
"name": "UMD",
"path": "umd/index.js",
"limit": "4 KB"
}
]
2 changes: 0 additions & 2 deletions .travis.yml
@@ -1,8 +1,6 @@
language: node_js
node_js:
- "node"
- "lts/*"
- "6"
cache:
directories:
- "node_modules"
Expand Down
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
@@ -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 286431f

Please sign in to comment.