-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
111 lines (111 loc) · 3.52 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "@coheia/simple-webcomponents",
"version": "1.2.1",
"description": "Develop, document and distribute web components in an automated way.",
"main": "dist/index.js",
"type": "module",
"author": {
"name": "Felipe Correia"
},
"customElements": "custom-elements.json",
"scripts": {
"storybook": "storybook dev -p 3002",
"icons": "rm -rf src/components/icons/swc-i-*/ && find ./icons \\( -path ./node_modules \\) -prune -o -name '*.svg' -print | xargs node svg-to-lit-element.js",
"dev": "wireit",
"build": "wireit",
"build:css-to-ts": "wireit",
"build:sass": "wireit",
"build:storybook": "storybook build",
"build:elements-type": "wireit",
"clean": "pnpm clean:storybook && pnpm clean:dist",
"clean:dist": "rm -rf dist",
"clean:storybook": "rm -rf storybook-static",
"clean:wireit-cache": "rm -rf .wireit",
"clean:gitignore": "git clean -fXd",
"clean:all": "rm -rf node_modules .storybook-static .wireit dist && git clean -fXd",
"prepublish": "pnpm clean:dist && pnpm build:css-to-ts && vite build",
"publish:patch": "pnpm prepublish && npm version patch && npm publish",
"publish:minor": "pnpm prepublish && npm version minor && npm publish",
"publish:major": "pnpm prepublish && npm version major && npm publish"
},
"wireit": {
"dev": {
"command": "concurrently -p \"[{name}]\" -n \"CSS,VITE,DOCS\" -c \"bgBlue.bold,bgGreen.bold,bgYellow.bold\" \"pnpm build:css-to-ts --watch\" \"vite build --watch\" \"pnpm build:elements-type --watch\"",
"dependencies": [
"icons"
]
},
"build": {
"command": "vite build",
"dependencies": [
"build:css-to-ts",
"build:elements-type",
"build:storybook"
]
},
"build:css-to-ts": {
"command": "find . \\( -path ./.wireit -o -path ./node_modules \\) -prune -o -name '*.css' -print | xargs node css-to-ts.js",
"files": [
"css-to-ts.js",
"**/*.scss"
],
"output": [
"**/*.css.ts"
],
"dependencies": [
"build:sass"
]
},
"build:sass": {
"command": "sass --style=compressed --load-path=node_modules --load-path=node_modules/sass-true/sass $(ls -d */ | grep -v node_modules)",
"files": [
"**/*.scss"
],
"output": [
"**/*.css",
"**/*.css.map"
]
},
"build:elements-type": {
"command": "wca analyze 'src/components/**/swc-+([a-z]).ts' --format json --outFile custom-elements.json",
"files": [
"src/components/**/*.ts",
"!src/components/**/*.css.ts"
],
"output": [
"custom-elements.json"
]
}
},
"license": "BSD-3-Clause",
"private": false,
"dependencies": {
"lit": "^3.1.4",
"vite": "^5.3.1"
},
"devDependencies": {
"@storybook/addon-docs": "^8.1.10",
"@storybook/addon-essentials": "^8.1.10",
"@storybook/addon-links": "^8.1.10",
"@storybook/blocks": "^8.1.10",
"@storybook/web-components": "^8.1.10",
"@storybook/web-components-vite": "^8.1.10",
"concurrently": "^7.6.0",
"custom-elements-manifest": "^2.0.0",
"esbuild": "^0.17.8",
"glob": "^8.1.0",
"lit-html": "^3.1.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^3.15.0",
"sass": "^1.58.0",
"sass-true": "^7.0.0",
"storybook": "^8.1.10",
"tslib": "^2.5.0",
"typescript": "^4.9.4",
"vite-plugin-static-copy": "^1.0.5",
"web-component-analyzer": "^2.0.0-next.4",
"wireit": "^0.9.5"
},
"packageManager": "pnpm@9.4.0"
}