UNPKG

preact

Version:

Tiny & fast Component-based virtual DOM framework.

56 lines (55 loc) 2.2 kB
{ "name": "preact", "version": "2.2.0", "description": "Tiny & fast Component-based virtual DOM framework.", "main": "preact.js", "scripts": { "build": "npm run transpile && npm run minify && npm run size", "transpile": "babel -f preact.js -s -o $npm_package_main < src/${npm_package_main}", "minify": "uglifyjs -c sequences,dead_code,conditionals,booleans,unused,if_return,join_vars,drop_console -m -o $npm_package_main --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map -- $npm_package_main", "size": "size=$(gzip-size $npm_package_main) && echo \"gzip size: $size / $(pretty-bytes $size)\"", "test": "eslint src test && npm run test:mocha && npm run test:karma", "test:mocha": "mocha --recursive --compilers js:babel/register test/shared test/node", "test:karma": "karma start --single-run", "test:mocha:watch": "npm run test:mocha -- --watch", "test:karma:watch": "npm run test:karma -- no-single-run", "prepublish": "npm run build", "release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish" }, "repository": { "type": "git", "url": "https://github.com/developit/preact.git" }, "author": "Jason Miller <jason@developit.ca>", "license": "ISC", "bugs": { "url": "https://github.com/developit/preact/issues" }, "homepage": "https://github.com/developit/preact", "devDependencies": { "babel": "^5.8.23", "babel-core": "^5.8.24", "babel-eslint": "^4.1.1", "babel-loader": "^5.3.2", "babel-runtime": "^5.8.24", "chai": "^3.4.1", "eslint": "^1.9.0", "gzip-size-cli": "^1.0.0", "karma": "^0.13.15", "karma-babel-preprocessor": "^5.2.2", "karma-chai": "^0.1.0", "karma-chai-sinon": "^0.1.5", "karma-mocha": "^0.2.0", "karma-mocha-reporter": "^1.1.1", "karma-phantomjs-launcher": "^0.2.1", "karma-sourcemap-loader": "^0.3.6", "karma-webpack": "^1.7.0", "mocha": "^2.3.3", "phantomjs": "^1.9.18", "pretty-bytes": "^2.0.1", "sinon": "^1.17.2", "sinon-chai": "^2.8.0", "uglify-js": "^2.6.0", "webpack": "^1.12.4" } }