wcb/package.json
2023-11-30 20:18:15 +01:00

56 lines
1.8 KiB
JSON

{
"name": "web-component-base",
"version": "1.14.0",
"description": "A zero-dependency, ~600 Bytes (minified & gzipped), JS base class for creating reactive custom elements easily",
"type": "module",
"exports": {
".": {
"import": "./WebComponent.js",
"types": "./WebComponent.d.ts"
},
"./WebComponent.min.js": {
"import": "./WebComponent.min.js",
"types": "./WebComponent.d.ts"
},
"./attach-effect": {
"import": "./attach-effect.js",
"types": "./attach-effect.d.ts"
}
},
"scripts": {
"start": "npx simple-server .",
"demo": "npx simple-server .",
"site": "npm start -w site",
"build": "npm run clean && npm run generate:types && npm run copy:meta && npm run copy:source && npm run minify",
"clean": "rm -rf dist",
"minify": "npx uglifyjs ./dist/WebComponent.js -o ./dist/WebComponent.min.js",
"generate:types": "tsc --allowJs src/* --outDir dist --declaration --emitDeclarationOnly",
"copy:meta": "node prepare.js && cp README.md ./dist && cp LICENSE ./dist",
"copy:source": "cp ./src/* ./dist",
"pub": "npm run clean && npm run build && cd ./dist && npm publish --access public",
"publish:patch": "npm version patch && npm run pub",
"publish:minor": "npm version minor && npm run pub",
"check:size": "npm run build && size-limit ./dist/WebComponent.js"
},
"repository": "https://github.com/ayoayco/web-component-base",
"homepage": "https://WebComponent.io",
"keywords": [
"web components",
"web component",
"custom elements",
"custom element"
],
"author": "Ayo Ayco",
"license": "MIT",
"bugs": {
"url": "https://github.com/ayoayco/web-component-base/issues"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^11.0.0",
"typescript": "^5.2.2",
"uglify-js": "^3.17.4"
},
"workspaces": [
"site"
]
}