-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
108 lines (108 loc) · 3.73 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"name": "x-postpress",
"version": "3.0.3",
"description": "A Web Component used to render articles.",
"author": "x-postpress",
"license": "AGPL-3.0",
"keywords": [
"Web Components",
"Custom Elements",
"TypeScript",
"WordPress",
"REST API"
],
"homepage": "https://kherrick.github.io/x-postpress/",
"repository": {
"type": "git",
"url": "https://github.com/kherrick/x-postpress.git"
},
"main": "dist/x-postpress.js",
"module": "dist/x-postpress.js",
"files": [
"dist",
"types"
],
"type": "module",
"types": "types/index.d.ts",
"scripts": {
"build:development": "export NODE_ENV=development && npm run clean && tsc && npm run rollup:standard",
"build:production": "export NODE_ENV=production && npm run clean && tsc && npm run rollup:standard",
"build:testing": "export NODE_ENV=development && npm run clean && npm run tsc:testing && npm run rollup:testing",
"build": "npm run build:development",
"clean": "rimraf dist out-tsc",
"format:eslint": "eslint --ext .ts . --fix --ignore-path .gitignore",
"format:prettier": "prettier \"**/*.js\" \"**/*.ts\" --write --ignore-path .gitignore --config prettier.config.cjs",
"format": "npm run format:eslint && npm run format:prettier",
"lint:eslint": "eslint --ext .ts . --ignore-path .gitignore",
"lint:prettier": "prettier \"**/*.js\" \"**/*.ts\" --check --ignore-path .gitignore --config prettier.config.cjs",
"lint": "npm run lint:eslint && npm run lint:prettier",
"prepublish": "npm run build:production",
"rollup:standard:watch": "npm run rollup:standard -- -w",
"rollup:standard": "rollup -c rollup.config.js",
"rollup:testing:watch": "npm run rollup:testing -- -w",
"rollup:testing": "rollup -c rollup.test.config.js --banner 'if (global === undefined && window !== undefined) { var global = window; }'",
"start": "web-dev-server --hostname 0.0.0.0 --port 8080 --node-resolve --open --watch",
"test:manual": "npm run build:testing && wtr --open --manual",
"test:watch": "wtr --watch",
"test": "npm run build:testing && wtr --coverage",
"tsc:standard:watch": "npm run tsc:standard -- --watch",
"tsc:standard": "tsc --build ./tsconfig.json",
"tsc:testing:watch": "npm run tsc:testing -- --watch",
"tsc:testing": "tsc --build ./tsconfig.test.json"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@open-wc/testing": "^2.5.32",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@rollup/plugin-replace": "^2.3.4",
"@types/mocha": "^8.2.0",
"@types/node": "13.11.1",
"@typescript-eslint/eslint-plugin": "^2.20.0",
"@typescript-eslint/parser": "^2.20.0",
"@web/dev-server": "^0.0.12",
"@web/test-runner": "^0.11.7",
"@web/test-runner-playwright": "^0.7.2",
"concurrently": "^5.1.0",
"deepmerge": "^4.2.2",
"eslint": "^7.17.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-html": "^6.1.1",
"eslint-plugin-import": "^2.22.1",
"husky": "^1.0.0",
"lint-staged": "^10.0.0",
"prettier": "^2.0.4",
"rimraf": "^2.6.3",
"rollup": "^2.3.4",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-terser": "^7.0.2",
"serve": "^11.3.2",
"tslib": "^1.11.0",
"typescript": "~4.0.3",
"unmock": "^0.3.18",
"workbox-cli": "^5.1.4"
},
"eslintConfig": {
"extends": [
"@open-wc/eslint-config",
"eslint-config-prettier"
]
},
"prettier": {
"singleQuote": true,
"arrowParens": "avoid"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
}
}