diff --git a/.eslintrc b/.eslintrc
index fdacb7f1..4876b92f 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -9,7 +9,8 @@
"globals": {
"should": true,
"expect": true,
- "sinon": true
+ "sinon": true,
+ "Reflect": true
},
"rules": {
"quotes": [2, "single"],
diff --git a/.travis.yml b/.travis.yml
index 0252e24c..13ded6a3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,6 +29,8 @@ cache:
before_install:
- travis_retry npm install jspm
- jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN
+before_script:
+- npm run jspm-install
before_deploy:
- npm run build-dist
deploy:
@@ -38,12 +40,6 @@ deploy:
on:
branch: master
condition: $JOB != e2e
- - skip_cleanup: true
- provider: script
- script: npm run branch-release
- on:
- branch: master
- condition: $JOB != e2e
- provider: npm
skip_cleanup: true
email: gotsijroman@gmail.com
@@ -51,3 +47,9 @@ deploy:
secure: PuhWLERrCEFmXmdFpw2OVFlqpOIVDmgwk5JUJOYaFdVCh/smp0+jZCQ4vrdFpuG96rnDVirD+A8xvW6NgsNNaRthLgOB/LRdFN69rU6Gvn3At6wlnC55t5dlhxPvCfnzJcHVBLXX4EmMkjnZqDg2uczXTzPodr3FnQJNuXmP8B33fzDVLyHccvXZ90abwXWVrgRIXPU28niqCR8DOC2OTzs7wqz+BLNkYDRRbyYXsg62HWuD33x5iof5IqBmhzBt3usCGmF3QGcgHrXHdZw3sZnit8+Bua++3KrXR0x6HGXXN1AoXVmCAkCa5OTQ5R3tCRxiJN3P2KLnvWeZR74sTFkovJB/6pGCvbJ/c7Wnuw6sD7SgOUBD359ULB6lAf5OnxBLoNebX4JxxVXF+zA4E3Bl44VxkzDpPWc15xqBPMB5vBREzMVmJ5mExn2s5cmLQjADbl9h0y6gZnhnNJ+iTmqtrVyM0ZkF2rPrzrTdGD+ULmRIlTMkdD1bh+/TJ3RdXT3P4/zNUJmiNnvgnnJVYYvsGaXWF+7uCVHT/8k2RsoSHqgkqh0gkDqGSwVix55y5mC7T2Vk9lMBhm6MvFJXaonOX0kxJS4EDQ3plPd6/ybG+TLhwggYnQ8o9msU5Nt6FpUShKiezjKurIhbQZdwlVivX3tahjW2QjNDO58xGgY=
on:
tags: true
+ - skip_cleanup: true
+ provider: script
+ script: npm run branch-release
+ on:
+ branch: master
+ condition: $JOB != e2e
diff --git a/README.md b/README.md
index a460b5e1..c39f95b2 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
# ReDoc
-[![Build Status](https://travis-ci.org/Rebilly/ReDoc.svg?branch=master)](https://travis-ci.org/Rebilly/ReDoc) [![Coverage Status](https://coveralls.io/repos/Rebilly/ReDoc/badge.svg?branch=master&service=github)](https://coveralls.io/github/Rebilly/ReDoc?branch=master) [![Code Climate](https://codeclimate.com/github/Rebilly/ReDoc/badges/gpa.svg)](https://codeclimate.com/github/Rebilly/ReDoc) [![David](https://david-dm.org/Rebilly/ReDoc/dev-status.svg)](https://david-dm.org/Rebilly/ReDoc#info=devDependencies)
+[![Build Status](https://travis-ci.org/Rebilly/ReDoc.svg?branch=master)](https://travis-ci.org/Rebilly/ReDoc) [![Coverage Status](https://coveralls.io/repos/Rebilly/ReDoc/badge.svg?branch=master&service=github)](https://coveralls.io/github/Rebilly/ReDoc?branch=master) [![Code Climate](https://codeclimate.com/github/Rebilly/ReDoc/badges/gpa.svg)](https://codeclimate.com/github/Rebilly/ReDoc) [![David](https://david-dm.org/Rebilly/ReDoc/dev-status.svg)](https://david-dm.org/Rebilly/ReDoc#info=devDependencies) [![Stories in Ready](https://badge.waffle.io/Rebilly/ReDoc.png?label=ready&title=Ready)](https://waffle.io/Rebilly/ReDoc)
[![npm](http://img.shields.io/npm/v/redoc.svg)](https://www.npmjs.com/package/swagger-parser) [![Bower](http://img.shields.io/bower/v/redoc.svg)](http://bower.io/) [![License](https://img.shields.io/npm/l/redoc.svg)](https://github.com/Rebilly/ReDoc/blob/master/LICENSE)
diff --git a/build/tasks/build.js b/build/tasks/build.js
index 2f14a46f..408cea9c 100644
--- a/build/tasks/build.js
+++ b/build/tasks/build.js
@@ -42,12 +42,14 @@ gulp.task('inlineTemplates', ['sass'], function() {
});
var JS_DEV_DEPS = [
+ 'lib/utils/browser-update.js',
'node_modules/zone.js/dist/zone-microtask.js',
'node_modules/reflect-metadata/Reflect.js',
'node_modules/babel-polyfill/dist/polyfill.js'
];
var JS_DEV_DEPS_MIN = [
+ 'lib/utils/browser-update.js',
'node_modules/zone.js/dist/zone-microtask.min.js',
'node_modules/reflect-metadata/Reflect.js',
'node_modules/babel-polyfill/dist/polyfill.min.js'
@@ -91,7 +93,7 @@ function bundle(outputFile, minify, cb) {
builder
.buildStatic(path.join(paths.tmp, paths.sourceEntryPoint),
outputFile,
- { format:'umd', sourceMaps: true, lowResSourceMaps: true, minify: minify }
+ { format:'umd', sourceMaps: true, mangle: false, lowResSourceMaps: true, minify: minify }
)
.then(function() {
cb();
diff --git a/demo/index.html b/demo/index.html
index 1d480d20..c189d992 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -17,7 +17,7 @@
-
+