Skip to content

Commit

Permalink
Update ver and build
Browse files Browse the repository at this point in the history
  • Loading branch information
faction23 committed Nov 17, 2020
1 parent c3ffc57 commit 6b2e4ea
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
8 changes: 7 additions & 1 deletion a11y-dialog.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 17 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
{
"name": "mt-a11y-dialog",
"version": "5.0.8",
"description":
"A tiny script to make dialog windows accessible to assistive technology users. Forked by Modern Tribe",
"version": "5.1.0",
"description": "A tiny script to make dialog windows accessible to assistive technology users. Forked by Modern Tribe",
"homepage": "https://github.com/faction23/a11y-dialog",
"license": "MIT",
"main": "a11y-dialog.js",
"keywords": ["modal", "dialog", "accessibility", "a11y", "focus"],
"keywords": [
"modal",
"dialog",
"accessibility",
"a11y",
"focus"
],
"repository": {
"type": "git",
"url": "https://github.com/faction23/a11y-dialog"
},
"files": ["a11y-dialog.js", "a11y-dialog.min.js"],
"files": [
"a11y-dialog.js",
"a11y-dialog.min.js"
],
"scripts": {
"minify": "uglifyjs a11y-dialog.js -o a11y-dialog.min.js -c -m",
"build": "npm run minify",
"postbuild": "npm run add-version",
"predeploy": "npm run build",
"deploy": "git subtree push --prefix example origin gh-pages",
"lint": "semistandard a11y-dialog.js",
"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",
"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"
"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"
},
"devDependencies": {
"semistandard": "^7.0.5",
Expand Down

0 comments on commit 6b2e4ea

Please sign in to comment.