wcb/package.json
Ayo Ayco 73dd374a3e
feat: attach-effect (#2)
We are now able to attach "side effects" to property value changes, from inside the component and outside.
2023-12-01 08:42:10 +01:00

64 lines
2.2 KiB
JSON

{
"name": "web-component-base",
"version": "1.14.6",
"description": "A zero-dependency, ~600 Bytes (minified & gzipped), JS base class for creating reactive custom elements easily",
"type": "module",
"main": "WebComponent.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js"
},
"./WebComponent": {
"types": "./WebComponent.d.ts",
"import": "./WebComponent.js"
},
"./WebComponent.min.js": {
"types": "./WebComponent.d.ts",
"import": "./WebComponent.min.js"
},
"./attach-effect": {
"types": "./attach-effect.d.ts",
"import": "./attach-effect.js"
}
},
"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",
"pub:beta": "npm run clean && npm run build && cd ./dist && npm publish --tag beta",
"publish:patch": "npm version patch && npm run pub",
"publish:patch:beta": "npm version patch && npm run pub:beta",
"publish:minor": "npm version minor && npm run pub",
"publish:minor:beta": "npm version minor && npm run pub:beta",
"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"
]
}