-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
119 lines (119 loc) · 4.74 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
109
110
111
112
113
114
115
116
117
118
119
{
"name": "cdlib-ui",
"version": "2.0.0",
"description": "The UI for the California Digital Library website",
"scripts": {
"start": "npm-run-all clean --parallel parcel-dev fractal-dev watchstyles watchjs --silent",
"build": "run-s clean parcel-build fractal-build lintstyles lintjs --silent",
"clean": "del dist ui-assets",
"fractal-dev": "fractal start --sync --watch",
"fractal-build": "fractal build",
"parcel-dev": "parcel watch css/main.css js/main.js images/* --dist-dir ui-assets --public-url . --no-cache",
"parcel-build": "parcel build css/main.css js/main.js images/* --dist-dir ui-assets --public-url . --no-cache --no-source-maps",
"watchstyles": "onchange -i css/* -- npm run lintstyles",
"watchjs": "onchange -i js/* -- npm run lintjs",
"lintstyles": "stylelint 'css/**/*.css' '!css/main.css'",
"lintjs": "standard js/* --verbose | snazzy || exit 0",
"push-assets-local": "rsync -rvu --delete --exclude '.DS_Store' dist/ui-assets ~/'Local Sites'/cdlib/app/public/wp-content/themes/cdlib",
"push-assets-dev": "rsync -rvu --delete --exclude '.DS_Store' ./dist/ui-assets [email protected]:/apps/cdlib/apache/htdocs/wp-content/themes/cdlib",
"push-assets-stage": "rsync -rvu --delete --exclude '.DS_Store' ./dist/ui-assets [email protected]:/apps/cdlib/apache/htdocs/wp-content/themes/cdlib",
"push-assets-prod": "rsync -rvu --delete --exclude '.DS_Store' ./dist/ui-assets [email protected]:/apps/cdlib/apache/htdocs/wp-content/themes/cdlib",
"test-percy": "run-s test-build start-percy",
"test-pa11y": "run-s test-build start-pa11y",
"test-build": "run-s build 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/components/preview -r dist/components/preview -f xml --no-clean",
"start-percy": "start-server-and-test test-serve 8080 run-percy",
"run-percy": "npx percy snapshot http://localhost:8080/components/preview/sitemap.xml",
"start-pa11y": "start-server-and-test test-serve 8080 run-pa11y",
"run-pa11y": "pa11y-ci --sitemap http://localhost:8080/components/preview/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": "~20",
"npm": "~10"
},
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@fortawesome/fontawesome-pro": "^6.6.0",
"@frctl/fractal": "^1.5.15",
"@parcel/optimizer-data-url": "^2.12.0",
"@parcel/transformer-inline-string": "^2.12.0",
"@parcel/transformer-raw": "^2.12.0",
"@percy/cli": "^1.29.1",
"del-cli": "^5.1.0",
"format-json-files": "^1.0.6",
"http-server": "^14.1.1",
"modern-normalize": "^2.0.0",
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0",
"pa11y-ci": "^3.1.0",
"parcel": "^2.12.0",
"postcss": "^8.4.40",
"postcss-import": "^16.1.0",
"postcss-import-ext-glob": "^2.1.1",
"snazzy": "^9.0.0",
"source-sans": "^3.46.0",
"standard": "^17.1.0",
"start-server-and-test": "^2.0.5",
"static-sitemap-cli": "^2.2.5",
"stylelint": "^16.8.1",
"stylelint-config-property-sort-order-smacss": "^10.0.0",
"stylelint-config-standard": "^36.0.1"
},
"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"
],
"@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"
}
]
}
}
}