shareon/package.json

81 lines
2.2 KiB
JSON

{
"name": "shareon",
"version": "2.0.0-0",
"description": "Lightweight, stylish and ethical share buttons for popular social networks",
"license": "BSD-3-Clause",
"homepage": "https://shareon.js.org",
"keywords": [
"share buttons",
"sharing",
"social networks"
],
"repository": {
"type": "git",
"url": "git+https://github.com/NickKaramoff/shareon.git"
},
"bugs": {
"url": "https://github.com/NickKaramoff/shareon/issues"
},
"author": {
"name": "Nikita Karamov",
"email": "nick@karamoff.dev",
"url": "https://karamoff.dev"
},
"type": "module",
"main": "shareon.legacy.js",
"module": "shareon.js",
"exports": {
"import": "./shareon.js"
},
"types": "shareon.d.ts",
"files": [
"shareon.css",
"shareon.css.map",
"shareon.js",
"shareon.js.map",
"shareon.legacy.js",
"shareon.legacy.js.map",
"shareon.d.ts"
],
"scripts": {
"build-js": "esbuild lib/shareon.js --format=esm --minify --outfile=shareon.js --sourcemap --target=es6",
"build-legacy-js": "esbuild lib/shareon.js --format=iife --minify --outfile=shareon.legacy.js --sourcemap --target=es6 --global-name=shareon",
"build-css": "postcss lib/shareon.css --map --output shareon.css",
"build-types": "tsc lib/shareon.js --declaration --allowJs --emitDeclarationOnly --outDir .",
"build": "run-p build-*",
"lint": "eslint lib",
"release": "np",
"size": "size-limit",
"test": "yarn lint && yarn build && yarn size",
"postversion": "yarn build"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^5.0.1",
"autoprefixer": "^10.2.6",
"cssnano": "^5.0.7",
"esbuild": "^0.12.15",
"eslint": "^7.18.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"np": "^7.2.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.3.6",
"postcss-calc": "^8.0.0",
"postcss-cli": "^8.3.1",
"postcss-css-variables": "^0.18.0",
"size-limit": "^5.0.1",
"typescript": "^4.3.5"
},
"size-limit": [
{
"limit": "7 KB",
"path": "shareon.css",
"webpack": false
},
{
"limit": "1 KB",
"path": "shareon.js"
}
]
}