-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
104 lines (104 loc) · 3.58 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
{
"name": "website",
"version": "1.0.0",
"type": "module",
"description": "My website",
"repository": {
"type": "git",
"url": "git+https://github.com/rodrigo-garcia-leon/website-app.git"
},
"scripts": {
"start": "wds --node-resolve --open --watch",
"start:dist": "wds --root-dir dist --open --watch",
"lint": "npm run lint:eslint && npm run lint:prettier && npm run lint:typescript",
"lint:eslint": "eslint --ext .js,.html . --ignore-path .gitignore",
"lint:prettier": "prettier \"**/*.js\" --check --ignore-path .gitignore",
"lint:typescript": "tsc",
"format": "npm run format:eslint && npm run format:prettier",
"format:eslint": "eslint --ext .js,.html . --fix --ignore-path .gitignore",
"format:prettier": "prettier \"**/*.js\" --write --ignore-path .gitignore",
"build": "npm run build:clean && npm run build:build && npm run build:copy && npm run build:minify",
"build:clean": "rm -rf dist",
"build:build": "./scripts/build.js",
"build:copy": "./scripts/copy.js",
"build:minify": "./scripts/minify.js",
"test": "npm run test:wtr && npm run test:visual-regression",
"test:wtr": "wtr",
"test:visual-regression": "concurrently -k -s \"first\" npm:test:visual-regression:start npm:test:visual-regression:test",
"test:visual-regression:update": "concurrently -k -s \"first\" npm:test:visual-regression:start npm:test:visual-regression:test:update",
"test:visual-regression:start": "wds --root-dir dist",
"test:visual-regression:test": "mocha test/visual-regression.js",
"test:visual-regression:test:update": "mocha test/visual-regression.js --update-visual-baseline",
"release": "npm run lint && npm run build && npm run test:visual-regression:update && npm run test",
"docker": "npm run docker:build && npm run docker:release",
"docker:build": "docker build -t rodrigo-garcia-leon/website .",
"docker:release": "docker run -t rodrigo-garcia-leon/website npm run release"
},
"author": "Rodrigo García <[email protected]>",
"license": "MIT",
"dependencies": {
"lit": "^2.0.2"
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@open-wc/eslint-config": "^7.0.0",
"@open-wc/prettier-config": "^0.1.10",
"@open-wc/testing": "^4.0.0",
"@types/mocha": "^10.0.9",
"@types/pixelmatch": "^5.2.4",
"@types/pngjs": "^6.0.1",
"@web/dev-server": "^0.1.15",
"@web/test-runner": "^0.13.22",
"@web/test-runner-puppeteer": "^0.17.0",
"chrome-launcher": "^0.14.0",
"concurrently": "^6.4.0",
"es-module-lexer": "^0.4.1",
"esbuild": "^0.11.14",
"esbuild-skypack-resolver": "^1.0.13",
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-lit-a11y": "^4.1.4",
"firebase-tools": "^13.25.0",
"globby": "^12.0.2",
"html-minifier": "^4.0.0",
"husky": "^1.0.0",
"lint-staged": "^11.0.0",
"minify-html-literals": "^1.3.5",
"mocha": "^10.8.2",
"node-fetch": "^3.1.1",
"pixelmatch": "^6.0.0",
"pngjs": "^6.0.0",
"puppeteer": "^23.7.1",
"typescript": "^4.4.4"
},
"eslintConfig": {
"extends": [
"@open-wc/eslint-config",
"eslint-config-prettier"
],
"overrides": [
{
"files": [
"scripts/*.js"
],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
},
"prettier": "@open-wc/prettier-config",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"prettier --write",
"git add"
]
},
"types": "./src/types.d.ts"
}