-
Notifications
You must be signed in to change notification settings - Fork 22
/
package.json
124 lines (124 loc) · 3.63 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
120
121
122
123
124
{
"name": "vanilla-sharing",
"description": "Small (1.6 KB) simple tool for sharing url, title, description and image to VK, Facebook (Feed, Dialog, Button, Messenger), Twitter, Reddit, Pinterest, Tumblr, G+, VK, OK, Mail.ru, LinkedIn, Whatsapp, Viber, Telegram, Line.",
"keywords": [
"sharing",
"social-buttons",
"vkontakte",
"mailru",
"odnoklassniki",
"facebook",
"twitter",
"messenger",
"linkedin",
"whatsapp-sharing",
"vanilla-sharing",
"reddit",
"tumblr",
"telegram",
"whatsapp"
],
"homepage": "https://github.com/avdeev/vanilla-sharing",
"bugs": "https://github.com/avdeev/vanilla-sharing/issues",
"version": "6.1.2",
"main": "./dist/vanilla-sharing.umd.js",
"module": "./dist/vanilla-sharing.esm.js",
"exports": {
".": "./dist/vanilla-sharing.umd.js",
"./package.json": "./package.json"
},
"types": "vanilla-sharing.d.ts",
"scripts": {
"prepublishOnly": "npm test",
"size": "size-limit",
"build": "rollup -c",
"dev": "rollup -c -w",
"lint": "eslint --ignore-path .gitignore .",
"typing-tests": "tsc --project typing-tests",
"test": "npm run lint && npm run typing-tests && npm run build && npm run size && jest --coverage",
"test:watch": "jest --watchAll",
"prepare": "husky install"
},
"repository": "[email protected]:avdeev/vanilla-sharing.git",
"author": "Alexey Avdeev <[email protected]>",
"license": "MIT",
"files": [
"dist",
"vanilla-sharing.d.ts"
],
"size-limit": [
{
"path": "dist/vanilla-sharing.umd.js",
"import": "{ fbFeed, getFbFeedUrl, fbShare, getFbShareUrl, fbButton, getFbButtonUrl, messenger, tw, getTwUrl, reddit, pinterest, tumblr, vk, getVkUrl, ok, getOkUrl, mail, email, getEmailUrl, linkedin, whatsapp, getWhatsappUrl, viber, getViberUrl, telegram, getTelegramUrl, line }",
"limit": "2.1 KB"
},
{
"path": "dist/vanilla-sharing.esm.js",
"import": "{ fbFeed, getFbFeedUrl, fbShare, getFbShareUrl, fbButton, getFbButtonUrl, messenger, tw, getTwUrl, reddit, pinterest, tumblr, vk, getVkUrl, ok, getOkUrl, mail, email, getEmailUrl, linkedin, whatsapp, getWhatsappUrl, viber, getViberUrl, telegram, getTelegramUrl, line }",
"limit": "1.5 KB"
}
],
"lint-staged": {
"*.js": "npm run lint -- "
},
"eslintConfig": {
"parser": "@babel/eslint-parser",
"extends": "airbnb-base",
"env": {
"browser": true,
"jest": true,
"es6": true
},
"rules": {
"comma-dangle": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
}
},
"jest": {
"collectCoverageFrom": [
"src/**/*.js",
"!src/main.js",
"!src/**/*.test.js"
],
"moduleDirectories": [
"node_modules",
"src"
],
"testRegex": "tests/.*\\.test\\.js$",
"testEnvironment": "jsdom",
"testEnvironmentOptions": {
"url": "http://localhost/"
}
},
"devDependencies": {
"@babel/core": "7.22.17",
"@babel/eslint-parser": "7.22.15",
"@babel/preset-env": "7.23.9",
"@faker-js/faker": "8.4.1",
"@rollup/plugin-babel": "6.0.3",
"@size-limit/preset-small-lib": "8.2.6",
"@types/node": "20.11.20",
"eslint": "8.50.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-import-resolver-webpack": "0.13.8",
"eslint-plugin-import": "2.29.1",
"husky": "9.0.11",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "15.2.5",
"rollup": "3.28.0",
"size-limit": "10.0.1",
"typescript": "5.2.2"
}
}