-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
26 lines (24 loc) · 1.68 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
{
"scripts": {
"serve": "watchy --watch '_config.yml' --watch '_plugins/*.rb' -- bundle exec jekyll serve --host '0.0.0.0' --trace --baseurl '/notepadtab.com'",
"pregenerate-favicon": "mkdir -p assets/images/favicon",
"generate-favicon": "real-favicon generate sources/favicon/faviconDescription.json sources/favicon/faviconData.json assets/images/favicon",
"postgenerate-favicon": "for file in assets/images/favicon/browserconfig.xml assets/images/favicon/site.webmanifest; do perl -pi -e 'print \"---\\n---\\n\\n\" if $. == 1' \"$file\"; done",
"preinject-favicon": "mkdir -p _includes && touch _includes/favicon.html",
"inject-favicon": "real-favicon inject sources/favicon/faviconData.json _includes _includes/favicon.html",
"postinject-favicon": "for file in _includes/favicon.html; do perl -pi -e 's/<\\/?(html|head|body)>\\n?//g' \"$file\"; done",
"linkify-favicon": "for file in assets/images/favicon/browserconfig.xml assets/images/favicon/site.webmanifest _includes/favicon.html; do perl -pi -e 's/\\/assets\\/.+(?=\\?v=\\d+)/{% link $& %}/g' \"$file\"; done",
"postlinkify-favicon": "for file in _includes/favicon.html; do perl -pi -e 's/\\/(?=assets\\/.+(site\\.webmanifest|browserconfig\\.xml))//g' \"$file\"; done",
"update-favicon": "npm run generate-favicon && npm run inject-favicon && npm run linkify-favicon",
"check-favicon-update": "real-favicon check-for-update --fail-on-update sources/favicon/faviconData.json"
},
"dependencies": {
"js-base64": "*",
"pako": "*",
"showdown": "*"
},
"devDependencies": {
"cli-real-favicon": "*",
"watchy": "*"
}
}