|
1 | 1 | { |
2 | 2 | "name": "react-autosuggest", |
3 | | - "version": "9.3.3", |
| 3 | + "version": "9.3.4", |
4 | 4 | "description": "WAI-ARIA compliant React autosuggest component", |
5 | 5 | "main": "dist/index.js", |
6 | 6 | "repository": { |
|
10 | 10 | "author": "Misha Moroshko <[email protected]>", |
11 | 11 | "scripts": { |
12 | 12 | "start": "mkdir -p demo/dist && npm run copy-static-files && node server", |
13 | | - "prettier": "prettier --single-quote --write \".*.js\" \"*.js\" \"demo/src/**/*.js\" \"demo/standalone/app.js\" \"src/**/*.js\" \"test/**/*.js\"", |
14 | | - "lint": "eslint src test demo/src demo/standalone/app.js server.js webpack.*.js", |
| 13 | + "prettier": |
| 14 | + "prettier --single-quote --write \".*.js\" \"*.js\" \"demo/src/**/*.js\" \"demo/standalone/app.js\" \"src/**/*.js\" \"test/**/*.js\"", |
| 15 | + "lint": |
| 16 | + "eslint src test demo/src demo/standalone/app.js server.js webpack.*.js", |
15 | 17 | "test": "nyc mocha \"test/**/*.test.js\"", |
16 | | - "copy-static-files": "cp demo/src/index.html demo/src/components/App/components/Examples/components/Basic/autosuggest.css demo/dist/", |
| 18 | + "copy-static-files": |
| 19 | + "cp demo/src/index.html demo/src/components/App/components/Examples/components/Basic/autosuggest.css demo/dist/", |
17 | 20 | "dist": "rm -rf dist && mkdir dist && babel src -d dist", |
18 | | - "demo-dist": "rm -rf demo/dist && mkdir demo/dist && npm run copy-static-files && cross-env BABEL_ENV=production webpack --config webpack.gh-pages.config.js", |
19 | | - "standalone": "cross-env BABEL_ENV=production webpack --config webpack.standalone.config.js && webpack --config webpack.standalone-demo.config.js", |
| 21 | + "demo-dist": |
| 22 | + "rm -rf demo/dist && mkdir demo/dist && npm run copy-static-files && cross-env BABEL_ENV=production webpack --config webpack.gh-pages.config.js", |
| 23 | + "standalone": |
| 24 | + "cross-env BABEL_ENV=production webpack --config webpack.standalone.config.js && webpack --config webpack.standalone-demo.config.js", |
20 | 25 | "prebuild": "npm run prettier && npm run lint && npm test", |
21 | 26 | "build": "npm run dist && npm run standalone", |
22 | 27 | "gh-pages-build": "npm run prebuild && npm run demo-dist", |
|
78 | 83 | "webpack": "^1.14.0", |
79 | 84 | "webpack-dev-server": "^1.16.2" |
80 | 85 | }, |
81 | | - "files": [ |
82 | | - "dist" |
83 | | - ], |
| 86 | + "files": ["dist"], |
84 | 87 | "lint-staged": { |
85 | | - ".*.js": [ |
86 | | - "npm run prettier", |
87 | | - "git add" |
88 | | - ], |
89 | | - "*.js": [ |
90 | | - "npm run prettier", |
91 | | - "git add" |
92 | | - ], |
93 | | - "demo/src/**/*.js": [ |
94 | | - "npm run prettier", |
95 | | - "git add" |
96 | | - ], |
97 | | - "demo/standalone/app.js": [ |
98 | | - "npm run prettier", |
99 | | - "git add" |
100 | | - ], |
101 | | - "src/**/*.js": [ |
102 | | - "npm run prettier", |
103 | | - "git add" |
104 | | - ], |
105 | | - "test/**/*.js": [ |
106 | | - "npm run prettier", |
107 | | - "git add" |
108 | | - ] |
| 88 | + ".*.js": ["npm run prettier", "git add"], |
| 89 | + "*.js": ["npm run prettier", "git add"], |
| 90 | + "demo/src/**/*.js": ["npm run prettier", "git add"], |
| 91 | + "demo/standalone/app.js": ["npm run prettier", "git add"], |
| 92 | + "src/**/*.js": ["npm run prettier", "git add"], |
| 93 | + "test/**/*.js": ["npm run prettier", "git add"] |
109 | 94 | }, |
110 | 95 | "keywords": [ |
111 | 96 | "autosuggest", |
|
131 | 116 | "branches": 91, |
132 | 117 | "functions": 100, |
133 | 118 | "lines": 95, |
134 | | - "include": [ |
135 | | - "src/*.js" |
136 | | - ], |
137 | | - "exclude": [ |
138 | | - "test/**/*.js" |
139 | | - ], |
140 | | - "reporter": [ |
141 | | - "lcov", |
142 | | - "text-summary" |
143 | | - ], |
144 | | - "require": [ |
145 | | - "babel-register", |
146 | | - "./test/setup.js" |
147 | | - ], |
| 119 | + "include": ["src/*.js"], |
| 120 | + "exclude": ["test/**/*.js"], |
| 121 | + "reporter": ["lcov", "text-summary"], |
| 122 | + "require": ["babel-register", "./test/setup.js"], |
148 | 123 | "check-coverage": true |
149 | 124 | }, |
150 | 125 | "license": "MIT" |
|
0 commit comments