Skip to content

Commit 9269bd2

Browse files
committed
work on property grid
1 parent d90fd1c commit 9269bd2

File tree

15 files changed

+8938
-1
lines changed

15 files changed

+8938
-1
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src/
2+
sample/
3+
node_modules/
4+
tsconfig.json

.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+
}

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
# propertygrid.webcomponent
2-
a propertygrid webcomponent
2+
a propertygrid control webcomponent
3+
4+
# description
5+
a simple propertygrid control as webcomponent..
6+
7+
supported types (out of the box)
8+
- number
9+
- string
10+
- boolean
11+
- color
12+
- nullable- of all types
13+
14+
usable in web-component-designer: https://node-projects.github.io/web-component-designer-demo/index.html
15+
16+
# development
17+
## upload new version
18+
simple run
19+
20+
npm run release
21+
22+
then you need to go to github and create a release from the uploaded tag.
23+
this will then create a npm package via github action.

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)