]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - package.json
"yarn test" should run "yarn build" first to avoid outdated bundle (#147)
[nominatim-ui.git] / package.json
index c2d35caaf1c40a3374980c18753d70548ba1e700..9a9c082f7efc4eb2be160158ded007e171b819be 100644 (file)
@@ -1,17 +1,22 @@
 {
   "name": "nominatim-ui",
   "description": "Debug web interface for Nominatim geocoder",
 {
   "name": "nominatim-ui",
   "description": "Debug web interface for Nominatim geocoder",
-  "version": "3.0.1",
+  "version": "3.1.0",
   "license": "GPL-2.0",
   "scripts": {
     "build": "rollup -c",
     "dev": "rollup -c -w",
   "license": "GPL-2.0",
   "scripts": {
     "build": "rollup -c",
     "dev": "rollup -c -w",
-    "lint": "eslint --quiet .*.js src/",
+    "lint": "eslint --quiet .*.js src/ test/",
+    "test": "rollup -c && mocha --recursive test/",
     "start": "static-server dist"
   },
   "devDependencies": {
     "start": "static-server dist"
   },
   "devDependencies": {
-    "@rollup/plugin-commonjs": "^17.0.0",
+    "@rollup/plugin-commonjs": "^18.0.0",
     "@rollup/plugin-node-resolve": "^11.0.0",
     "@rollup/plugin-node-resolve": "^11.0.0",
+    "eslint-plugin-mocha": "^8.1.0",
+    "fs-extra": "^9.1.0",
+    "mocha": "^8.3.2",
+    "puppeteer": "^8.0.0",
     "rollup": "^2.3.4",
     "rollup-plugin-css-only": "^3.1.0",
     "rollup-plugin-livereload": "^2.0.0",
     "rollup": "^2.3.4",
     "rollup-plugin-css-only": "^3.1.0",
     "rollup-plugin-livereload": "^2.0.0",