Files
releases/docs/website/scripts/live-blocks/package.json
T
David Boles 91d98c7205 docs: Add live-editable code blocks to the docs.
This commit adds a postprocessor to the docs build that enables
examples to be edited and have the results show up live. See the
additions to `docs/README.md` for more about what writing these
blocks looks like or the netlify PR preview
(e.g. at `docs/edge/how-do-i-write-policies/`)
to see them in action (you'll need to disable CORS for live output).

Signed-off-by: David Boles <me@davidbol.es>
2019-08-21 10:12:49 -07:00

57 lines
1.8 KiB
JSON

{
"name": "live-blocks",
"version": "0.0.0",
"description": "",
"license": "Apache-2.0",
"author": "",
"browser": "dist/live-blocks.js",
"scripts": {
"bundle-web": "rollup -c",
"check": "sort-package-json && npm run lint && npm run test",
"clear-bundle-cache": "rm -rf ./dist",
"clear-caches": "npm run clear-bundle-cache && npm run clear-opa-cache && npm run clear-node-cache",
"clear-node-cache": "rm -rf ./node_modules",
"clear-opa-cache": "rm -rf ./opa_versions",
"inject": "./scripts/inject",
"install-deps": "./scripts/install-deps",
"lint": "./scripts/lint",
"preprocess": "node -r esm src/preprocess/index.js",
"test": "node -r esm ./node_modules/.bin/mocha"
},
"dependencies": {
"cheerio": "^1.0.0-rc.3",
"codemirror": "^5.48.4",
"codemirror-rego": "^1.0.2",
"esm": "^3.2.25",
"node-fetch": "^2.6.0",
"tmp": "^0.1.0"
},
"devDependencies": {
"@babel/core": "^7.5.0",
"@babel/plugin-proposal-decorators": "^7.4.4",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/plugin-transform-regenerator": "^7.4.5",
"@babel/preset-env": "^7.5.2",
"@babel/register": "^7.4.4",
"babel-eslint": "^10.0.2",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"core-js": "^3.1.4",
"eslint": "^6.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-sort-imports-es6-autofix": "^0.4.0",
"eslint-plugin-sort-requires": "^2.1.0",
"mocha": "^6.2.0",
"regenerator-runtime": "^0.13.2",
"rollup": "^1.16.6",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.1",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-terser": "^5.1.1",
"sinon": "^7.4.1",
"sort-package-json": "^1.22.1"
}
}