UNPKG

hugo-lunr-indexer

Version:

Generate Lunr indices for Hugo static sites by parsing front matter.

54 lines (53 loc) 1.46 kB
{ "name": "hugo-lunr-indexer", "version": "1.1.3", "description": "Generate Lunr indices for Hugo static sites by parsing front matter.", "main": "./lib/hli.js", "bin": { "hli": "./bin/hli.js", "hugo-lunr-indexer": "./bin/hli.js" }, "directories": { "bin": "./bin", "lib": "./lib" }, "scripts": { "index": "node ./bin/hli.js -i 'content/**' -o 'public/lunr.json' -l 'toml' -d '+++'", "lint": "eslint --fix ./bin ./lib ./test", "prettier": "prettier --write '**/*.js'", "test": "jest", "test:watch": "jest --watch", "test:cov": "jest --coverage", "prep": "yarn lint && yarn prettier && yarn test", "prepublishOnly": "yarn prep && bash ./publish.sh" }, "keywords": [ "lunr", "hugo", "index", "indexer", "toml", "yaml" ], "author": "Travis Clarke <travis.m.clarke@gmail.com> (https://www.travismclarke.com/)", "repository": "github:clarketm/hugo-lunr-indexer", "homepage": "https://github.com/clarketm/hugo-lunr-indexer#readme", "license": "Apache-2.0", "dependencies": { "glob": "^7.1.2", "gray-matter": "^3.0.2", "remove-markdown": "^0.2.0", "striptags": "^3.0.1", "toml": "^2.3.2" }, "devDependencies": { "@types/jest": "^23.3.1", "@types/shelljs": "^0.8.0", "eslint": "^5.4.0", "jest": "^23.5.0", "mock-fs": "^4.6.0", "prettier": "^1.14.2", "shelljs": "^0.8.2", "yeoman-assert": "^3.1.1" } }