Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Es5 fix #51

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015"]
"presets": ["latest"]
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ coverage

# Dependency directories
/node_modules/

/lib
# Build directory
/dist/

Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
example
node_modules
tests
src
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cache:

install:
- npm install --ignore-scripts
- npm run build

script:
- npm test
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Javascript client library for Core API",
"main": "lib/index.js",
"scripts": {
"build": "mkdir -p dist && browserify --standalone coreapi -d -t babelify lib/index.js -o dist/coreapi.js",
"watch": "watchify --standalone coreapi -t babelify lib/index.js -o dist/coreapi.js -v",
"build": "mkdir -p dist && babel src --out-dir lib && browserify --standalone coreapi -d -t babelify lib/index.js -o dist/coreapi.js",
"watch": "watchify --standalone coreapi -t babelify src/index.js -o dist/coreapi.js -v",
"prepublish": "npm run build",
"jest": "jest",
"test": "standard && jest --coverage"
Expand Down Expand Up @@ -46,8 +46,11 @@
"url-template": "^2.0.8"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-jest": "^18.0.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-latest": "^6.24.1",
"babelify": "^7.3.0",
"browserify": "^13.3.0",
"jest": "^18.1.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.