Skip to content

Commit

Permalink
Merge pull request #21 from jtiala/wc-example-app
Browse files Browse the repository at this point in the history
Add web components example app
  • Loading branch information
jtiala authored Oct 31, 2023
2 parents 3282ab8 + 044cb16 commit a428dc2
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 24 deletions.
6 changes: 4 additions & 2 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
".": "0.6.0",
"apps/docs": "0.6.0",
"apps/react-example": "0.6.0",
"apps/nextjs-example": "0.6.0",
"apps/react-example": "0.6.0",
"apps/web-components-example": "0.0.0",
"packages/eslint-config": "0.6.0",
"packages/react": "0.6.0",
"packages/style": "0.6.0",
"packages/stylelint-config": "0.6.0",
"packages/theme-default": "0.6.0",
"packages/typescript-config": "0.6.0",
"packages/utils": "0.6.0"
"packages/utils": "0.6.0",
"packages/web-components": "0.0.0"
}
20 changes: 20 additions & 0 deletions apps/web-components-example/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2023 Joonas Tiala

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 changes: 25 additions & 0 deletions apps/web-components-example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ThemelessUI Web Components Examples</title>
<link
rel="stylesheet"
href="node_modules/@themeless-ui/theme-default/dist/theme-default.css"
/>
<link
rel="stylesheet"
href="node_modules/@themeless-ui/style/dist/tokens.css"
/>
</head>
<body>
<script src="node_modules/@themeless-ui/web-components/dist/index.umd.cjs"></script>
<tui-heading level="1">Heading 1</tui-heading>
<tui-text>text</tui-text>
<tui-text type="mark">text</tui-text>
<tui-heading level="2">Heading 2</tui-heading>
<tui-paragraph>Paragraph</tui-paragraph>
<tui-blockquote author="author" source="source">blockquote</tui-blockquote>
</body>
</html>
31 changes: 31 additions & 0 deletions apps/web-components-example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@themeless-ui/web-components-example",
"version": "0.0.0",
"description": "ThemelessUI example Web Components app",
"keywords": [
"web-components"
],
"author": "Joonas Tiala <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/jtiala/themeless-ui",
"repository": {
"type": "git",
"url": "https://github.com/jtiala/themeless-ui",
"directory": "apps/web-components-example"
},
"type": "module",
"files": [
"index.html",
"CHANGELOG.md"
],
"packageManager": "[email protected]",
"scripts": {
"clean": "rm -rf node_modules .turbo",
"publish:npm": "pnpm publish --access public"
},
"dependencies": {
"@themeless-ui/web-components": "workspace:*",
"@themeless-ui/style": "workspace:*",
"@themeless-ui/theme-default": "workspace:*"
}
}
34 changes: 15 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@
"component": "@themeless-ui/docs",
"bump-minor-pre-major": true
},
"apps/nextjs-example": {
"component": "@themeless-ui/nextjs-example",
"bump-minor-pre-major": true
},
"apps/react-example": {
"component": "@themeless-ui/react-example",
"bump-minor-pre-major": true
},
"apps/nextjs-example": {
"component": "@themeless-ui/nextjs-example",
"apps/web-components-example": {
"component": "@themeless-ui/web-components-example",
"bump-minor-pre-major": true
},
"packages/eslint-config": {
Expand Down Expand Up @@ -45,6 +49,10 @@
"packages/utils": {
"component": "@themeless-ui/utils",
"bump-minor-pre-major": true
},
"packages/web-components": {
"component": "@themeless-ui/web-components",
"bump-minor-pre-major": true
}
},
"plugins": [
Expand All @@ -54,14 +62,17 @@
"components": [
"themeless-ui",
"@themeless-ui/docs",
"@themeless-ui/nextjs-example",
"@themeless-ui/react-example",
"@themeless-ui/web-components-example",
"@themeless-ui/eslint-config",
"@themeless-ui/react",
"@themeless-ui/style",
"@themeless-ui/stylelint-config",
"@themeless-ui/theme-default",
"@themeless-ui/typescript-config",
"@themeless-ui/utils"
"@themeless-ui/utils",
"@themeless-ui/web-components"
]
}
]
Expand Down

0 comments on commit a428dc2

Please sign in to comment.