|
| 1 | +{ |
| 2 | + "name": "vhtml", |
| 3 | + "amdName": "vhtml", |
| 4 | + "version": "1.0.0", |
| 5 | + "description": "Hyperscript reviver that constructs a sanitized HTML string.", |
| 6 | + "main": "dist/vhtml.js", |
| 7 | + "minified:main": "dist/vhtml.min.js", |
| 8 | + "jsnext:main": "src/vhtml.js", |
| 9 | + "scripts": { |
| 10 | + "build": "npm-run-all transpile minify size", |
| 11 | + "transpile": "rollup -c rollup.config.js", |
| 12 | + "minify": "uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map", |
| 13 | + "size": "echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"", |
| 14 | + "test": "eslint {src,test} && mocha --compilers js:babel-register test/**/*.js", |
| 15 | + "prepublish": "npm-run-all build test", |
| 16 | + "release": "npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish" |
| 17 | + }, |
| 18 | + "babel": { |
| 19 | + "presets": [ |
| 20 | + "es2015-minimal", |
| 21 | + "stage-0", |
| 22 | + "react" |
| 23 | + ], |
| 24 | + "plugins": [ |
| 25 | + "transform-object-rest-spread", |
| 26 | + [ |
| 27 | + "transform-react-jsx", |
| 28 | + { |
| 29 | + "pragma": "h" |
| 30 | + } |
| 31 | + ] |
| 32 | + ] |
| 33 | + }, |
| 34 | + "keywords": [ |
| 35 | + "hyperscript", |
| 36 | + "html", |
| 37 | + "renderer", |
| 38 | + "strings" |
| 39 | + ], |
| 40 | + "repository": { |
| 41 | + "type": "git", |
| 42 | + "url": "git+https://github.com/developit/vhtml.git" |
| 43 | + }, |
| 44 | + "author": "Jason Miller <jason@developit.ca>", |
| 45 | + "license": "MIT", |
| 46 | + "bugs": { |
| 47 | + "url": "https://github.com/developit/vhtml/issues" |
| 48 | + }, |
| 49 | + "homepage": "https://github.com/developit/vhtml", |
| 50 | + "devDependencies": { |
| 51 | + "babel-core": "^6.6.4", |
| 52 | + "babel-eslint": "^5.0.0", |
| 53 | + "babel-plugin-transform-object-rest-spread": "^6.6.4", |
| 54 | + "babel-plugin-transform-react-jsx": "^6.6.5", |
| 55 | + "babel-preset-es2015-minimal": "^1.1.0", |
| 56 | + "babel-preset-es2015-minimal-rollup": "^1.1.0", |
| 57 | + "babel-preset-react": "^6.5.0", |
| 58 | + "babel-preset-stage-0": "^6.5.0", |
| 59 | + "babel-register": "^6.7.2", |
| 60 | + "chai": "^3.5.0", |
| 61 | + "eslint": "~2.2.0", |
| 62 | + "gzip-size-cli": "^1.0.0", |
| 63 | + "mkdirp": "^0.5.1", |
| 64 | + "mocha": "^2.4.5", |
| 65 | + "npm-run-all": "^1.5.1", |
| 66 | + "pretty-bytes-cli": "^1.0.0", |
| 67 | + "rollup": "^0.25.4", |
| 68 | + "rollup-plugin-babel": "^2.4.0", |
| 69 | + "uglify-js": "^2.6.2" |
| 70 | + } |
| 71 | +} |
0 commit comments