Skip to content

Commit 702c20e

Browse files
committed
Use tab.webcomponent as template
1 parent 69447b6 commit 702c20e

16 files changed

+6720
-0
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v2
9+
- name: Setup Node
10+
uses: actions/setup-node@v2
11+
with:
12+
node-version: '18.x'
13+
registry-url: 'https://registry.npmjs.org'
14+
- name: Install dependencies and build 🔧
15+
run: npm ci && npm run build

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
- name: Setup Node
12+
uses: actions/setup-node@v2
13+
with:
14+
node-version: '18.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- name: Install dependencies and build 🔧
17+
run: npm ci && npm run build
18+
- name: Publish package on NPM 📦
19+
run: npm publish --access=public
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
src/
2+
sample/
3+
node_modules/
4+
tsconfig.json
5+
.github/

.release-it.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore: release v${version}"
4+
},
5+
"github": {
6+
"release": true
7+
},
8+
"npm": {
9+
"publish": false
10+
}
11+
}

custom-elements.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"schemaVersion": "1.0.0",
3+
"readme": "README.md",
4+
"modules": [
5+
{
6+
"kind": "javascript-module",
7+
"path": "dist/tab/TabWebcomponent.js",
8+
"declarations": [
9+
{
10+
"kind": "class",
11+
"description": "A Tab Control",
12+
"name": "TabWebcomponent",
13+
"members": [
14+
{
15+
"kind": "field",
16+
"name": "selectedIndex",
17+
"type": {
18+
"text": "number"
19+
}
20+
}
21+
],
22+
"attributes": [
23+
{
24+
"name": "selected-index",
25+
"fieldName": "selectedIndex"
26+
}
27+
],
28+
"events": [
29+
{
30+
"name": "selected-index-changed",
31+
"description": "Is raised when the selected index changes",
32+
"type": {
33+
"title": "String"
34+
}
35+
}
36+
],
37+
"superclass": {
38+
"name": "BaseCustomWebComponentConstructorAppend"
39+
},
40+
"tagName": "node-projects-tab",
41+
"customElement": true
42+
}
43+
],
44+
"exports": [
45+
{
46+
"kind": "custom-element-definition",
47+
"name": "node-projects-tab",
48+
"declaration": {
49+
"name": "TabWebcomponent",
50+
"module": "dist/tab/TabWebcomponent.js"
51+
}
52+
}
53+
]
54+
}
55+
]
56+
}

0 commit comments

Comments
 (0)