@luzmo/lucero 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/dark-theme.ts +18 -0
- package/.storybook/light-theme.ts +34 -0
- package/.storybook/main.ts +34 -0
- package/.storybook/manager.ts +11 -0
- package/.storybook/preview-head.html +7 -0
- package/.storybook/preview.ts +42 -0
- package/LICENSE +16 -0
- package/README.md +18 -0
- package/custom-elements.json +68111 -0
- package/dist/LICENSE +16 -0
- package/dist/custom-elements.json +34043 -0
- package/dist/lib/accordion/index.cjs +43 -0
- package/dist/lib/accordion/index.js +182 -0
- package/dist/lib/action-bar/index.cjs +39 -0
- package/dist/lib/action-bar/index.js +108 -0
- package/dist/lib/action-button/index.cjs +24 -0
- package/dist/lib/action-button/index.js +162 -0
- package/dist/lib/action-group/index.cjs +18 -0
- package/dist/lib/action-group/index.js +29 -0
- package/dist/lib/action-group-BoIH8s8R.js +259 -0
- package/dist/lib/action-group-D4MxBrq8.cjs +20 -0
- package/dist/lib/action-menu/index.cjs +56 -0
- package/dist/lib/action-menu/index.js +127 -0
- package/dist/lib/async-directive-CV2MII86.cjs +22 -0
- package/dist/lib/async-directive-FGzMycjH.js +82 -0
- package/dist/lib/avatar/index.cjs +24 -0
- package/dist/lib/avatar/index.js +82 -0
- package/dist/lib/base-BCmA9Wxv.cjs +30 -0
- package/dist/lib/base-BjTwmyRF.cjs +22 -0
- package/dist/lib/base-D76d76ww.js +26 -0
- package/dist/lib/base-nYalvNMy.js +390 -0
- package/dist/lib/button/index.cjs +20 -0
- package/dist/lib/button/index.js +128 -0
- package/dist/lib/button-base-B0iB_JTv.cjs +25 -0
- package/dist/lib/button-base-DgtT6sU5.js +143 -0
- package/dist/lib/button-group/index.cjs +18 -0
- package/dist/lib/button-group/index.js +60 -0
- package/dist/lib/checkbox/index.cjs +25 -0
- package/dist/lib/checkbox/index.js +97 -0
- package/dist/lib/checkbox-mixin-DegQlk5C.js +71 -0
- package/dist/lib/checkbox-mixin-H0Hm-VLk.cjs +27 -0
- package/dist/lib/clear-button-Ap5H3UyH.js +54 -0
- package/dist/lib/clear-button-D0djuaLb.cjs +18 -0
- package/dist/lib/close-button-BrfeZvjk.cjs +18 -0
- package/dist/lib/close-button-CGISEF33.js +52 -0
- package/dist/lib/color-Bg3tYsAQ.js +178 -0
- package/dist/lib/color-DphK4hwx.cjs +18 -0
- package/dist/lib/color-area/index.cjs +80 -0
- package/dist/lib/color-area/index.js +373 -0
- package/dist/lib/color-field/index.cjs +23 -0
- package/dist/lib/color-field/index.js +81 -0
- package/dist/lib/color-handle/index.cjs +24 -0
- package/dist/lib/color-handle/index.js +74 -0
- package/dist/lib/color-loupe/index.cjs +18 -0
- package/dist/lib/color-loupe/index.js +29 -0
- package/dist/lib/color-loupe-BICpNqFs.cjs +56 -0
- package/dist/lib/color-loupe-DBEApMDT.js +82 -0
- package/dist/lib/color-menu/index.cjs +86 -0
- package/dist/lib/color-menu/index.js +204 -0
- package/dist/lib/color-picker/index.cjs +48 -0
- package/dist/lib/color-picker/index.js +142 -0
- package/dist/lib/color-slider/index.cjs +57 -0
- package/dist/lib/color-slider/index.js +318 -0
- package/dist/lib/condition-attribute-with-id-DrQYZzFS.cjs +18 -0
- package/dist/lib/condition-attribute-with-id-Dv4lSRbe.js +31 -0
- package/dist/lib/dependency-manger-C5HCkMMB.cjs +18 -0
- package/dist/lib/dependency-manger-CEXvGQUV.js +54 -0
- package/dist/lib/directive-C7oCP5Bh.cjs +22 -0
- package/dist/lib/directive-helpers-BLDZnGQv.js +28 -0
- package/dist/lib/directive-helpers-C2vOfhFx.cjs +22 -0
- package/dist/lib/directive-oAbCiebi.js +44 -0
- package/dist/lib/divider/index.cjs +18 -0
- package/dist/lib/divider/index.js +62 -0
- package/dist/lib/divider.module-CXMNveQc.cjs +18 -0
- package/dist/lib/divider.module-DwOuLGU3.js +21 -0
- package/dist/lib/element-resolution-BvRLGqIU.cjs +18 -0
- package/dist/lib/element-resolution-FCUT-wql.js +91 -0
- package/dist/lib/field-group/index.cjs +18 -0
- package/dist/lib/field-group/index.js +29 -0
- package/dist/lib/field-group-CBWafIUV.js +67 -0
- package/dist/lib/field-group-TUFvhJkk.cjs +23 -0
- package/dist/lib/field-label/index.cjs +18 -0
- package/dist/lib/field-label/index.js +29 -0
- package/dist/lib/field-label-BK_tk8vP.js +107 -0
- package/dist/lib/field-label-BrJaeORz.cjs +25 -0
- package/dist/lib/focus-group-DHeTq18L.js +218 -0
- package/dist/lib/focus-group-DnxZUBhQ.cjs +18 -0
- package/dist/lib/focus-visible-B0P9aY_G.cjs +18 -0
- package/dist/lib/focus-visible-DBlJGoEW.js +74 -0
- package/dist/lib/focusable-DbUg-3Vp.js +153 -0
- package/dist/lib/focusable-Dv_6CFaY.cjs +18 -0
- package/dist/lib/focusable-selectors-B4YgbghQ.js +31 -0
- package/dist/lib/focusable-selectors-BgFlyFcY.cjs +18 -0
- package/dist/lib/icon/index.cjs +18 -0
- package/dist/lib/icon/index.js +89 -0
- package/dist/lib/if-defined-CYpcjGCb.js +27 -0
- package/dist/lib/if-defined-Cv6xanXh.cjs +22 -0
- package/dist/lib/index-C1chwzNp.js +727 -0
- package/dist/lib/index-DCKCHDTt.cjs +18 -0
- package/dist/lib/index-ovT-qVzf.js +928 -0
- package/dist/lib/index-yNcLzjhM.cjs +77 -0
- package/dist/lib/index.cjs +18 -0
- package/dist/lib/index.js +133 -0
- package/dist/lib/infield-button/index.cjs +22 -0
- package/dist/lib/infield-button/index.js +65 -0
- package/dist/lib/label/index.cjs +18 -0
- package/dist/lib/label/index.js +52 -0
- package/dist/lib/legend-position/index.cjs +27 -0
- package/dist/lib/legend-position/index.js +85 -0
- package/dist/lib/like-anchor-K8W0QYwC.cjs +32 -0
- package/dist/lib/like-anchor-cDeGGeHh.js +70 -0
- package/dist/lib/lit-html-B3ugcwD9.js +248 -0
- package/dist/lib/lit-html-p4Oxv2-5.cjs +24 -0
- package/dist/lib/manage-help-text-2mSEy-AD.js +92 -0
- package/dist/lib/manage-help-text-iOk-zmy8.cjs +30 -0
- package/dist/lib/menu/index.cjs +18 -0
- package/dist/lib/menu/index.js +32 -0
- package/dist/lib/multi-language-field/index.cjs +39 -0
- package/dist/lib/multi-language-field/index.js +149 -0
- package/dist/lib/mutation-controller-DH7YOCyj.js +52 -0
- package/dist/lib/mutation-controller-DkOMCW-c.cjs +22 -0
- package/dist/lib/number-field/index.cjs +57 -0
- package/dist/lib/number-field/index.js +736 -0
- package/dist/lib/observe-slot-text-BmsCNJig.cjs +18 -0
- package/dist/lib/observe-slot-text-BoFRF-VI.js +87 -0
- package/dist/lib/overlay/index.cjs +73 -0
- package/dist/lib/overlay/index.js +325 -0
- package/dist/lib/overlay-C7QKFqRc.js +2702 -0
- package/dist/lib/overlay-DScraBAi.cjs +47 -0
- package/dist/lib/pending-state-D5KTK4_1.js +61 -0
- package/dist/lib/pending-state-Dbc2HIM2.cjs +26 -0
- package/dist/lib/picker/index.cjs +18 -0
- package/dist/lib/picker/index.js +32 -0
- package/dist/lib/picker--2OCYWnV.js +657 -0
- package/dist/lib/picker-B9W7Haf4.cjs +127 -0
- package/dist/lib/platform-CQzYNWKq.cjs +18 -0
- package/dist/lib/platform-DQYMG7JI.js +54 -0
- package/dist/lib/popover/index.cjs +18 -0
- package/dist/lib/popover/index.js +29 -0
- package/dist/lib/popover-CVbjhSnx.cjs +30 -0
- package/dist/lib/popover-ZRVxogyp.js +68 -0
- package/dist/lib/progress-circle/index.cjs +18 -0
- package/dist/lib/progress-circle/index.js +29 -0
- package/dist/lib/progress-circle-CiJoS8J7.cjs +33 -0
- package/dist/lib/progress-circle-DpXiqW6a.js +98 -0
- package/dist/lib/query-BL-TJj7K.cjs +22 -0
- package/dist/lib/query-D_KR_GUc.js +51 -0
- package/dist/lib/query-assigned-elements-DjfhL1cl.js +36 -0
- package/dist/lib/query-assigned-elements-DsKsfk7G.cjs +22 -0
- package/dist/lib/query-assigned-nodes-BcKWmGzy.cjs +22 -0
- package/dist/lib/query-assigned-nodes-C76XVPWY.js +36 -0
- package/dist/lib/radio/index.cjs +22 -0
- package/dist/lib/radio/index.js +192 -0
- package/dist/lib/random-id-ByCz1xaq.js +26 -0
- package/dist/lib/random-id-CqvckpWe.cjs +18 -0
- package/dist/lib/roving-tabindex-By_fCy_e.cjs +18 -0
- package/dist/lib/roving-tabindex-DOg4z6ZU.js +66 -0
- package/dist/lib/search/index.cjs +45 -0
- package/dist/lib/search/index.js +132 -0
- package/dist/lib/sized-mixin-BSYHt8nT.cjs +18 -0
- package/dist/lib/sized-mixin-Dl0KoEcV.js +63 -0
- package/dist/lib/slider/index.cjs +18 -0
- package/dist/lib/slider/index.js +1159 -0
- package/dist/lib/slottable-request-event-BfUUt1Mh.cjs +18 -0
- package/dist/lib/slottable-request-event-DggLA4Rx.js +31 -0
- package/dist/lib/state-BAO-13Bs.js +29 -0
- package/dist/lib/state-DReJ3hB6.cjs +22 -0
- package/dist/lib/streaming-listener-Bw4jE33f.cjs +18 -0
- package/dist/lib/streaming-listener-DLo0wkMc.js +125 -0
- package/dist/lib/style-map-BjBGQ_u3.cjs +22 -0
- package/dist/lib/style-map-BqvQDFJt.js +53 -0
- package/dist/lib/swatch/index.cjs +49 -0
- package/dist/lib/swatch/index.js +343 -0
- package/dist/lib/switch/index.cjs +22 -0
- package/dist/lib/switch/index.js +74 -0
- package/dist/lib/tags/index.cjs +32 -0
- package/dist/lib/tags/index.js +174 -0
- package/dist/lib/text-field/index.cjs +21 -0
- package/dist/lib/text-field/index.js +62 -0
- package/dist/lib/text-field-C6Aa7XOb.cjs +85 -0
- package/dist/lib/text-field-DPk332j9.js +315 -0
- package/dist/lib/toast/index.cjs +51 -0
- package/dist/lib/toast/index.js +154 -0
- package/dist/lib/tooltip/index.cjs +45 -0
- package/dist/lib/tooltip/index.js +221 -0
- package/dist/lib/unit-input/index.cjs +43 -0
- package/dist/lib/unit-input/index.js +184 -0
- package/dist/lib/when-CDK1Tt5Y.js +28 -0
- package/dist/lib/when-CDZyJPvd.cjs +22 -0
- package/dist/package.json +191 -0
- package/eslint.config.js +314 -0
- package/package.json +98 -0
- package/playwright.config.ts +79 -0
- package/vite-utils/cem-plugins/plugin-mixins-and-superclass.ts +141 -0
- package/vite-utils/cem-plugins/plugin-private-fields-filter.ts +19 -0
- package/vite-utils/get-components-entries.ts +30 -0
- package/vite-utils/get-license-content.ts +31 -0
- package/vite-utils/get-package-json-content.ts +49 -0
- package/vite-utils/plugin-generate-custom-elements-manifest.ts +156 -0
- package/vite-utils/plugin-generate-file.ts +130 -0
- package/vite-utils/plugin-prepend-css-variables-code.ts +55 -0
- package/vite.config.component.ts +69 -0
- package/vite.config.storybook.ts +6 -0
- package/web-test-runner.config.js +23 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@luzmo/lucero",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"homepage": "https://luzmo.com",
|
|
5
|
+
"description": "Lucero - The design system for Luzmo",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"main": "./lib/index.js",
|
|
11
|
+
"module": "./lib/index.js",
|
|
12
|
+
"types": "./lib/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./lib/index.js",
|
|
16
|
+
"require": "./lib/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./accordion": {
|
|
19
|
+
"import": "./lib/accordion/index.js",
|
|
20
|
+
"require": "./lib/accordion/index.cjs"
|
|
21
|
+
},
|
|
22
|
+
"./action-bar": {
|
|
23
|
+
"import": "./lib/action-bar/index.js",
|
|
24
|
+
"require": "./lib/action-bar/index.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./action-button": {
|
|
27
|
+
"import": "./lib/action-button/index.js",
|
|
28
|
+
"require": "./lib/action-button/index.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./action-group": {
|
|
31
|
+
"import": "./lib/action-group/index.js",
|
|
32
|
+
"require": "./lib/action-group/index.cjs"
|
|
33
|
+
},
|
|
34
|
+
"./action-menu": {
|
|
35
|
+
"import": "./lib/action-menu/index.js",
|
|
36
|
+
"require": "./lib/action-menu/index.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./avatar": {
|
|
39
|
+
"import": "./lib/avatar/index.js",
|
|
40
|
+
"require": "./lib/avatar/index.cjs"
|
|
41
|
+
},
|
|
42
|
+
"./button": {
|
|
43
|
+
"import": "./lib/button/index.js",
|
|
44
|
+
"require": "./lib/button/index.cjs"
|
|
45
|
+
},
|
|
46
|
+
"./button-group": {
|
|
47
|
+
"import": "./lib/button-group/index.js",
|
|
48
|
+
"require": "./lib/button-group/index.cjs"
|
|
49
|
+
},
|
|
50
|
+
"./checkbox": {
|
|
51
|
+
"import": "./lib/checkbox/index.js",
|
|
52
|
+
"require": "./lib/checkbox/index.cjs"
|
|
53
|
+
},
|
|
54
|
+
"./color-picker": {
|
|
55
|
+
"import": "./lib/color-picker/index.js",
|
|
56
|
+
"require": "./lib/color-picker/index.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./divider": {
|
|
59
|
+
"import": "./lib/divider/index.js",
|
|
60
|
+
"require": "./lib/divider/index.cjs"
|
|
61
|
+
},
|
|
62
|
+
"./field-group": {
|
|
63
|
+
"import": "./lib/field-group/index.js",
|
|
64
|
+
"require": "./lib/field-group/index.cjs"
|
|
65
|
+
},
|
|
66
|
+
"./field-label": {
|
|
67
|
+
"import": "./lib/field-label/index.js",
|
|
68
|
+
"require": "./lib/field-label/index.cjs"
|
|
69
|
+
},
|
|
70
|
+
"./icon": {
|
|
71
|
+
"import": "./lib/icon/index.js",
|
|
72
|
+
"require": "./lib/icon/index.cjs"
|
|
73
|
+
},
|
|
74
|
+
"./infield-button": {
|
|
75
|
+
"import": "./lib/infield-button/index.js",
|
|
76
|
+
"require": "./lib/infield-button/index.cjs"
|
|
77
|
+
},
|
|
78
|
+
"./label": {
|
|
79
|
+
"import": "./lib/label/index.js",
|
|
80
|
+
"require": "./lib/label/index.cjs"
|
|
81
|
+
},
|
|
82
|
+
"./legend-position": {
|
|
83
|
+
"import": "./lib/legend-position/index.js",
|
|
84
|
+
"require": "./lib/legend-position/index.cjs"
|
|
85
|
+
},
|
|
86
|
+
"./menu": {
|
|
87
|
+
"import": "./lib/menu/index.js",
|
|
88
|
+
"require": "./lib/menu/index.cjs"
|
|
89
|
+
},
|
|
90
|
+
"./multi-language-field": {
|
|
91
|
+
"import": "./lib/multi-language-field/index.js",
|
|
92
|
+
"require": "./lib/multi-language-field/index.cjs"
|
|
93
|
+
},
|
|
94
|
+
"./number-field": {
|
|
95
|
+
"import": "./lib/number-field/index.js",
|
|
96
|
+
"require": "./lib/number-field/index.cjs"
|
|
97
|
+
},
|
|
98
|
+
"./overlay": {
|
|
99
|
+
"import": "./lib/overlay/index.js",
|
|
100
|
+
"require": "./lib/overlay/index.cjs"
|
|
101
|
+
},
|
|
102
|
+
"./picker": {
|
|
103
|
+
"import": "./lib/picker/index.js",
|
|
104
|
+
"require": "./lib/picker/index.cjs"
|
|
105
|
+
},
|
|
106
|
+
"./popover": {
|
|
107
|
+
"import": "./lib/popover/index.js",
|
|
108
|
+
"require": "./lib/popover/index.cjs"
|
|
109
|
+
},
|
|
110
|
+
"./progress-circle": {
|
|
111
|
+
"import": "./lib/progress-circle/index.js",
|
|
112
|
+
"require": "./lib/progress-circle/index.cjs"
|
|
113
|
+
},
|
|
114
|
+
"./radio": {
|
|
115
|
+
"import": "./lib/radio/index.js",
|
|
116
|
+
"require": "./lib/radio/index.cjs"
|
|
117
|
+
},
|
|
118
|
+
"./search": {
|
|
119
|
+
"import": "./lib/search/index.js",
|
|
120
|
+
"require": "./lib/search/index.cjs"
|
|
121
|
+
},
|
|
122
|
+
"./slider": {
|
|
123
|
+
"import": "./lib/slider/index.js",
|
|
124
|
+
"require": "./lib/slider/index.cjs"
|
|
125
|
+
},
|
|
126
|
+
"./swatch": {
|
|
127
|
+
"import": "./lib/swatch/index.js",
|
|
128
|
+
"require": "./lib/swatch/index.cjs"
|
|
129
|
+
},
|
|
130
|
+
"./switch": {
|
|
131
|
+
"import": "./lib/switch/index.js",
|
|
132
|
+
"require": "./lib/switch/index.cjs"
|
|
133
|
+
},
|
|
134
|
+
"./tags": {
|
|
135
|
+
"import": "./lib/tags/index.js",
|
|
136
|
+
"require": "./lib/tags/index.cjs"
|
|
137
|
+
},
|
|
138
|
+
"./text-field": {
|
|
139
|
+
"import": "./lib/text-field/index.js",
|
|
140
|
+
"require": "./lib/text-field/index.cjs"
|
|
141
|
+
},
|
|
142
|
+
"./toast": {
|
|
143
|
+
"import": "./lib/toast/index.js",
|
|
144
|
+
"require": "./lib/toast/index.cjs"
|
|
145
|
+
},
|
|
146
|
+
"./tooltip": {
|
|
147
|
+
"import": "./lib/tooltip/index.js",
|
|
148
|
+
"require": "./lib/tooltip/index.cjs"
|
|
149
|
+
},
|
|
150
|
+
"./unit-input": {
|
|
151
|
+
"import": "./lib/unit-input/index.js",
|
|
152
|
+
"require": "./lib/unit-input/index.cjs"
|
|
153
|
+
},
|
|
154
|
+
"./color-area": {
|
|
155
|
+
"import": "./lib/color-area/index.js",
|
|
156
|
+
"require": "./lib/color-area/index.cjs"
|
|
157
|
+
},
|
|
158
|
+
"./color-field": {
|
|
159
|
+
"import": "./lib/color-field/index.js",
|
|
160
|
+
"require": "./lib/color-field/index.cjs"
|
|
161
|
+
},
|
|
162
|
+
"./color-handle": {
|
|
163
|
+
"import": "./lib/color-handle/index.js",
|
|
164
|
+
"require": "./lib/color-handle/index.cjs"
|
|
165
|
+
},
|
|
166
|
+
"./color-loupe": {
|
|
167
|
+
"import": "./lib/color-loupe/index.js",
|
|
168
|
+
"require": "./lib/color-loupe/index.cjs"
|
|
169
|
+
},
|
|
170
|
+
"./color-menu": {
|
|
171
|
+
"import": "./lib/color-menu/index.js",
|
|
172
|
+
"require": "./lib/color-menu/index.cjs"
|
|
173
|
+
},
|
|
174
|
+
"./color-slider": {
|
|
175
|
+
"import": "./lib/color-slider/index.js",
|
|
176
|
+
"require": "./lib/color-slider/index.cjs"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"keywords": [
|
|
180
|
+
"Luzmo",
|
|
181
|
+
"design system",
|
|
182
|
+
"components",
|
|
183
|
+
"web components",
|
|
184
|
+
"lucero",
|
|
185
|
+
"analytics"
|
|
186
|
+
],
|
|
187
|
+
"author": "Luzmo",
|
|
188
|
+
"publishConfig": {
|
|
189
|
+
"access": "restricted"
|
|
190
|
+
}
|
|
191
|
+
}
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import importPlugin from 'eslint-plugin-import';
|
|
2
|
+
import jsdocPlugin from 'eslint-plugin-jsdoc';
|
|
3
|
+
import litPlugin from 'eslint-plugin-lit';
|
|
4
|
+
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
|
|
5
|
+
import pluginUnicorn from 'eslint-plugin-unicorn';
|
|
6
|
+
import wcPlugin from 'eslint-plugin-wc';
|
|
7
|
+
import tseslint from 'typescript-eslint';
|
|
8
|
+
|
|
9
|
+
const coreRules = {
|
|
10
|
+
'no-useless-constructor': 'off',
|
|
11
|
+
'arrow-body-style': 'error',
|
|
12
|
+
// region Layout & Formatting
|
|
13
|
+
'arrow-parens': ['off', 'always'],
|
|
14
|
+
'arrow-spacing': 'error',
|
|
15
|
+
'no-confusing-arrow': 'error',
|
|
16
|
+
'no-duplicate-imports': 'error',
|
|
17
|
+
// endregion
|
|
18
|
+
'brace-style': ['error', 'stroustrup'],
|
|
19
|
+
'space-before-blocks': ['error', 'always'],
|
|
20
|
+
'keyword-spacing': ['error', { after: true }],
|
|
21
|
+
'comma-dangle': 'warn',
|
|
22
|
+
'comma-spacing': 'error',
|
|
23
|
+
'key-spacing': 'error',
|
|
24
|
+
'space-in-parens': 'error',
|
|
25
|
+
complexity: 'off',
|
|
26
|
+
curly: 'error',
|
|
27
|
+
quotes: [2, 'single', { avoidEscape: true }],
|
|
28
|
+
'object-curly-spacing': ['error', 'always'],
|
|
29
|
+
'eol-last': 'error',
|
|
30
|
+
eqeqeq: ['error', 'smart'],
|
|
31
|
+
'guard-for-in': 'error',
|
|
32
|
+
'id-denylist': [
|
|
33
|
+
'error',
|
|
34
|
+
'any',
|
|
35
|
+
'Boolean',
|
|
36
|
+
'boolean',
|
|
37
|
+
'Undefined',
|
|
38
|
+
'undefined'
|
|
39
|
+
],
|
|
40
|
+
'id-match': 'error',
|
|
41
|
+
'max-classes-per-file': 'off',
|
|
42
|
+
'max-len': [
|
|
43
|
+
'error',
|
|
44
|
+
{
|
|
45
|
+
code: 240,
|
|
46
|
+
ignoreStrings: true,
|
|
47
|
+
ignoreComments: true,
|
|
48
|
+
ignoreTemplateLiterals: true
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
'new-parens': 'error',
|
|
52
|
+
'no-alert': 'error',
|
|
53
|
+
'no-bitwise': 'off',
|
|
54
|
+
'no-eval': 'error',
|
|
55
|
+
'no-caller': 'error',
|
|
56
|
+
'no-console': [
|
|
57
|
+
'error',
|
|
58
|
+
{
|
|
59
|
+
allow: ['error', 'warn']
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
'no-empty': [
|
|
63
|
+
'error',
|
|
64
|
+
{
|
|
65
|
+
allowEmptyCatch: true
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
'no-else-return': 'error',
|
|
69
|
+
'no-extra-bind': 'error',
|
|
70
|
+
'no-extra-label': 'error',
|
|
71
|
+
'no-lone-blocks': 'error',
|
|
72
|
+
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
|
|
73
|
+
'no-multiple-empty-lines': [
|
|
74
|
+
'error',
|
|
75
|
+
{
|
|
76
|
+
max: 1
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
'no-new': 'error',
|
|
80
|
+
'no-new-func': 'error',
|
|
81
|
+
'no-new-wrappers': 'error',
|
|
82
|
+
'no-sequences': 'error',
|
|
83
|
+
'no-throw-literal': 'error',
|
|
84
|
+
'no-trailing-spaces': 'error',
|
|
85
|
+
'no-undef-init': 'error',
|
|
86
|
+
'no-underscore-dangle': 'off',
|
|
87
|
+
'no-useless-call': 'error',
|
|
88
|
+
'no-useless-computed-key': 'error',
|
|
89
|
+
'no-useless-escape': 'off',
|
|
90
|
+
'no-useless-rename': 'error',
|
|
91
|
+
'no-proto': 'error',
|
|
92
|
+
'no-script-url': 'error',
|
|
93
|
+
'no-var': 'error',
|
|
94
|
+
'object-shorthand': 'error',
|
|
95
|
+
'one-var': ['error', 'never'],
|
|
96
|
+
'operator-linebreak': ['error', 'before'],
|
|
97
|
+
'padded-blocks': ['error', 'never'],
|
|
98
|
+
'prefer-const': 'error',
|
|
99
|
+
'prefer-rest-params': 'error',
|
|
100
|
+
'prefer-spread': 'error',
|
|
101
|
+
'rest-spread-spacing': ['error', 'never'],
|
|
102
|
+
'symbol-description': 'error',
|
|
103
|
+
'template-curly-spacing': 'error',
|
|
104
|
+
'quote-props': ['error', 'as-needed'],
|
|
105
|
+
radix: 'error',
|
|
106
|
+
'require-await': 'error',
|
|
107
|
+
'spaced-comment': [
|
|
108
|
+
'error',
|
|
109
|
+
'always',
|
|
110
|
+
{
|
|
111
|
+
markers: ['/']
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
'wrap-iife': 'error',
|
|
115
|
+
yoda: 'error'
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const tseslintRules = {
|
|
119
|
+
'@typescript-eslint/no-useless-constructor': 'error',
|
|
120
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
121
|
+
'@typescript-eslint/no-this-alias': 'off',
|
|
122
|
+
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
123
|
+
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
124
|
+
'@typescript-eslint/no-unsafe-call': 'off',
|
|
125
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
126
|
+
'@typescript-eslint/no-unsafe-return': 'off',
|
|
127
|
+
'@typescript-eslint/no-floating-promises': 'off',
|
|
128
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
129
|
+
'@typescript-eslint/no-duplicate-type-constituents': 'off',
|
|
130
|
+
'@typescript-eslint/no-redundant-type-constituents': 'off', // TODO: olegpetriienko | 09/19/2023 | Delete this overriding and fix the ESLint errors
|
|
131
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
132
|
+
'@typescript-eslint/restrict-plus-operands': 'off',
|
|
133
|
+
'@typescript-eslint/no-misused-promises': 'off',
|
|
134
|
+
'@typescript-eslint/restrict-template-expressions': [
|
|
135
|
+
'error',
|
|
136
|
+
{
|
|
137
|
+
allowAny: true
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
'@typescript-eslint/array-type': [
|
|
141
|
+
'error',
|
|
142
|
+
{
|
|
143
|
+
default: 'array'
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
147
|
+
'@typescript-eslint/dot-notation': 'error',
|
|
148
|
+
'@typescript-eslint/explicit-member-accessibility': [
|
|
149
|
+
'off',
|
|
150
|
+
{
|
|
151
|
+
accessibility: 'explicit'
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
'@typescript-eslint/member-ordering': 'off',
|
|
155
|
+
'@typescript-eslint/naming-convention': [
|
|
156
|
+
'warn',
|
|
157
|
+
{
|
|
158
|
+
selector: 'variableLike',
|
|
159
|
+
format: ['camelCase', 'snake_case'] // We allow snake_case for variables as there are some from the BE in such format
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
selector: 'typeLike',
|
|
163
|
+
format: ['PascalCase']
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
selector: 'enumMember',
|
|
167
|
+
format: ['PascalCase', 'snake_case'] // We allow snake_case for variables as there are some from the BE in such format
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
'@typescript-eslint/no-empty-function': 'off',
|
|
171
|
+
'@typescript-eslint/no-inferrable-types': [
|
|
172
|
+
'error',
|
|
173
|
+
{
|
|
174
|
+
ignoreParameters: true
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
'@typescript-eslint/no-parameter-properties': 'off',
|
|
178
|
+
'@typescript-eslint/no-shadow': [
|
|
179
|
+
'error',
|
|
180
|
+
{
|
|
181
|
+
hoist: 'all'
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }],
|
|
185
|
+
'@typescript-eslint/no-use-before-define': 'error',
|
|
186
|
+
'@typescript-eslint/no-empty-interface': [
|
|
187
|
+
'error',
|
|
188
|
+
{ allowSingleExtends: true }
|
|
189
|
+
],
|
|
190
|
+
'@typescript-eslint/no-var-requires': 'error',
|
|
191
|
+
'@typescript-eslint/prefer-for-of': 'warn',
|
|
192
|
+
'@typescript-eslint/prefer-function-type': 'error',
|
|
193
|
+
'@typescript-eslint/prefer-includes': 'error',
|
|
194
|
+
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
195
|
+
'@typescript-eslint/triple-slash-reference': [
|
|
196
|
+
'error',
|
|
197
|
+
{
|
|
198
|
+
path: 'always',
|
|
199
|
+
types: 'prefer-import',
|
|
200
|
+
lib: 'always'
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
'@typescript-eslint/unified-signatures': 'error',
|
|
204
|
+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
205
|
+
'@typescript-eslint/no-deprecated': 'error',
|
|
206
|
+
'@typescript-eslint/no-empty-object-type': 'error'
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
const unicornRules = {
|
|
210
|
+
'unicorn/no-nested-ternary': 'off',
|
|
211
|
+
'unicorn/no-array-reduce': 'off',
|
|
212
|
+
'unicorn/no-array-for-each': 'off',
|
|
213
|
+
'unicorn/prefer-code-point': 'off',
|
|
214
|
+
'unicorn/prefer-event-target': 'off',
|
|
215
|
+
'unicorn/prefer-global-this': 'off',
|
|
216
|
+
'unicorn/no-array-method-this-argument': 'off',
|
|
217
|
+
'unicorn/empty-brace-spaces': 'off',
|
|
218
|
+
'unicorn/no-object-as-default-parameter': 'off',
|
|
219
|
+
'unicorn/no-null': 'off',
|
|
220
|
+
'unicorn/no-this-alias': 'off',
|
|
221
|
+
'unicorn/no-this-assignment': 'off',
|
|
222
|
+
'unicorn/prefer-top-level-await': 'off',
|
|
223
|
+
'unicorn/numeric-separators-style': [
|
|
224
|
+
'error',
|
|
225
|
+
{
|
|
226
|
+
onlyIfContainsSeparator: true
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
'unicorn/prefer-switch': 'off',
|
|
230
|
+
'unicorn/prevent-abbreviations': 'off',
|
|
231
|
+
'unicorn/consistent-function-scoping': [
|
|
232
|
+
'error',
|
|
233
|
+
{
|
|
234
|
+
checkArrowFunctions: false
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
const importRules = {
|
|
240
|
+
'import/no-deprecated': 'warn',
|
|
241
|
+
'import/order': 'error'
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
const jsdocRules = {
|
|
245
|
+
'jsdoc/check-alignment': 'error',
|
|
246
|
+
'jsdoc/check-indentation': 'error',
|
|
247
|
+
'jsdoc/no-types': 'error'
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const litRules = {
|
|
251
|
+
'lit/no-invalid-html': 'error',
|
|
252
|
+
'lit/no-value-attribute': 'error',
|
|
253
|
+
'lit/attribute-value-entities': 'error',
|
|
254
|
+
'lit/binding-positions': 'error',
|
|
255
|
+
'lit/no-invalid-escape-sequences': 'error',
|
|
256
|
+
'lit/no-legacy-template-syntax': 'error',
|
|
257
|
+
'lit/no-private-properties': 'error',
|
|
258
|
+
'lit/no-template-arrow': 'warn',
|
|
259
|
+
'lit/no-template-map': 'warn',
|
|
260
|
+
'lit/no-useless-template-literals': 'error',
|
|
261
|
+
'lit/quoted-expressions': 'error',
|
|
262
|
+
'lit/value-after-constraints': 'error'
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
const wcRules = {
|
|
266
|
+
// Web Components rules
|
|
267
|
+
'wc/guard-super-call': 'error',
|
|
268
|
+
'wc/no-constructor-params': 'error',
|
|
269
|
+
'wc/no-typos': 'error'
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export default tseslint.config(
|
|
273
|
+
...tseslint.configs.recommended,
|
|
274
|
+
{
|
|
275
|
+
files: ['**/*.ts', '**/*.tsx', '**/*.vue'],
|
|
276
|
+
plugins: {
|
|
277
|
+
lit: litPlugin,
|
|
278
|
+
wc: wcPlugin,
|
|
279
|
+
jsdoc: jsdocPlugin,
|
|
280
|
+
import: importPlugin
|
|
281
|
+
},
|
|
282
|
+
languageOptions: {
|
|
283
|
+
ecmaVersion: 2021,
|
|
284
|
+
sourceType: 'module',
|
|
285
|
+
parser: tseslint.parser,
|
|
286
|
+
parserOptions: {
|
|
287
|
+
project: './tsconfig.json'
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
rules: {
|
|
291
|
+
...coreRules,
|
|
292
|
+
...importRules,
|
|
293
|
+
...jsdocRules,
|
|
294
|
+
...litRules,
|
|
295
|
+
...wcRules,
|
|
296
|
+
...tseslintRules
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
// region Unicorn configs
|
|
300
|
+
pluginUnicorn.configs['flat/recommended'],
|
|
301
|
+
{
|
|
302
|
+
files: ['**/*.ts', '**/*.tsx', '**/*.vue'],
|
|
303
|
+
rules: {
|
|
304
|
+
...unicornRules
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
files: ['**/*.html'],
|
|
309
|
+
rules: {
|
|
310
|
+
'unicorn/no-empty-file': 'off' // Had to added this rule as it was failing on the template files
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
eslintPluginPrettier
|
|
314
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@luzmo/lucero",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"author": "Luzmo",
|
|
5
|
+
"description": "Lucero - The design system for Luzmo",
|
|
6
|
+
"homepage": "https://luzmo.com",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "restricted",
|
|
13
|
+
"registry": "https://registry.npmjs.org/"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"clean": "rimraf dist",
|
|
17
|
+
"prebuild": "npm run clean",
|
|
18
|
+
"build": "vite build --config vite.config.component.ts --mode=production && npm run cem",
|
|
19
|
+
"build:dev": "vite build --config vite.config.component.ts --mode=development --watch",
|
|
20
|
+
"dev": "npm run build:dev",
|
|
21
|
+
"cem": "custom-elements-manifest analyze",
|
|
22
|
+
"prepublishOnly": "npm run build",
|
|
23
|
+
"lint": "eslint 'src/**/*.{js,ts}'",
|
|
24
|
+
"lint:fix": "eslint 'src/**/*.{js,ts}' --fix",
|
|
25
|
+
"release": "npm version patch",
|
|
26
|
+
"publish": "npm run release && npm run build && (cd dist && npm publish); exit_code=$?; cd ..; exit $exit_code",
|
|
27
|
+
"storybook": "storybook dev -p 6006",
|
|
28
|
+
"build-storybook": "storybook build",
|
|
29
|
+
"test": "web-test-runner src/**/tests/**/*.test.ts --node-resolve --playwright --browsers chromium firefox webkit",
|
|
30
|
+
"test:watch": "web-test-runner src/**/tests/**/*.test.ts --node-resolve --playwright --browsers chromium firefox webkit --watch"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
34
|
+
"@ctrl/tinycolor": "^4.1.0",
|
|
35
|
+
"@custom-elements-manifest/analyzer": "^0.10.4",
|
|
36
|
+
"@floating-ui/dom": "^1.6.12",
|
|
37
|
+
"@internationalized/number": "^3.6.0",
|
|
38
|
+
"@lit-labs/observers": "^2.0.4",
|
|
39
|
+
"@open-wc/testing": "^4.0.0",
|
|
40
|
+
"@playwright/test": "^1.49.1",
|
|
41
|
+
"@remcovaes/web-test-runner-vite-plugin": "^1.2.2",
|
|
42
|
+
"@storybook/addon-a11y": "^8.5.7",
|
|
43
|
+
"@storybook/addon-essentials": "^8.5.7",
|
|
44
|
+
"@storybook/addon-themes": "^8.5.7",
|
|
45
|
+
"@storybook/blocks": "^8.5.7",
|
|
46
|
+
"@storybook/builder-vite": "^8.5.7",
|
|
47
|
+
"@storybook/test": "^8.5.7",
|
|
48
|
+
"@storybook/theming": "^8.5.7",
|
|
49
|
+
"@storybook/web-components": "^8.5.7",
|
|
50
|
+
"@storybook/web-components-vite": "^8.5.7",
|
|
51
|
+
"@types/chai": "^5.0.1",
|
|
52
|
+
"@types/mocha": "^10.0.10",
|
|
53
|
+
"@types/node": "^22.13.4",
|
|
54
|
+
"@types/sinon": "^17.0.3",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
56
|
+
"@typescript-eslint/parser": "^8.17.0",
|
|
57
|
+
"@web/test-runner": "^0.19.0",
|
|
58
|
+
"@web/test-runner-playwright": "^0.11.0",
|
|
59
|
+
"@web/test-runner-visual-regression": "^0.10.0",
|
|
60
|
+
"eslint": "^9.18.0",
|
|
61
|
+
"eslint-config-prettier": "^9.1.0",
|
|
62
|
+
"eslint-import-resolver-typescript": "^3.7.0",
|
|
63
|
+
"eslint-plugin-import": "^2.31.0",
|
|
64
|
+
"eslint-plugin-jsdoc": "^50.6.1",
|
|
65
|
+
"eslint-plugin-lit": "^1.15.0",
|
|
66
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
67
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
68
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
69
|
+
"eslint-plugin-wc": "^2.2.0",
|
|
70
|
+
"fast-glob": "^3.3.2",
|
|
71
|
+
"fs-extra": "^11.2.0",
|
|
72
|
+
"magic-string": "^0.30.17",
|
|
73
|
+
"nouislider": "^15.8.1",
|
|
74
|
+
"prettier": "^3.4.2",
|
|
75
|
+
"rimraf": "^6.0.1",
|
|
76
|
+
"sass": "^1.69.5",
|
|
77
|
+
"sinon": "^19.0.2",
|
|
78
|
+
"storybook": "^8.5.7",
|
|
79
|
+
"tslib": "^2.8.1",
|
|
80
|
+
"typescript": "^5.7.2",
|
|
81
|
+
"typescript-eslint": "^8.17.0",
|
|
82
|
+
"vite": "^6.0.6",
|
|
83
|
+
"vite-plugin-banner": "^0.8.0",
|
|
84
|
+
"vite-plugin-cem": "^0.8.1",
|
|
85
|
+
"vite-plugin-dts": "^4.4.0",
|
|
86
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
87
|
+
},
|
|
88
|
+
"eslintConfig": {
|
|
89
|
+
"extends": [
|
|
90
|
+
"plugin:storybook/recommended"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"customElements": "dist/custom-elements.json",
|
|
94
|
+
"peerDependencies": {
|
|
95
|
+
"lit": "^3.2.1",
|
|
96
|
+
"@luzmo/icons": "^0.0.2"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineConfig, devices } from '@playwright/test';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Read environment variables from file.
|
|
5
|
+
* https://github.com/motdotla/dotenv
|
|
6
|
+
*/
|
|
7
|
+
// import dotenv from 'dotenv';
|
|
8
|
+
// import path from 'path';
|
|
9
|
+
// dotenv.config({ path: path.resolve(__dirname, '.env') });
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* See https://playwright.dev/docs/test-configuration.
|
|
13
|
+
*/
|
|
14
|
+
export default defineConfig({
|
|
15
|
+
testDir: './tests',
|
|
16
|
+
/* Run tests in files in parallel */
|
|
17
|
+
fullyParallel: true,
|
|
18
|
+
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
|
19
|
+
forbidOnly: !!process.env.CI,
|
|
20
|
+
/* Retry on CI only */
|
|
21
|
+
retries: process.env.CI ? 2 : 0,
|
|
22
|
+
/* Opt out of parallel tests on CI. */
|
|
23
|
+
workers: process.env.CI ? 1 : undefined,
|
|
24
|
+
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
|
25
|
+
reporter: 'html',
|
|
26
|
+
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
|
27
|
+
use: {
|
|
28
|
+
/* Base URL to use in actions like `await page.goto('/')`. */
|
|
29
|
+
// baseURL: 'http://127.0.0.1:3000',
|
|
30
|
+
|
|
31
|
+
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
|
32
|
+
trace: 'on-first-retry'
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
/* Configure projects for major browsers */
|
|
36
|
+
projects: [
|
|
37
|
+
{
|
|
38
|
+
name: 'chromium',
|
|
39
|
+
use: { ...devices['Desktop Chrome'] }
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
{
|
|
43
|
+
name: 'firefox',
|
|
44
|
+
use: { ...devices['Desktop Firefox'] }
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
{
|
|
48
|
+
name: 'webkit',
|
|
49
|
+
use: { ...devices['Desktop Safari'] }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Test against mobile viewports. */
|
|
53
|
+
// {
|
|
54
|
+
// name: 'Mobile Chrome',
|
|
55
|
+
// use: { ...devices['Pixel 5'] },
|
|
56
|
+
// },
|
|
57
|
+
// {
|
|
58
|
+
// name: 'Mobile Safari',
|
|
59
|
+
// use: { ...devices['iPhone 12'] },
|
|
60
|
+
// },
|
|
61
|
+
|
|
62
|
+
/* Test against branded browsers. */
|
|
63
|
+
// {
|
|
64
|
+
// name: 'Microsoft Edge',
|
|
65
|
+
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
|
|
66
|
+
// },
|
|
67
|
+
// {
|
|
68
|
+
// name: 'Google Chrome',
|
|
69
|
+
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
|
|
70
|
+
// },
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
/* Run your local dev server before starting the tests */
|
|
74
|
+
// webServer: {
|
|
75
|
+
// command: 'npm run start',
|
|
76
|
+
// url: 'http://127.0.0.1:3000',
|
|
77
|
+
// reuseExistingServer: !process.env.CI,
|
|
78
|
+
// },
|
|
79
|
+
});
|