2022-08-09 11:11:54 +08:00
|
|
|
{
|
2022-09-22 11:09:13 +08:00
|
|
|
"name": "star-element",
|
2022-08-09 11:11:54 +08:00
|
|
|
"private": true,
|
2022-08-24 14:47:32 +08:00
|
|
|
"version": "0.0.1",
|
2022-08-09 11:11:54 +08:00
|
|
|
"type": "module",
|
|
|
|
"main": "dist/my-element.es.js",
|
|
|
|
"types": "types/my-element.d.ts",
|
|
|
|
"files": [
|
|
|
|
"dist",
|
|
|
|
"types"
|
|
|
|
],
|
|
|
|
"scripts": {
|
|
|
|
"dev": "vite",
|
2022-12-09 10:43:31 +08:00
|
|
|
"build": "wireit",
|
|
|
|
"build-ts-modules": "wireit",
|
|
|
|
"build-ts-with-config": "wireit",
|
|
|
|
"build-ts-widgets": "wireit",
|
2022-09-22 11:09:13 +08:00
|
|
|
"build:ts": "yarn tsc --build tsconfig-all.json",
|
2022-10-07 11:17:24 +08:00
|
|
|
"build:vite": "vite build && yarn build:widgets",
|
|
|
|
"build:widgets": "node ./tasks/build-widgets.js",
|
2022-09-22 11:09:13 +08:00
|
|
|
"esbuild:ts": "node ./tasks/esbuild-packages.js",
|
2022-08-16 15:44:33 +08:00
|
|
|
"format": "npm run format:prettier",
|
2022-11-07 16:07:21 +08:00
|
|
|
"format:prettier": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --write",
|
|
|
|
"postinstall": "husky install"
|
2022-08-09 11:11:54 +08:00
|
|
|
},
|
2022-12-09 10:43:31 +08:00
|
|
|
"wireit": {
|
|
|
|
"build": {
|
|
|
|
"dependencies": [
|
|
|
|
"../:install-dep",
|
|
|
|
"build-ts-modules",
|
|
|
|
"build-ts-with-config",
|
|
|
|
"build-ts-widgets"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"build-ts-modules": {
|
|
|
|
"command": "node tasks/esbuild-packages.js",
|
|
|
|
"files": [
|
|
|
|
"tasks/esbuild-packages.js",
|
2022-12-22 16:14:52 +08:00
|
|
|
"src/components/**/*.ts",
|
|
|
|
"src/lib/**/*.ts"
|
2022-12-09 10:43:31 +08:00
|
|
|
],
|
2022-12-22 16:14:52 +08:00
|
|
|
"output": [],
|
|
|
|
"dependencies": [
|
|
|
|
"build-ts-with-config"
|
|
|
|
]
|
2022-12-09 10:43:31 +08:00
|
|
|
},
|
|
|
|
"build-ts-with-config": {
|
|
|
|
"command": "yarn tsc --build tsconfig-all.json",
|
|
|
|
"files": [
|
|
|
|
"src/**/*.ts"
|
|
|
|
],
|
2022-12-14 14:16:01 +08:00
|
|
|
"output": []
|
2022-12-09 10:43:31 +08:00
|
|
|
},
|
|
|
|
"build-ts-widgets": {
|
|
|
|
"command": "node ./tasks/build-widgets.js",
|
|
|
|
"files": [
|
|
|
|
"tasks/build-widgets.js",
|
2022-12-22 16:14:52 +08:00
|
|
|
"src/components/**/*.ts",
|
|
|
|
"src/widgets/**/*.ts"
|
2022-12-09 10:43:31 +08:00
|
|
|
],
|
2022-12-22 16:14:52 +08:00
|
|
|
"output": [],
|
|
|
|
"dependencies": [
|
|
|
|
"build-ts-modules"
|
|
|
|
]
|
2022-12-09 10:43:31 +08:00
|
|
|
}
|
|
|
|
},
|
2022-11-07 09:14:01 +08:00
|
|
|
"lint-staged": {
|
|
|
|
"*.{cjs,html,js,json,md,ts}": [
|
|
|
|
"prettier --write",
|
|
|
|
"git add"
|
|
|
|
]
|
|
|
|
},
|
2022-08-09 11:11:54 +08:00
|
|
|
"dependencies": {
|
|
|
|
"lit": "^2.2.7"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-09-22 11:09:13 +08:00
|
|
|
"esbuild": "^0.15.8",
|
|
|
|
"fast-glob": "^3.2.12",
|
2022-11-07 09:14:01 +08:00
|
|
|
"husky": "^8.0.1",
|
|
|
|
"lint-staged": "^13.0.3",
|
|
|
|
"prettier": "^2.7.1",
|
2022-09-23 14:10:13 +08:00
|
|
|
"tslib": "^2.4.0",
|
2022-11-07 09:14:01 +08:00
|
|
|
"typescript": "^4.8.3",
|
2022-12-09 10:43:31 +08:00
|
|
|
"vite": "^3.0.0",
|
|
|
|
"wireit": "^0.9.1"
|
2022-09-22 11:09:13 +08:00
|
|
|
},
|
|
|
|
"workspaces": [
|
|
|
|
"src/components/*",
|
|
|
|
"src/lib/*"
|
|
|
|
]
|
2022-08-16 15:44:33 +08:00
|
|
|
}
|