Skip to content

Commit 2045402

Browse files
committed
update deps and test
1 parent 426feef commit 2045402

File tree

6 files changed

+32
-33
lines changed

6 files changed

+32
-33
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
npm-debug.log*
22
node_modules
33
coverage
4+
package-lock.json

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
sudo: required
1+
sudo: false
22
dist: trusty
33
language: node_js
44
node_js:
5-
- "6"
5+
- "8"
6+
addons:
7+
chrome: stable
68
before_install:
79
- |
810
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/'

README.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,23 @@ import VueHighcharts from 'vue-highcharts';
3232
Vue.use(VueHighcharts);
3333
```
3434

35-
If you want to use Highstock, Highmaps or any other add-ons, you should pass in the `Highcharts` object [which included the corresponding modules](http://www.highcharts.com/docs/getting-started/install-from-npm).
35+
If you want to use Highstock, Highmaps or any other add-ons, you should pass in the `Highcharts` object [which included the corresponding modules](https://www.highcharts.com/docs/getting-started/install-from-npm).
3636

3737
```js
38-
// Use Highstock
3938
import Vue from 'vue';
4039
import VueHighcharts from 'vue-highcharts';
41-
import Highcharts from 'highcharts/highstock';
40+
import Highcharts from 'highcharts';
4241

43-
Vue.use(VueHighcharts, { Highcharts });
44-
```
45-
46-
```js
47-
// Use Highstock and Highmaps
48-
import Vue from 'vue';
49-
import VueHighcharts from 'vue-highcharts';
50-
import Highcharts from 'highcharts/highstock';
42+
import loadStock from 'highcharts/modules/stock';
5143
import loadMap from 'highcharts/modules/map';
44+
import loadDrilldown from 'highcharts/modules/drilldown';
5245

46+
loadStock(Highcharts);
5347
loadMap(Highcharts);
48+
loadDrillDown(Highcharts);
5449

5550
Vue.use(VueHighcharts, { Highcharts });
51+
// Now you can use Highstock, Highmaps and drilldown.
5652
```
5753

5854
Then you can use the components in your template.
@@ -64,9 +60,9 @@ Then you can use the components in your template.
6460
<highcharts-renderer :width="width" :height="height"></highcharts-renderer>
6561
```
6662

67-
The `options` object can be found in [Highcharts API Reference](http://api.highcharts.com/highcharts). Note you should never pass in `chart.renderTo` for watching it may cause stack overflow.
63+
The `options` object can be found in [Highcharts API Reference](https://api.highcharts.com/highcharts). Note you should never pass in `chart.renderTo` for watching it may cause stack overflow.
6864

69-
`<highcharts-renderer>` [creates an independent renderer](http://api.highcharts.com/highcharts/Renderer).
65+
`<highcharts-renderer>` [creates an independent renderer](https://api.highcharts.com/class-reference/Highcharts.SVGRenderer).
7066

7167
The `Highcharts` object is available at `vm.Highcharts`. If you want to access the `chart` or `renderer` instance, you can use child component refs:
7268

karma.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ module.exports = function(config) {
22
config.set({
33
singleRun: true,
44
frameworks: ['mocha', 'chai'],
5-
browsers: ['PhantomJS'],
5+
browsers: ['ChromeHeadless'],
66
files: [
77
'node_modules/vue/dist/vue.js',
8-
'node_modules/highcharts/highstock.js',
8+
'node_modules/highcharts/highcharts.js',
9+
'node_modules/highcharts/modules/stock.js',
910
'node_modules/highcharts/modules/map.js',
1011
'test/test.js'
1112
],
@@ -14,7 +15,6 @@ module.exports = function(config) {
1415
},
1516
rollupPreprocessor: {
1617
format: 'iife',
17-
moduleName: 'VueHighcharts',
1818
globals: {
1919
highcharts: 'Highcharts',
2020
vue: 'Vue'

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
],
1111
"scripts": {
1212
"lint": "eslint src test",
13-
"test": "npm run lint && karma start",
13+
"unit": "karma start",
14+
"test": "npm run lint && npm run unit",
1415
"bundle": "rollup src/index.js -f umd -n VueHighcharts -g highcharts:Highcharts -o dist/vue-highcharts.js",
1516
"minify": "uglifyjs dist/vue-highcharts.js -m -o dist/vue-highcharts.min.js",
1617
"build": "npm run bundle && npm run minify",
@@ -40,21 +41,20 @@
4041
"vue": ">=1.0.0"
4142
},
4243
"devDependencies": {
43-
"chai": "^4.0.0",
44-
"eslint": "^3.19.0",
45-
"eslint-config-google": "^0.7.1",
46-
"highcharts": "^5.0.12",
47-
"karma": "^1.7.0",
44+
"chai": "^4.1.2",
45+
"eslint": "^4.8.0",
46+
"eslint-config-google": "^0.9.1",
47+
"highcharts": "^6.0.1",
48+
"karma": "^1.7.1",
4849
"karma-chai": "^0.1.0",
50+
"karma-chrome-launcher": "^2.2.0",
4951
"karma-coverage": "^1.1.1",
5052
"karma-mocha": "^1.3.0",
51-
"karma-phantomjs-launcher": "^1.0.4",
52-
"karma-rollup-plugin": "^0.2.4",
53-
"mocha": "^3.4.2",
54-
"phantomjs-prebuilt": "^2.1.14",
55-
"rollup": "^0.41.6",
53+
"karma-rollup-preprocessor": "^5.0.1",
54+
"mocha": "^4.0.1",
55+
"rollup": "^0.50.0",
5656
"rollup-plugin-istanbul": "^1.1.0",
57-
"uglify-js": "^3.0.11",
58-
"vue": "^2.3.3"
57+
"uglify-js": "^3.1.3",
58+
"vue": "^2.4.4"
5959
}
6060
}

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ describe('vue-highcharts', function() {
4141
componentHelper(done, '<highstock :options="{}"></highstock>');
4242
});
4343

44-
it('should support <highstock> component', function(done) {
45-
componentHelper(done, '<highstock :options="{}"></highstock>');
44+
it('should support <highmaps> component', function(done) {
45+
componentHelper(done, '<highmaps :options="{}"></highmaps>');
4646
});
4747

4848
it('should support <highcharts-renderer> component', function(done) {

0 commit comments

Comments
 (0)