UNPKG

html-to-gutenberg

Version:

Transform any valid HTML string into fully editable WP Gutenberg blocks in seconds rather than hours.

132 lines (131 loc) 3.43 kB
{ "dependencies": { "@aws-sdk/client-s3": "^3.888.0", "@babel/core": "^7.29.0", "@babel/preset-react": "^7.28.5", "@svgr/core": "^8.1.0", "cheerio": "^1.2.0", "css-scoping": "^1.0.5", "dotenv": "^17.3.1", "fetch-page-assets": "^1.2.7", "fs": "^0.0.1-security", "jszip": "^3.10.1", "mime-types": "^3.0.1", "node-fetch": "^3.3.2", "node-html-to-jsx": "^1.4.4", "path": "^0.12.7" }, "devDependencies": { "@eslint/js": "^10.0.1", "@types/babel__core": "^7.20.5", "@types/beautify": "^0.0.3", "@types/chai": "^5.2.3", "@types/cheerio": "^1.0.0", "@types/image-to-base64": "^2.1.2", "@types/mocha": "^10.0.10", "@types/prettier": "^3.0.0", "@types/svgo": "^3.0.0", "@typescript-eslint/eslint-plugin": "^8.56.1", "@typescript-eslint/parser": "^8.56.1", "chai": "^6.2.2", "c8": "^11.0.0", "coveralls": "^3.1.1", "eslint": "^10.0.2", "mocha": "^11.3.0", "nyc": "^18.0.0", "source-map-support": "^0.5.21", "ts-jest": "^29.4.6", "ts-node": "^10.9.2", "typescript-eslint": "^8.56.1" }, "types": "index.d.ts", "name": "html-to-gutenberg", "version": "4.2.13", "description": "Transform any valid HTML string into fully editable WP Gutenberg blocks in seconds rather than hours.", "main": "index.js", "directories": { "test": "test" }, "scripts": { "postinstall": "mv ./node_modules/fetch-page-assets/index.ts ./node_modules/fetch-page-assets/index.ts.bak || true && node ./scripts/patch-fetch-page-assets.mjs", "test": "mocha -r ts-node/register/transpile-only index.test.ts fetch-page-assets.test.ts", "build": "tsc", "coverage": "c8 mocha -r ts-node/register/transpile-only index.test.ts fetch-page-assets.test.ts", "coveralls": "c8 mocha -r ts-node/register/transpile-only index.test.ts fetch-page-assets.test.ts && c8 report --reporter=lcov && cat coverage/lcov.info | coveralls" }, "repository": { "type": "git", "url": "git+https://github.com/DiogoAngelim/html-to-gutenberg.git" }, "keywords": [ "frontend", "gutenberg", "html", "wordpress", "wp", "jsx", "converter", "template", "block", "UI" ], "author": "Diogo Angelim", "license": "MIT", "funding": "https://www.paypal.com/donate/?hosted_button_id=XA5LN4XR39PMQ", "bugs": { "url": "https://github.com/DiogoAngelim/html-to-gutenberg/issues" }, "homepage": "https://www.html-to-gutenberg.io", "c8": { "reporter": [ "text", "lcov" ], "include": [ "index.js", "utils.ts", "globals.js", "vendor/fetch-page-assets/index.js" ], "exclude": [ "coverage", "dist", "node_modules", "scripts", "**/*.test.ts" ], "all": true }, "jest": { "preset": "ts-jest/presets/js-with-ts", "testEnvironment": "node", "extensionsToTreatAsEsm": [ ".ts" ], "transform": { "^.+\\.tsx?$": [ "ts-jest", { "useESM": true } ] }, "globals": { "ts-jest": { "tsconfig": "tsconfig.json", "useESM": true } }, "moduleNameMapper": { "^(\\.{1,2}/.*)\\.js$": "$1" }, "collectCoverage": true, "collectCoverageFrom": [ "dist/*.js", "!dist/*.test.js" ], "testMatch": [ "<rootDir>/dist/*.test.js" ] } }