kommunelogo/package.json
Snorre Magnus Davøen 068db211d5 Uses Fuse.js fuzzy search to filter municipalities
Instead of using naive string search to filter the muncipalities we
can use the fuzzy search library Fuse.js to filter them. This way
incorrect spelling of municipality names won't stop the user from
getting the results she is looking for.

Fuse.js http://fusejs.io/ contains no dependencies and is quite light
weight. This makes it a good library for such a simple site.

Signed-off-by: Snorre Magnus Davøen <snorremd@gmail.com>
2017-07-21 15:27:07 +02:00

34 lines
1.1 KiB
JSON

{
"name": "kommunelogo",
"version": "0.1.0",
"private": true,
"homepage": "http://kommunelogo.nilsnh.no",
"dependencies": {
"@types/jest": "^20.0.2",
"@types/node": "^8.0.10",
"@types/query-string": "^4.3.1",
"@types/react": "^15.0.37",
"@types/react-dom": "^15.5.1",
"fuse.js": "^3.0.5",
"gh-pages": "^1.0.0",
"inuitcss": "^6.0.0-beta.5",
"node-sass-chokidar": "^0.0.3",
"query-string": "^4.3.4",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-scripts-ts": "2.4.0"
},
"devDependencies": {},
"scripts": {
"build:api": "tsc --target es5 --lib es6,dom --outDir apiBuild/ src/api.ts && node apiBuild/api.js > public/api.json",
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-scripts-ts start",
"build": "npm run build:api && react-scripts-ts build",
"test": "react-scripts-ts test --env=jsdom",
"eject": "react-scripts-ts eject",
"build-css": "node-sass-chokidar src/css/index.scss -o src/css/",
"watch-css": "npm run build-css && node-sass-chokidar src/css/index.scss -o src/css/ --watch --recursive || true"
}
}