UNPKG

2.78 kBJSONView Raw
1{
2 "name": "phtml",
3 "version": "4.1.0",
4 "description": "A tool for transforming HTML with JavaScript",
5 "author": "Jonathan Neal <jonathantneal@hotmail.com>",
6 "license": "CC0-1.0",
7 "repository": "jonathantneal/phtml",
8 "homepage": "https://github.com/phtmlorg/phtml#readme",
9 "bugs": "https://github.com/phtmlorg/phtml/issues",
10 "browser": "browser.js",
11 "main": "index.js",
12 "module": "index.mjs",
13 "bin": {
14 "phtml": "cli.js"
15 },
16 "files": [
17 "browser.development.js",
18 "browser.development.js.map",
19 "browser.js",
20 "cli.js",
21 "index.js",
22 "index.js.map",
23 "index.mjs",
24 "index.mjs.map"
25 ],
26 "scripts": {
27 "prebenchmark": "npm install posthtml reshape --no-save",
28 "benchmark": "node .benchmark.js",
29 "build": "npm run build:browser && npm run build:cli && npm run build:node",
30 "build:browser": "npm run build:browser:min && npm run build:browser:dev",
31 "build:browser:dev": "cross-env NODE_ENV=browserdev rollup --config --silent",
32 "build:browser:min": "cross-env NODE_ENV=browsermin rollup --config --silent",
33 "build:cli": "cross-env NODE_ENV=cli rollup --config --silent",
34 "build:node": "rollup --config --silent",
35 "docs": "jsdoc --configure .jsdocrc --destination .gh-pages",
36 "postdocs": "for file in .gh-pages/*.html; do npx phtml \"$file\" \"$file\" -p .gh-pages/scripts/phtml-patch; done",
37 "predocs": "rm -rf .gh-pages/*.html",
38 "prepublishOnly": "npm test && npm run build",
39 "pretest:tape": "npm run build:node",
40 "test": "npm run test:js && npm run test:tape",
41 "test:js": "eslint *.js src/*.js --cache --ignore-path .gitignore --quiet",
42 "test:tape": "node test",
43 "watch": "rollup --config --silent --watch"
44 },
45 "engines": {
46 "node": ">=8.0.0"
47 },
48 "dependencies": {
49 "parse5": "^5.1.0"
50 },
51 "devDependencies": {
52 "@babel/core": "^7.4.4",
53 "@babel/plugin-proposal-class-properties": "^7.4.4",
54 "@babel/preset-env": "^7.4.4",
55 "@phtml/image-alt": "^4.0.0",
56 "babel-eslint": "^10.0.1",
57 "babel-plugin-transform-for-of-as-array": "^1.1.1",
58 "benchmark": "^2.1.4",
59 "cross-env": "^5.2.0",
60 "docdash": "^1.1.0",
61 "eslint": "^5.16.0",
62 "jsdoc": "^3.6.2",
63 "pre-commit": "^1.2.2",
64 "rollup": "^1.12.1",
65 "rollup-plugin-babel": "^4.3.2",
66 "rollup-plugin-commonjs": "^10.0.0",
67 "rollup-plugin-node-resolve": "^5.0.0",
68 "rollup-plugin-terser": "^4.0.4"
69 },
70 "eslintConfig": {
71 "env": {
72 "browser": true,
73 "es6": true,
74 "node": true
75 },
76 "extends": "eslint:recommended",
77 "parser": "babel-eslint",
78 "parserOptions": {
79 "ecmaVersion": 2018,
80 "impliedStrict": true,
81 "sourceType": "module"
82 },
83 "root": true
84 },
85 "keywords": [
86 "phtml",
87 "html"
88 ]
89}