forked from KittyGiraudel/a11y-dialog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
57 lines (57 loc) · 2.29 KB
/
package.json
File metadata and controls
57 lines (57 loc) · 2.29 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
{
"name": "jk-a11y-dialog",
"version": "5.1.3",
"description": "A tiny script to make dialog windows accessible to assistive technology users. Forked from edenspiekermann https://github.com/edenspiekermann/a11y-dialog",
"homepage": "https://github.com/jurajk/a11y-dialog",
"license": "MIT",
"main": "a11y-dialog.js",
"keywords": [
"modal",
"dialog",
"accessibility",
"a11y",
"focus"
],
"author": "Hugo Giraudel (https://hugogiraudel.com)",
"repository": {
"type": "git",
"url": "https://github.com/jurajk/a11y-dialog"
},
"files": [
"a11y-dialog.js",
"a11y-dialog.min.js"
],
"scripts": {
"copy": "cp a11y-dialog.js example/main.js",
"minify": "uglifyjs a11y-dialog.js -o a11y-dialog.min.js -c -m",
"build": "npm run minify && npm run copy",
"postbuild": "npm run add-version",
"lint": "semistandard a11y-dialog.js",
"test": "open tests/index.html",
"extract-version": "cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]'",
"add-version": "echo \"/*! a11y-dialog $(npm run extract-version --silent) — © Edenspiekermann */\n$(cat a11y-dialog.min.js)\" > a11y-dialog.min.js",
"compress": "gzip -9 -fkc a11y-dialog.min.js > a11y-dialog.min.js.gz",
"show": "ls -lh a11y-dialog.min.js.gz | awk '{print \"Gzipped script size:\", $5\"B\"}'",
"size": "npm run build --silent && npm run compress --silent && npm run show --silent && rm a11y-dialog.min.js.gz",
"docs:clean": "rimraf _book",
"docs:prepare": "gitbook install",
"docs:build": "npm run docs:prepare && gitbook build",
"docs:watch": "npm run docs:prepare && gitbook serve",
"docs:publish": "npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'Update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'Update book' && git push git@github.com:edenspiekermann/a11y-dialog gh-pages --force"
},
"lint-staged": {
"*.js": [
"prettier --no-semi --single-quote --print-width 80 --write",
"git add",
"eslint --fix",
"git add"
]
},
"devDependencies": {
"husky": "^0.14.3",
"lint-staged": "^6.0.0",
"prettier": "^1.10.2",
"semistandard": "^7.0.5",
"uglify-js": "^2.6.1"
}
}