Travis GitHub Releases (#2552)

* Make Travis to deploy built files for tags

See https://docs.travis-ci.com/user/deployment/releases

* Remove and ignore dist/* files

Travis now builds and deploys these files for all tags, so we don't need to have them on the repository anymore.

* Add download links to the latest version

Remove outdated *standard build* and *bundled with Moment.js* links from the documentation and add a link to the latest GitHub release, from where the user can download `*.js` files.
This commit is contained in:
Simon Brunel 2016-05-14 23:35:32 +02:00 committed by Evert Timberg
parent b64e03dbd0
commit 4e9e26c85d
8 changed files with 19 additions and 23691 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
node_modules/*
custom/*
dist/*
docs/index.md

View File

@ -11,6 +11,7 @@ before_script:
- npm install
script:
- gulp build
- gulp test
- gulp coverage
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
@ -28,3 +29,16 @@ addons:
- google-chrome
packages:
- google-chrome-stable
deploy:
provider: releases
api_key:
secure: SKVoNcAa9gMkpWQON5zlQ9PaPUxfIRAa9GsEho1gortNkPR8CyniXP0YLhvSrBkt/d+YQ/JuONcQQ+FmD28x6Gb8BIZ5dndsM1jXdaW8KhAF5/U18YsNKWx/GjrTr2fyu9lTfDuTr13IR2qFEi0mUu4ZC+gk53g3vM/04up0rNG3zTyRamGNSKXHN2lQAU7+LhFl86ziMQLx897ZyT6jr6U1xTwUXrEvWB6zWjLf6kkVT0JCevjtMzm5LJXt6u2C5UBuuRCiqnuNbLOlSDmb+sI02U6mzeNz24rTjz6+i2rB98leiM0gqm1+rJzrmh3hlS0kQrdp/JUUBTCI8D5KAO3ZbiWk0dQAh1hpc5Afm7R+m9swhG6+EYTWtM+Fej3YGbWLLmCU2gTKj+3aZDjGSo/bwvFyGHF+kuTzbnFLEC6EjMzH6uhtQEw/ny9bm69i2O3c2D/8Oj6lGt4AJQLYCSsvy9RDk+1dqZk5ATTppxKPgcq+HUk/TOKC3BpgkVIbj9xGEqYkz6KXzh4drkL2yE6d/cheutRdlyEkQ3DWlv0c3pIZksRb5SGD/Vvt3JhNOaeBeQJVwiPCxt4U9r4zqVVgUbvWNRTJAeA/LtWhcZXtgYkj4EXJDmeoQ6nqOGZAQkTKpmHR2b0cnwa+AW+0jLz0PHPRMWU6UT0RKZ5cfZ0=
file:
- "./dist/Chart.bundle.js"
- "./dist/Chart.bundle.min.js"
- "./dist/Chart.js"
- "./dist/Chart.min.js"
skip_cleanup: true
on:
tags: true

View File

@ -8,7 +8,7 @@
## Installation
To download a zip, go to the Chart.js on Github
You can download the latest version of [Chart.js on GitHub](https://github.com/chartjs/Chart.js/releases/latest) or just use these [Chart.js CDN](https://cdnjs.com/libraries/Chart.js) links.
To install via npm / bower:

13846
dist/Chart.bundle.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

9807
dist/Chart.js vendored

File diff suppressed because it is too large Load Diff

15
dist/Chart.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -5,10 +5,9 @@ anchor: getting-started
### Download Chart.js
To download a zip, go to [Chart.js on Github](https://github.com/chartjs/Chart.js) and choose the version that is right for your application.
* [Standard build](https://raw.githubusercontent.com/chartjs/Chart.js/v2.0-dev/dist/Chart.js) (~31kB gzipped)
* [Bundled with Moment.js](https://raw.githubusercontent.com/chartjs/Chart.js/v2.0-dev/dist/Chart.bundle.js) (~45kB gzipped)
* [CDN Versions](https://cdnjs.com/libraries/Chart.js)
You can download the latest version of [Chart.js on GitHub](https://github.com/chartjs/Chart.js/releases/latest) or just use these [Chart.js CDN](https://cdnjs.com/libraries/Chart.js) links.
### Installation
To install via npm / bower:
@ -19,8 +18,6 @@ npm install chart.js --save
bower install Chart.js --save
```
### Installation
To import Chart.js using an old-school script tag:
```html