@synergy-design-system/components 1.0.0-main.2 → 1.0.0-main.3

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.
Files changed (3) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +6 -0
  3. package/package.json +39 -25
package/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2023, SickDesignSystem
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -3,7 +3,9 @@
3
3
  Synergy Web Component library based on [shoelace](https://shoelace.style/).
4
4
 
5
5
  ## Local setup
6
+
6
7
  ### Using the vendor cli
8
+
7
9
  The vendor cli is taking care about updating our code base according to a new version of shoelace.
8
10
 
9
11
  To change the shoelace version, that should be downloaded, change the version in the config of `./scripts/vendorism.js`.
@@ -12,3 +14,7 @@ If code in our components library should be updated to this new shoelace version
12
14
 
13
15
  All shoelace files are per default readonly and are disabled from being changed. To change this files can be ejected. This can be done via:
14
16
  `pnpm vendor.eject "src/declaration.d.ts"`.
17
+
18
+ ### Adding events to the output
19
+
20
+ To add events to the component output, make sure to add them to `src/scripts/vendorism.js` into the `events` array that is defined there. After a new build run `via pnpm build`, you will see the new event files and the `events/events.ts` file will be regenerated.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://www.sick.com"
5
5
  },
6
6
  "name": "@synergy-design-system/components",
7
- "version": "1.0.0-main.2",
7
+ "version": "1.0.0-main.3",
8
8
  "description": "",
9
9
  "repository": {
10
10
  "type": "git",
@@ -16,28 +16,16 @@
16
16
  "types": "./dist/synergy.d.ts",
17
17
  "import": "./dist/synergy.js"
18
18
  },
19
- "./dist/custom-elements.json": "./dist/custom-elements.json",
20
- "./dist/synergy.js": "./dist/synergy.js",
21
- "./dist/synergy-autoloader.js": "./dist/synergy-autoloader.js",
22
- "./dist/components/*": "./dist/components/*",
23
- "./dist/utilities/*": "./dist/utilities/*",
24
- "./dist/translations/*": "./dist/translations/*"
19
+ "./custom-elements.json": "./dist/custom-elements.json",
20
+ "./synergy.js": "./dist/synergy.js",
21
+ "./synergy-autoloader.js": "./dist/synergy-autoloader.js",
22
+ "./components/*": "./dist/components/*",
23
+ "./utilities/*": "./dist/utilities/*",
24
+ "./translations/*": "./dist/translations/*"
25
25
  },
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "scripts": {
30
- "build": "node scripts/build.js",
31
- "test": "web-test-runner --group default",
32
- "vendor": "node scripts/vendorism.js",
33
- "vendor.get": "node scripts/vendorism.js -g",
34
- "vendor.set": "node scripts/vendorism.js -s",
35
- "vendor.eject": "node scripts/vendorism.js -e",
36
- "lint:css": "stylelint \"src/**/*.{css,js,ts}\"",
37
- "lint:js": "eslint src",
38
- "lint": "pnpm run /^lint:.*/",
39
- "release": "semantic-release --tagFormat 'components/${version}' -e semantic-release-monorepo"
40
- },
41
29
  "type": "module",
42
30
  "homepage": "https://github.com/SickDesignSystem/synergy/tree/main/packages/components",
43
31
  "keywords": [
@@ -52,15 +40,17 @@
52
40
  "license": "ISC",
53
41
  "devDependencies": {
54
42
  "@custom-elements-manifest/analyzer": "^0.8.4",
43
+ "@lit/react": "^1.0.0",
55
44
  "@open-wc/testing": "^3.2.0",
56
45
  "@playwright/test": "^1.39.0",
57
46
  "@semantic-release/changelog": "^6.0.3",
47
+ "@semantic-release/exec": "^6.0.3",
58
48
  "@semantic-release/git": "^10.0.1",
59
49
  "@shoelace-style/animations": "^1.1.0",
60
50
  "@shoelace-style/localize": "^3.1.2",
61
- "@synergy-design-system/eslint-config-syn": "workspace:0.1",
62
- "@synergy-design-system/stylelint-config-syn": "workspace:0.1",
63
51
  "@types/mocha": "^10.0.2",
52
+ "@typescript-eslint/eslint-plugin": "^6.9.0",
53
+ "@typescript-eslint/parser": "^6.9.0",
64
54
  "@web/dev-server-esbuild": "^0.4.1",
65
55
  "@web/test-runner": "^0.17.2",
66
56
  "@web/test-runner-commands": "^0.8.1",
@@ -74,6 +64,9 @@
74
64
  "esbuild": "^0.19.4",
75
65
  "esbuild-plugin-replace": "^1.4.0",
76
66
  "eslint": "^8.47.0",
67
+ "eslint-config-airbnb": "^19.0.4",
68
+ "eslint-config-airbnb-typescript": "^17.1.0",
69
+ "eslint-plugin-import": "^2.28.1",
77
70
  "eslint-plugin-lit": "^1.9.1",
78
71
  "eslint-plugin-lit-a11y": "^4.1.0",
79
72
  "eslint-plugin-wc": "^2.0.4",
@@ -91,7 +84,9 @@
91
84
  "unified": "^11.0.3",
92
85
  "unist-util-visit": "^5.0.0",
93
86
  "user-agent-data-types": "^0.4.2",
94
- "vendorism": "github:mariohamann/vendorism"
87
+ "vendorism": "github:mariohamann/vendorism",
88
+ "@synergy-design-system/eslint-config-syn": "0.1.0",
89
+ "@synergy-design-system/stylelint-config-syn": "0.1.0"
95
90
  },
96
91
  "release": {
97
92
  "branches": [
@@ -119,10 +114,16 @@
119
114
  "changelogFile": "CHANGELOG.md"
120
115
  }
121
116
  ],
117
+ [
118
+ "@semantic-release/exec",
119
+ {
120
+ "prepareCmd": "pnpm build"
121
+ }
122
+ ],
122
123
  [
123
124
  "@semantic-release/npm",
124
125
  {
125
- "npmPublish": true
126
+ "npmPublish": false
126
127
  }
127
128
  ],
128
129
  [
@@ -130,6 +131,7 @@
130
131
  {
131
132
  "message": "chore(release/components): ${nextRelease.version} [skip actions]\n\n${nextRelease.notes}",
132
133
  "assets": [
134
+ "../react/**",
133
135
  "CHANGELOG.md",
134
136
  "package.json"
135
137
  ]
@@ -146,5 +148,17 @@
146
148
  "dependencies": {
147
149
  "lit": "^3.0.0"
148
150
  },
149
- "web-types": "./dist/web-types.json"
150
- }
151
+ "web-types": "./dist/web-types.json",
152
+ "scripts": {
153
+ "build": "node scripts/build.js",
154
+ "test": "web-test-runner --group default",
155
+ "vendor": "node scripts/vendorism.js",
156
+ "vendor.get": "node scripts/vendorism.js -g",
157
+ "vendor.set": "node scripts/vendorism.js -s",
158
+ "vendor.eject": "node scripts/vendorism.js -e",
159
+ "lint:css": "stylelint \"src/**/*.{css,js,ts}\"",
160
+ "lint:js": "eslint src",
161
+ "lint": "pnpm run /^lint:.*/",
162
+ "release": "semantic-release --tagFormat 'components/${version}' -e semantic-release-monorepo"
163
+ }
164
+ }