generated from openscd/oscd-component
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from com-pas/restructuring_docops
feat: restructure of compas docops
- Loading branch information
Showing
120 changed files
with
34,907 additions
and
15,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,3 @@ | ||
## editors | ||
/.idea | ||
/.vscode | ||
|
||
## system files | ||
.DS_Store | ||
|
||
## npm | ||
/node_modules/ | ||
/npm-debug.log | ||
|
||
## testing | ||
/coverage/ | ||
|
||
## failed screenshots | ||
/screenshots/*/failed/ | ||
|
||
## temp folders | ||
/.tmp/ | ||
|
||
# build | ||
/_site/ | ||
/dist/ | ||
/out-tsc/ | ||
/.rollup.cache/ | ||
|
||
storybook-static | ||
custom-elements.json | ||
node_modules/ | ||
**/.tsbuildinfo | ||
lerna-debug.log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +0,0 @@ | ||
# \<compas-open> | ||
|
||
This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation. | ||
|
||
## Installation | ||
|
||
```bash | ||
npm i compas-open | ||
``` | ||
|
||
## Usage | ||
|
||
```html | ||
<script type="module"> | ||
import 'compas-open'; | ||
</script> | ||
|
||
<compas-open></compas-open> | ||
``` | ||
|
||
## Linting and formatting | ||
|
||
To scan the project for linting and formatting errors, run | ||
|
||
```bash | ||
npm run lint | ||
``` | ||
|
||
To automatically fix linting and formatting errors, run | ||
|
||
```bash | ||
npm run format | ||
``` | ||
|
||
## Testing with Web Test Runner | ||
|
||
To execute a single test run: | ||
|
||
```bash | ||
npm run test | ||
``` | ||
|
||
To run the tests in interactive watch mode run: | ||
|
||
```bash | ||
npm run test:watch | ||
``` | ||
|
||
## Demoing with Storybook | ||
|
||
To run a local instance of Storybook for your component, run | ||
|
||
```bash | ||
npm run storybook | ||
``` | ||
|
||
To build a production version of Storybook, run | ||
|
||
```bash | ||
npm run storybook:build | ||
``` | ||
|
||
## Tooling configs | ||
|
||
For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project. | ||
|
||
If you customize the configuration a lot, you can consider moving them to individual files. | ||
|
||
## Local Demo with `web-dev-server` | ||
|
||
```bash | ||
npm start | ||
``` | ||
|
||
To run a local development server that serves the basic demo located in `demo/index.html` | ||
|
||
|
||
|
||
|
||
|
||
© 1970 THE AUTHORS | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
"plugins": ["@typescript-eslint"], | ||
"root": true, | ||
"ignorePatterns": ["**/*.html", "*.config.js"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## editors | ||
/.idea | ||
/.vscode | ||
|
||
## system files | ||
.DS_Store | ||
|
||
## npm | ||
/node_modules/ | ||
/npm-debug.log | ||
|
||
## local debug | ||
/.npmrc | ||
|
||
## temp folders | ||
/.tmp/ | ||
|
||
# build | ||
/_site/ | ||
/dist/ | ||
/out-tsc/ | ||
/.tsbuildinfo | ||
|
||
custom-elements.json | ||
|
||
.rollup.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## editors | ||
/.idea | ||
/.vscode | ||
|
||
## system files | ||
.DS_Store | ||
|
||
## npm | ||
/node_modules/ | ||
/npm-debug.log | ||
|
||
## local debug | ||
/.npmrc | ||
|
||
## temp folders | ||
/.tmp/ | ||
|
||
# build | ||
/_site/ | ||
/out-tsc/ | ||
|
||
custom-elements.json |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "@com-pas/compas-loading", | ||
"description": "Webcomponent compas-loading following open-wc recommendations", | ||
"license": "Apache-2.0", | ||
"author": "CoMPAS", | ||
"version": "0.0.0", | ||
"browser": "./dist/CompasLoading.js", | ||
"module": "./dist/CompasLoading.js", | ||
"types": "./dist/CompasLoading.d.ts", | ||
"exports": { | ||
".": "./dist/CompasLoading.js", | ||
"./compas-loading.js": "./dist/compas-loading.js" | ||
}, | ||
"type": "module", | ||
"scripts": { | ||
"analyze": "cem analyze", | ||
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"", | ||
"build": "tsc && npm run analyze -- --exclude dist", | ||
"prepublish": "tsc && npm run analyze -- --exclude dist", | ||
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore", | ||
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore", | ||
"clean": "rimraf .tsbuildinfo custom-elements.json dist" | ||
}, | ||
"dependencies": { | ||
"@material/mwc-list": "^0.27.0", | ||
"lit": "^2.7.4", | ||
"lit-element": "2.5.1", | ||
"lit-html": "1.4.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.16.4", | ||
"@custom-elements-manifest/analyzer": "^0.4.17", | ||
"@open-wc/building-rollup": "^2.0.2", | ||
"@open-wc/eslint-config": "^9.2.1", | ||
"@open-wc/testing": "^3.1.6", | ||
"@rollup/plugin-typescript": "^9.0.2", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-node-resolve": "^13.0.6", | ||
"@typescript-eslint/eslint-plugin": "^5.48.0", | ||
"@typescript-eslint/parser": "^5.48.0", | ||
"@web/dev-server": "^0.1.34", | ||
"@web/dev-server-storybook": "^0.5.4", | ||
"@web/rollup-plugin-html": "^1.11.0", | ||
"@web/rollup-plugin-import-meta-assets": "^1.0.7", | ||
"@web/test-runner": "^0.14.0", | ||
"babel-plugin-template-html-minifier": "^4.1.0", | ||
"cem-plugin-readme": "^0.1.4", | ||
"concurrently": "^5.3.0", | ||
"deepmerge": "^4.2.2", | ||
"eslint": "^8.31.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"husky": "^4.3.8", | ||
"lint-staged": "^10.5.4", | ||
"prettier": "^2.4.1", | ||
"sinon": "^11.1.2", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.60.0", | ||
"rollup-plugin-esbuild": "^5.0.0", | ||
"rollup-plugin-workbox": "^6.2.0", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.9.2" | ||
}, | ||
"customElements": "custom-elements.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { CompasLoadingElement } from "./compas-loading.js"; | ||
|
||
window.customElements.define("compas-loading", CompasLoadingElement); | ||
export { CompasLoadingElement }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { html, LitElement, TemplateResult, property } from "lit-element"; | ||
import "@material/mwc-list"; | ||
import "@material/mwc-list/mwc-list-item"; | ||
|
||
export class CompasLoadingElement extends LitElement { | ||
@property({ type: String }) message?: string; | ||
|
||
render(): TemplateResult { | ||
return html` | ||
<mwc-list> | ||
<mwc-list-item><i>${this.message ?? "Loading..."}</i></mwc-list-item> | ||
</mwc-list> | ||
`; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.