generated from mahmoudmrdom/defer.js
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
92 lines (92 loc) · 2.96 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
{
"name": "@shinsenter/defer.js",
"title": "Defer.js",
"version": "3.6.0",
"description": "🥇 A JavaScript micro-library that helps you lazy load (almost) anything. Defer.js is zero-dependency, super-efficient, and Web Vitals friendly.",
"homepage": "https://shinsenter.github.io/defer.js/",
"license": "MIT",
"author": {
"name": "Mai Nhut Tan",
"email": "[email protected]",
"url": "https://code.shin.company/"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shinsenter/defer.js.git"
},
"bugs": {
"url": "https://code.shin.company/defer.js/issues"
},
"funding": [
{
"type": "github",
"url": "https://code.shin.company/defer.js/stargazers"
},
{
"type": "paypal",
"url": "https://www.paypal.me/shinsenter"
},
{
"type": "patreon",
"url": "https://www.patreon.com/appseeds"
}
],
"keywords": [
"deferjs",
"intersection-observer",
"lazy-audio",
"lazy-css",
"lazy-iframe",
"lazy-image",
"lazy-javascript",
"lazy-js",
"lazy-picture",
"lazy-stylesheet",
"lazy-video",
"lazyload",
"lazyloader",
"lazysizes",
"micro-library",
"microjs",
"scroll-reveal",
"srcset-loader",
"srcset",
"unveil",
"vanilla-lazyload",
"vanilla-lazyloader",
"vanillajs"
],
"browser": "dist/defer.min.js",
"main": "dist/defer.min.js",
"files": [
"dist/"
],
"workspaces": [
"dist/"
],
"devDependencies": {
"intersection-observer": "latest"
},
"scripts": {
"format": "js-beautify --config .build/.beautify -r -f src/*.js",
"minify": "uglifyjs --name-cache node_modules/name-cache.json --config-file .build/.minify -o",
"s1": "npm run minify dist/defer.min.js src/defer.js",
"s2": "npm run minify dist/defer_plus.min.js src/defer.js src/fallback.js",
"s3": "npm run minify dist/polyfill.min.js node_modules/intersection-observer/intersection-observer.js",
"test": "eslint --config .build/.eslintrc --ext .js src --fix",
"prebuild": "npm run test",
"build": "npm run s1 && npm run s2 && npm run s3",
"postbuild": "npm run docs && npm run summary --silent",
"prepull": "rm -rf ./node_modules package-lock.json && npm -g cache clear -f",
"pull": "npm -g install npm jsdoc-to-markdown eslint js-beautify uglify-js@3 && npm i && npm up",
"postpull": "npm audit fix",
"predocs": "rm -f README.md ./docs/index.md ./docs/apis.md",
"docs": "jsdoc2md --separators -l html -g grouped ./src/*.js > ./docs/apis.md",
"postdocs": "cat ./docs/*.md > README.md && cp -p README.md ./docs/index.md",
"preupload": "npm run pull && npm run build",
"upload": "npm publish --access=public",
"presummary": "echo Original size: $(cat src/defer.js | uglifyjs | gzip | wc -c) bytes gzipped",
"summary": "echo Minified size: $(cat dist/defer.min.js | wc -c) bytes",
"postsummary": "echo Minzipped size: $(cat dist/defer.min.js | gzip | wc -c) bytes"
}
}