-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
123 lines (123 loc) · 4.45 KB
/
package.json
File metadata and controls
123 lines (123 loc) · 4.45 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"name": "cdlib-ui",
"version": "3.0.0",
"description": "The user interface for the California Digital Library website",
"scripts": {
"start": "run-p parcel:dev watch:styles watch:js --silent",
"build": "run-s parcel:build lint:styles lint:js --silent",
"deploy": "run-s parcel:deploy lint:styles lint:js --silent",
"prestart": "del dist",
"prebuild": "del dist",
"predeploy": "del dist",
"parcel:dev": "parcel index.hbs --dist-dir dist",
"parcel:build": "parcel build src/css/fonts.css src/css/main.css src/images/* src/js/main.js --dist-dir dist --no-source-maps --no-cache",
"parcel:deploy": "parcel build index.hbs --dist-dir dist --public-url https://cdlib.github.io/cdlib-ui --no-source-maps --no-cache",
"parcel:test": "parcel build index.hbs --dist-dir dist --public-url http://localhost:8080 --no-source-maps --no-cache",
"watch:styles": "onchange -i 'src/css/**/*.css' -- npm run lint:styles",
"watch:js": "onchange -i src/js/* -- npm run lint:js",
"lint:styles": "stylelint 'src/css/**/*.css' '!src/css/main.css'",
"lint:js": "standard src/js/* --verbose | snazzy || exit 0",
"test-percy": "run-s test-build start-percy",
"test-pa11y": "run-s test-build start-pa11y",
"test-build": "run-s parcel:test start-sitemap",
"test-serve": "http-server dist -c-1 -s",
"start-sitemap": "start-server-and-test test-serve 8080 build-sitemap",
"build-sitemap": "sscli -b http://localhost:8080/src/pages -r dist/src/pages -f xml --no-clean",
"start-percy": "start-server-and-test test-serve 8080 run-percy",
"run-percy": "npx percy snapshot http://localhost:8080/src/pages/sitemap.xml",
"start-pa11y": "start-server-and-test test-serve 8080 run-pa11y",
"run-pa11y": "pa11y-ci --sitemap http://localhost:8080/src/pages/sitemap.xml",
"format-sample-data": "format-json-files sample-data",
"update-caniuse-lite": "npx update-browserslist-db@latest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cdlib/cdlib-ui.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/cdlib/cdlib-ui/issues"
},
"homepage": "https://github.com/cdlib/cdlib-ui#readme",
"engines": {
"node": "~24",
"npm": "~11"
},
"devDependencies": {
"@faker-js/faker": "^10.4.0",
"@fortawesome/fontawesome-pro": "^7.2.0",
"@marcotss/parcel-transformer-handlebars-json": "^1.0.0",
"@parcel/optimizer-data-url": "^2.16.4",
"@parcel/resolver-glob": "^2.16.4",
"@parcel/transformer-inline-string": "^2.16.4",
"@parcel/transformer-raw": "^2.16.4",
"@percy/cli": "^1.31.10",
"del-cli": "^7.0.0",
"format-json-files": "^1.0.6",
"http-server": "^14.1.1",
"modern-normalize": "^3.0.1",
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0",
"pa11y-ci": "^4.1.0",
"parcel": "^2.16.4",
"parcel-resolver-ignore": "^2.2.1",
"postcss": "^8.5.8",
"postcss-import": "^16.1.1",
"postcss-import-ext-glob": "^2.1.1",
"snazzy": "^9.0.0",
"source-sans": "^3.52.0",
"standard": "^17.1.0",
"start-server-and-test": "^3.0.0",
"static-sitemap-cli": "^2.2.5",
"stylelint": "^17.6.0",
"stylelint-config-property-sort-order-smacss": "^11.2.0",
"stylelint-config-standard": "^40.0.0"
},
"alias": {
"fa-brands/*": "@fortawesome/fontawesome-pro/svgs/brands/$1",
"fa-light/*": "@fortawesome/fontawesome-pro/svgs/light/$1",
"fa-regular/*": "@fortawesome/fontawesome-pro/svgs/regular/$1",
"fa-sharp-solid/*": "@fortawesome/fontawesome-pro/svgs/sharp-solid/$1",
"fa-solid/*": "@fortawesome/fontawesome-pro/svgs/solid/$1",
"fa-thin/*": "@fortawesome/fontawesome-pro/svgs/thin/$1"
},
"browserslist": [
"defaults"
],
"parcelIgnore": [
"sample-url"
],
"@parcel/transformer-css": {
"drafts": {
"customMedia": true
},
"errorRecovery": true
},
"percy": {
"version": 2,
"snapshot": {
"widths": [
1000
]
}
},
"stylelint": {
"defaultSeverity": "warning",
"extends": [
"stylelint-config-standard",
"stylelint-config-property-sort-order-smacss"
],
"rules": {
"import-notation": null,
"max-nesting-depth": 4,
"no-descending-specificity": null,
"selector-class-pattern": [
"^([a-z][a-z0-9]*)(-[a-z0-9]+)*((__([a-z][a-z0-9]*)(-[a-z0-9]+)*)?(--([a-z][a-z0-9]*)(-[a-z0-9]+)*)?)$",
{
"message": "Expected class pattern to be BEM style"
}
]
}
}
}