Skip to content

Commit

Permalink
Transpile with babel for IE and Safari
Browse files Browse the repository at this point in the history
Transpile Array.includes for IE
Transpile arrow functions for Safari
  • Loading branch information
lukechilds committed Jan 24, 2017
1 parent 93c5b15 commit 2169611
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Project
dist

## Node

# Logs
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@
"name": "when-dom-ready",
"version": "1.2.2",
"description": "$(document).ready() for the 21st century",
"main": "src/index.js",
"main": "dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "babel -d dist src",
"lint": "xo",
"test": "nyc ava",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"coverage": "nyc report --reporter=text-lcov | coveralls",
"prepublish": "npm run build"
},
"babel": {
"plugins": [
"transform-es2015-arrow-functions",
"array-includes"
]
},
"ava": {
"require": [
Expand Down Expand Up @@ -39,6 +48,9 @@
"dependencies": {},
"devDependencies": {
"ava": "^0.17.0",
"babel-cli": "^6.22.2",
"babel-plugin-array-includes": "^2.0.3",
"babel-plugin-transform-es2015-arrow-functions": "^6.22.0",
"browser-env": "^2.0.19",
"coveralls": "^2.11.15",
"jsdom": "^9.9.1",
Expand Down

0 comments on commit 2169611

Please sign in to comment.