hyperhtml
Version:
A Fast & Light Virtual DOM Alternative
166 lines (165 loc) • 4.34 kB
JSON
{
"name": "hyperhtml",
"version": "2.34.2",
"description": "A Fast & Light Virtual DOM Alternative",
"homepage": "https://viperhtml.js.org/hyper.html",
"unpkg": "min.js",
"main": "cjs/index.js",
"module": "esm/index.js",
"types": "index.d.ts",
"scripts": {
"$": "npm-dollar",
"build": "npm run $ build",
"bundle": "npm run $ bundle",
"test": "npm run $ test"
},
"$": {
"bundle": {
"max": [
"rollup --config rollup.config.js",
"$ clean.esm",
"drop-babel-typeof index.js"
],
"min": [
[
"echo \"/*! (c) Andrea Giammarchi (ISC) */$(",
"uglifyjs index.js -c -m",
")\" > min.js"
]
],
"ie": [
[
"rollup --config rollup.ie.js"
]
],
"umd": [
[
"echo \"(function(A,G){if(typeof define=='function'&&define.amd)define([],G);else",
"if(typeof module=='object'&&module.exports)module.exports=G();else",
"A.hyperHTML=G()}(typeof self!='undefined'?self:this,function(){\">umd.js;cat",
"min.js>>umd.js;echo \"return hyperHTML}));\">>umd.js"
]
],
"esm": [
"cp min.js esm.js",
"echo 'export default hyperHTML;' >> esm.js",
"echo 'export const {Component, bind, define, diff, hyper, wire} = hyperHTML;' >> esm.js"
]
},
"build": [
"$ cjs",
"$ clean.cjs index.js",
"$ clean.cjs classes/Component.js",
"$ clean.cjs hyper/render.js",
"$ clean.cjs objects/Updates.js",
"$ clean.cjs shared/utils.js",
"$ clean.cjs hyper/wire.js",
"$ bundle.max",
"$ bundle.min",
"$ bundle.umd",
"$ bundle.esm",
"$ bundle.ie",
"$ test",
"$ size"
],
"clean": {
"cjs": "sed -i.bck 's/m.default : m/\\/* istanbul ignore next *\\/ m.default : \\/* istanbul ignore next *\\/ m/g' cjs/$1 && rm -f cjs/$1.bck",
"esm": [
[
"cat index.js |",
"sed 's/(exports)/(document)/' |",
"sed 's/return exports;/return hyper;/' |",
"sed -e 's/exports.*;//g' |",
"sed '/var createContent$1 =/,/(document);/d' |",
"sed 's/createContent$1/createContent/' |",
"sed 's/({})/(document)/' |",
"sed -e 's/var isNoOp =.*/var isNoOp = false;/' > index.clean"
],
"mv index.clean index.js"
]
},
"cjs": [
"ascjs ./esm ./cjs"
],
"size": {
"gzip": [
[
"cat index.js |",
"wc -c;cat min.js |",
"wc -c;gzip -c9 min.js |",
"wc -c"
]
],
"brotli": "cat min.js | brotli | wc -c"
},
"test": [
"istanbul cover test/runner.js"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/WebReflection/hyperhtml.git"
},
"keywords": [
"dom",
"diff",
"performance",
"template",
"literals",
"lightweight",
"fast",
"react",
"virtual",
"lit-html",
"alternative"
],
"author": "Andrea Giammarchi",
"license": "ISC",
"bugs": {
"url": "https://github.com/WebReflection/hyperhtml/issues"
},
"devDependencies": {
"@babel/core": "7.10.3",
"@babel/preset-env": "7.10.3",
"ascjs": "4.0.1",
"basichtml": "2.3.0",
"drop-babel-typeof": "1.0.3",
"istanbul": "0.4.5",
"npm-dollar": "2.2.1",
"rollup": "2.18.1",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-node-resolve": "5.2.0",
"tressa": "0.3.1",
"uglify-js": "3.10.0"
},
"greenkeeper": {
"ignore": [
"uglify-js",
"rollup",
"rollup-plugin-babel",
"rollup-plugin-node-resolve"
]
},
"dependencies": {
"@ungap/create-content": "0.2.0",
"@ungap/custom-event": "0.3.1",
"@ungap/essential-map": "0.3.2",
"@ungap/essential-weakset": "0.2.1",
"@ungap/is-array": "0.2.0",
"@ungap/template-tag-arguments": "0.5.0",
"@ungap/weakmap": "0.2.1",
"disconnected": "0.2.1",
"domdiff": "2.2.2",
"domtagger": "0.7.0",
"hyperhtml-style": "0.1.2",
"hyperhtml-wire": "2.1.1"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/hyperhtml"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/hyperhtml"
}
}