UNPKG

gitbook-plugin-include-codeblock

Version:
127 lines (126 loc) 3.44 kB
{ "name": "gitbook-plugin-include-codeblock", "repository": { "type": "git", "url": "https://github.com/azu/gitbook-plugin-include-codeblock.git" }, "author": "azu", "email": "azuciao@gmail.com", "homepage": "https://github.com/azu/gitbook-plugin-include-codeblock", "license": "MIT", "bugs": { "url": "https://github.com/azu/gitbook-plugin-include-codeblock/issues" }, "version": "3.2.3", "description": "GitBook plugin for including file", "main": "lib/include-codeblock.js", "bin": { "include-codeblock": "./bin/include-codeblock.js" }, "files": [ "bin", "lib", "templates", "src" ], "directories": { "test": "test" }, "scripts": { "build": "NODE_ENV=production babel src --out-dir lib --source-maps", "lint": "eslint --cache src/*.js test/*.js", "lint:fix": "eslint --fix src/*.js test/*.js", "watch": "babel src --out-dir lib --watch --source-maps", "prepublish": "npm run --if-present build", "test": "npm run lint && mocha", "test:example-default": "cd examples/default && yarn && npm run build", "test:example-ace": "cd examples/ace && yarn && npm run build", "test:example-custom": "cd examples/custom && yarn && npm run build", "eslint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check", "format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"", "prepare": "git config --local core.hooksPath .githooks" }, "keywords": [ "gitbook", "plugin", "gitbook-plugin" ], "engines": { "gitbook": "*" }, "gitbook": { "properties": { "check": { "type": "boolean", "description": "ace syntax validation (ace* template required)", "default": false, "required": false }, "edit": { "type": "boolean", "description": "ace code edition (ace* template required)", "default": false, "required": false }, "lang": { "type": "string", "description": "language for all codes", "default": "", "required": false }, "fixlang": { "type": "boolean", "description": "Fix lang label (c++,...)", "default": false, "required": false }, "template": { "type": "string", "description": "Template string", "default": "default", "required": false }, "theme": { "type": "string", "description": "ace code editor theme (ace* template required)", "default": "chrome", "required": false }, "unindent": { "type": "boolean", "description": "undindent inner snippets", "default": false, "required": false } } }, "dependencies": { "entities": "^1.1.1", "handlebars": "^4.0.5", "language-map": "^1.1.1", "meow": "^4.0.0" }, "devDependencies": { "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", "@babel/preset-env": "^7.0.0", "@babel/register": "^7.0.0", "eslint": "^8.6.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "lint-staged": "^12.1.7", "mocha": "^9.1.3", "prettier": "^2.5.1" }, "prettier": { "singleQuote": false, "printWidth": 120, "tabWidth": 4, "trailingComma": "none" }, "lint-staged": { "*.{js,jsx,ts,tsx,css}": [ "prettier --write" ] } }