94 lines
3.1 KiB
JSON
94 lines
3.1 KiB
JSON
{
|
|
"name": "fridge-magnets",
|
|
"description": "Webcomponent fridge-magnets following open-wc recommendations",
|
|
"license": "MIT",
|
|
"author": "fridge-magnets",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
"prepare": "husky",
|
|
"test": "tsc && wtr --coverage",
|
|
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
|
|
"storybook": "tsc && npm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"storybook dev -p 8080\"",
|
|
"storybook:build": "tsc && npm run analyze -- --exclude dist && storybook build",
|
|
"build": "rimraf dist && tsc && rollup -c rollup.config.js && npm run analyze -- --exclude dist",
|
|
"start:build": "web-dev-server --root-dir dist --app-index index.html --open",
|
|
"analyze": "cem analyze --litelement",
|
|
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"web-dev-server\""
|
|
},
|
|
"dependencies": {
|
|
"lit": "^3.1.4"
|
|
},
|
|
"devDependencies": {
|
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
"@open-wc/eslint-config": "^12.0.3",
|
|
"@open-wc/testing": "^4.0.0",
|
|
"@rollup/plugin-babel": "^6.0.4",
|
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
"@storybook/addon-a11y": "^7.6.20",
|
|
"@storybook/addon-essentials": "^7.6.20",
|
|
"@storybook/addon-links": "^7.6.20",
|
|
"@storybook/web-components": "^7.6.20",
|
|
"@types/mocha": "^10.0.7",
|
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
|
"@typescript-eslint/parser": "^7.16.0",
|
|
"@web/dev-server": "^0.4.6",
|
|
"@web/rollup-plugin-html": "^2.3.0",
|
|
"@web/rollup-plugin-import-meta-assets": "^2.2.1",
|
|
"@web/storybook-builder": "^0.1.16",
|
|
"@web/storybook-framework-web-components": "^0.1.2",
|
|
"@web/test-runner": "^0.18.2",
|
|
"babel-plugin-template-html-minifier": "^4.1.0",
|
|
"concurrently": "^8.2.2",
|
|
"deepmerge": "^4.3.1",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"husky": "^9.0.11",
|
|
"lint-staged": "^15.2.7",
|
|
"prettier": "^3.3.2",
|
|
"rimraf": "^5.0.9",
|
|
"rollup": "^4.18.1",
|
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
"rollup-plugin-workbox": "^8.1.0",
|
|
"storybook": "^7.6.20",
|
|
"tslib": "^2.6.3",
|
|
"typescript": "^5.5.3"
|
|
},
|
|
"eslintConfig": {
|
|
"parser": "@typescript-eslint/parser",
|
|
"extends": [
|
|
"@open-wc",
|
|
"prettier"
|
|
],
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error"
|
|
],
|
|
"import/no-unresolved": "off",
|
|
"import/extensions": [
|
|
"error",
|
|
"always",
|
|
{
|
|
"ignorePackages": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"arrowParens": "avoid"
|
|
},
|
|
"lint-staged": {
|
|
"*.ts": [
|
|
"eslint --fix",
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"customElements": "custom-elements.json"
|
|
} |