@cal.macconnachie/web-components 0.0.1 → 0.0.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.
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Load only the components you need:
|
|
|
18
18
|
|
|
19
19
|
```html
|
|
20
20
|
<!-- Load just the auth component -->
|
|
21
|
-
<script type="module" src="https://cdn.cals-api.com/components/cals-auth"></script>
|
|
21
|
+
<script type="module" src="https://cdn.cals-api.com/components/cals-auth.js"></script>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Option 3: Using with Vue, React, or other frameworks
|
|
@@ -27,7 +27,7 @@ For framework projects (Vue, React, etc.), load the component via script tag in
|
|
|
27
27
|
|
|
28
28
|
```html
|
|
29
29
|
<!-- index.html -->
|
|
30
|
-
<script type="module" src="https://cdn.cals-api.com/components/cals-auth"></script>
|
|
30
|
+
<script type="module" src="https://cdn.cals-api.com/components/cals-auth.js"></script>
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
Then create a type declaration file for TypeScript support:
|
|
@@ -112,7 +112,7 @@ document.getElementById('logout-auth')?.addEventListener('click', () => {
|
|
|
112
112
|
|
|
113
113
|
TypeScript:
|
|
114
114
|
```typescript
|
|
115
|
-
import type { CalsAuth } from 'https://cdn.cals-api.com/components/cals-auth';
|
|
115
|
+
import type { CalsAuth } from 'https://cdn.cals-api.com/components/cals-auth.js';
|
|
116
116
|
|
|
117
117
|
const auth = document.querySelector<CalsAuth>('cals-auth');
|
|
118
118
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cal.macconnachie/web-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Web components hosted on a CDN",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit",
|
|
@@ -35,10 +35,6 @@
|
|
|
35
35
|
"files": [
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
|
-
"workspaces": [
|
|
39
|
-
".",
|
|
40
|
-
"cdn"
|
|
41
|
-
],
|
|
42
38
|
"scripts": {
|
|
43
39
|
"dev": "vite",
|
|
44
40
|
"build": "vite build",
|
|
@@ -47,11 +43,15 @@
|
|
|
47
43
|
"preview": "vite preview",
|
|
48
44
|
"typecheck": "tsc --noEmit",
|
|
49
45
|
"prepublishOnly": "yarn build && yarn build:components && yarn typecheck && yarn minify:css",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"cdk
|
|
46
|
+
"release": "standard-version && git push --follow-tags",
|
|
47
|
+
"release:minor": "standard-version --release-as minor && git push --follow-tags",
|
|
48
|
+
"release:major": "standard-version --release-as major && git push --follow-tags",
|
|
49
|
+
"release:first": "standard-version --first-release && git push --follow-tags",
|
|
50
|
+
"cdk": "yarn --cwd cdn cdk",
|
|
51
|
+
"cdk:deploy": "yarn --cwd cdn cdk deploy",
|
|
52
|
+
"cdk:synth": "yarn --cwd cdn cdk synth",
|
|
53
|
+
"cdk:diff": "yarn --cwd cdn cdk diff",
|
|
54
|
+
"cdk:destroy": "yarn --cwd cdn cdk destroy"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"lit": "^3.3.1"
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"cssnano": "^6.1.2",
|
|
62
62
|
"postcss": "^8.4.49",
|
|
63
63
|
"postcss-cli": "^11.0.0",
|
|
64
|
+
"standard-version": "^9.5.0",
|
|
64
65
|
"typescript": "^5.9.3",
|
|
65
66
|
"vite": "^7.2.4",
|
|
66
67
|
"vite-plugin-dts": "^4.5.4"
|
|
File without changes
|
/package/dist/{index → index.js}
RENAMED
|
File without changes
|