134 lines
3.0 KiB
JSON
134 lines
3.0 KiB
JSON
{
|
|
"name": "shareon",
|
|
"version": "2.5.0",
|
|
"description": "Lightweight, stylish and ethical share buttons for popular social networks",
|
|
"license": "MIT",
|
|
"homepage": "https://shareon.js.org",
|
|
"keywords": [
|
|
"share buttons",
|
|
"sharing",
|
|
"social networks"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/kytta/shareon.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/kytta/shareon/issues"
|
|
},
|
|
"author": {
|
|
"name": "Nikita Karamov",
|
|
"email": "me@kytta.dev",
|
|
"url": "https://www.kytta.dev/"
|
|
},
|
|
"funding": [
|
|
"https://github.com/sponsors/kytta/",
|
|
"https://liberapay.com/kytta",
|
|
"https://www.paypal.com/paypalme/NickKaramoff"
|
|
],
|
|
"type": "module",
|
|
"main": "./dist/shareon.umd.js",
|
|
"unpkg": "./dist/shareon.iife.js",
|
|
"jsdelivr": "./dist/shareon.iife.js",
|
|
"module": "./dist/shareon.es.js",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/shareon.es.js",
|
|
"require": "./dist/shareon.umd.js"
|
|
},
|
|
"./css": "./dist/shareon.min.css"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"dev": "vite",
|
|
"lint": "prettier --check . && eslint .",
|
|
"size": "size-limit",
|
|
"test": "pnpm run lint && pnpm run build && pnpm run size",
|
|
"postversion": "pnpm run build",
|
|
"prepublishOnly": "rm -rf ./package && clean-publish",
|
|
"postpublish": "rm -rf ./package",
|
|
"preinstall": "npx only-allow pnpm"
|
|
},
|
|
"devDependencies": {
|
|
"@size-limit/preset-small-lib": "^11.0.1",
|
|
"autoprefixer": "^10.4.16",
|
|
"clean-publish": "^4.2.0",
|
|
"eslint": "^8.55.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-unicorn": "^49.0.0",
|
|
"postcss": "^8.4.32",
|
|
"postcss-calc": "^9.0.1",
|
|
"postcss-css-variables": "^0.19.0",
|
|
"postcss-csso": "^6.0.1",
|
|
"postcss-url": "^10.1.3",
|
|
"prettier": "^3.1.0",
|
|
"size-limit": "^11.0.1",
|
|
"vite": "^5.0.6"
|
|
},
|
|
"prettier": {
|
|
"embeddedLanguageFormatting": "off"
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:unicorn/recommended",
|
|
"prettier"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"vite.config.js"
|
|
],
|
|
"env": {
|
|
"node": true,
|
|
"browser": false
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"postcss": {
|
|
"plugins": {
|
|
"postcss-url": {
|
|
"url": "inline",
|
|
"optimizeSvgEncode": true
|
|
},
|
|
"postcss-css-variables": {},
|
|
"postcss-calc": {},
|
|
"autoprefixer": {},
|
|
"postcss-csso": {}
|
|
}
|
|
},
|
|
"size-limit": [
|
|
{
|
|
"limit": "6 KiB",
|
|
"path": "./dist/shareon.min.css",
|
|
"brotli": true
|
|
},
|
|
{
|
|
"limit": "1 KiB",
|
|
"path": "./dist/shareon.es.js",
|
|
"brotli": true
|
|
}
|
|
],
|
|
"publishConfig": {
|
|
"directory": "package"
|
|
},
|
|
"clean-publish": {
|
|
"withoutPublish": true,
|
|
"tempDir": "package",
|
|
"fields": [
|
|
"postcss"
|
|
]
|
|
}
|
|
}
|