|
36 | 36 | "Wrapper",
|
37 | 37 | "Charts"
|
38 | 38 | ],
|
39 |
| - "main": "src/index.js", |
| 39 | + "main": "dist/vue-chartjs.js", |
40 | 40 | "unpkg": "dist/vue-chartjs.js",
|
| 41 | + "module": "es/index.js", |
| 42 | + "jsnext:main": "es/index.js", |
41 | 43 | "files": [
|
42 | 44 | "src",
|
43 |
| - "dist" |
| 45 | + "dist", |
| 46 | + "es" |
44 | 47 | ],
|
45 | 48 | "scripts": {
|
46 | 49 | "dev": "node build/dev-server.js",
|
47 |
| - "build": "node build/build.js", |
| 50 | + "build": "yarn run release && yarn run build:es", |
| 51 | + "build:es": "cross-env BABEL_ENV=es babel src --out-dir es", |
48 | 52 | "unit": "karma start test/unit/karma.conf.js --single-run",
|
49 | 53 | "e2e": "node test/e2e/runner.js",
|
50 | 54 | "test": "npm run unit",
|
51 | 55 | "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs",
|
52 |
| - "release": "webpack --progress --hide-modules --config ./build/webpack.release.js" |
| 56 | + "release": "webpack --progress --hide-modules --config ./build/webpack.release.js", |
| 57 | + "prepublish": "yarn run lint && yarn run test && yarn run build" |
53 | 58 | },
|
54 | 59 | "dependencies": {
|
55 | 60 | "chart.js": "^2.5.0",
|
56 | 61 | "vue": "^2.2.1"
|
57 | 62 | },
|
58 | 63 | "devDependencies": {
|
59 |
| - "babel-runtime": "^6.23.0", |
| 64 | + "babel-cli": "^6.23.0", |
60 | 65 | "babel-core": "^6.23.1",
|
61 | 66 | "babel-loader": "^6.3.2",
|
62 | 67 | "babel-plugin-transform-runtime": "^6.23.0",
|
63 | 68 | "babel-preset-es2015": "^6.22.0",
|
64 | 69 | "babel-preset-stage-2": "^6.22.0",
|
| 70 | + "babel-runtime": "^6.23.0", |
65 | 71 | "chai": "^3.5.0",
|
66 | 72 | "chromedriver": "^2.21.2",
|
67 | 73 | "connect-history-api-fallback": "^1.1.0",
|
| 74 | + "cross-env": "^3.1.4", |
68 | 75 | "cross-spawn": "^5.0.1",
|
69 | 76 | "css-loader": "^0.26.2",
|
70 | 77 | "eslint": "^3.7.1",
|
71 | 78 | "eslint-config-standard": "^6.2.0",
|
72 | 79 | "eslint-friendly-formatter": "^2.0.5",
|
73 | 80 | "eslint-loader": "^1.3.0",
|
74 | 81 | "eslint-plugin-html": "^1.3.0",
|
75 |
| - "eslint-plugin-promise": "^3.4.0", |
76 |
| - "eslint-plugin-standard": "^2.0.1", |
| 82 | + "eslint-plugin-promise": "^3.5.0", |
| 83 | + "eslint-plugin-standard": "^2.1.1", |
77 | 84 | "eventsource-polyfill": "^0.9.6",
|
78 | 85 | "express": "^4.13.3",
|
79 | 86 | "extract-text-webpack-plugin": "^1.0.1",
|
|
107 | 114 | "url-loader": "^0.5.8",
|
108 | 115 | "vue-hot-reload-api": "^2.0.11",
|
109 | 116 | "vue-html-loader": "^1.2.4",
|
110 |
| - "vue-loader": "^11.1.3", |
| 117 | + "vue-loader": "^11.1.4", |
111 | 118 | "vue-style-loader": "^2.0.3",
|
112 | 119 | "vue-template-compiler": "^2.2.1",
|
113 | 120 | "webpack": "^1.13.2",
|
|
0 commit comments