|
1 | 1 | {
|
2 | 2 | "name": "vue-mdc",
|
3 |
| - "version": "1.0.0", |
4 |
| - "main": "index.js", |
| 3 | + "version": "2.0.0-alpha.1", |
| 4 | + "main": "dist/vue-mdc.common.js", |
| 5 | + "browser": "dist/vue-mdc.js", |
| 6 | + "unpkg": "dist/vue-mdc.js", |
| 7 | + "style": "dist/vue-mdc.css", |
5 | 8 | "author": "Eduardo San Martin Morote <[email protected]>",
|
6 | 9 | "license": "MIT",
|
| 10 | + "files": [ |
| 11 | + "dist", |
| 12 | + "src" |
| 13 | + ], |
7 | 14 | "scripts": {
|
8 | 15 | "dev": "webpack-dashboard -- webpack-dev-server --config build/webpack.config.dev.js --open",
|
| 16 | + "test": "yon run lint && yon run test:unit", |
9 | 17 | "test:unit": "cross-env BABEL_ENV=test karma start test/karma.conf.js --single-run",
|
10 | 18 | "build:dll": "webpack --progress --config build/webpack.config.dll.js",
|
11 | 19 | "postinstall": "yon run build:dll",
|
| 20 | + "lint": "eslint --ext js --ext jsx --ext vue src test/**/*.spec.js test/*.js build", |
| 21 | + "lint:fix": "yon run lint -- --fix", |
| 22 | + "lint:staged": "lint-staged", |
12 | 23 | "build": "yon run build:common && yon run build:browser && yon run build:browser:min",
|
13 | 24 | "build:browser": "cross-env NODE_ENV=browser yon run build:browser:base",
|
14 | 25 | "build:browser:base": "webpack --config build/webpack.config.browser.js --progress --hide-modules",
|
15 | 26 | "build:browser:min": "cross-env NODE_ENV=production yon build:browser:base -- -p",
|
16 | 27 | "build:common": "cross-env NODE_ENV=common webpack --config build/webpack.config.common.js --progress --hide-modules"
|
17 | 28 | },
|
| 29 | + "lint-staged": { |
| 30 | + "*.{vue,jsx,js}": [ |
| 31 | + "eslint --fix", |
| 32 | + "git add" |
| 33 | + ] |
| 34 | + }, |
| 35 | + "pre-commit": "lint:staged", |
18 | 36 | "devDependencies": {
|
19 | 37 | "add-asset-html-webpack-plugin": "^1.0.2",
|
20 | 38 | "babel-core": "^6.23.1",
|
| 39 | + "babel-eslint": "^7.1.1", |
21 | 40 | "babel-helper-vue-jsx-merge-props": "^2.0.2",
|
22 | 41 | "babel-loader": "^6.3.2",
|
23 | 42 | "babel-plugin-istanbul": "^4.0.0",
|
|
29 | 48 | "chai": "^3.5.0",
|
30 | 49 | "cross-env": "^3.1.4",
|
31 | 50 | "css-loader": "^0.26.1",
|
| 51 | + "eslint": "^3.15.0", |
| 52 | + "eslint-config-vue": "^2.0.2", |
| 53 | + "eslint-plugin-vue": "^2.0.1", |
32 | 54 | "extract-text-webpack-plugin": "beta",
|
| 55 | + "function-bind": "^1.1.0", |
33 | 56 | "html-webpack-plugin": "^2.28.0",
|
34 | 57 | "karma": "^1.4.1",
|
35 | 58 | "karma-coverage": "^1.1.1",
|
|
39 | 62 | "karma-sourcemap-loader": "^0.3.7",
|
40 | 63 | "karma-spec-reporter": "^0.0.26",
|
41 | 64 | "karma-webpack": "^2.0.2",
|
| 65 | + "lint-staged": "^3.3.0", |
42 | 66 | "material-components-web": "^0.4.0",
|
43 | 67 | "mocha": "^3.2.0",
|
44 | 68 | "mocha-css": "^1.0.1",
|
45 | 69 | "node-sass": "^4.5.0",
|
| 70 | + "pre-commit": "^1.2.2", |
46 | 71 | "sass-loader": "^6.0.1",
|
47 | 72 | "sinon": "^1.17.7",
|
48 | 73 | "sinon-chai": "^2.8.0",
|
|
0 commit comments