udomdiff

v1.1.0
An essential diffing algorithm for µhtml
domdiff smaller subset uhtml

build

npm run cjs && npm run rollup:new && npm run rollup:babel && npm run min && npm run fix:default && npm run test && npm run size

cjs

ascjs --no-default esm cjs

rollup:new

rollup --config rollup/new.config.js

rollup:babel

rollup --config rollup/babel.config.js

min

uglifyjs index.js --support-ie8 --comments=/^!/ -c -m -o min.js

fix:default

sed -i 's/({})/({}).default/' index.js && sed -i 's/({})/({}).default/' new.js && sed -i 's/({})/({}).default/' min.js

coveralls

nyc report --reporter=text-lcov | coveralls

test

nyc node test/index.js

size

cat min.js | brotli | wc -c && cat new.js | brotli | wc -c
npm i udomdiff

Metadata

  • ISC
  • Whatever
  • Andrea Giammarchi
  • released 4/15/2020

Downloads

Maintainers