Compare commits

...

6 Commits

Author SHA1 Message Date
Bauke c5a38cf4ac
Version 0.2.2! 2022-09-29 12:44:43 +02:00
Bauke c25fb4ece4
Update package.json info. 2022-09-29 12:44:11 +02:00
Bauke 1080648ead
Disable some XO rules. 2022-09-29 12:40:24 +02:00
Bauke d8d0f76497
Update dependencies. 2022-09-29 12:40:14 +02:00
Bauke 7c38f3c882
Rename gram.ts to index.ts. 2022-09-29 12:39:58 +02:00
Bauke 62e8a6cb4d
Rename to Preact Components. 2022-09-29 12:39:44 +02:00
7 changed files with 636 additions and 697 deletions

View File

@ -1,7 +1,7 @@
# Holllo Preact Components 🧵 # Preact Components 🧵
> **Holllo's Preact component library.** > **Holllo's Preact component library.**
## License ## License
Distributed under the [AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later.html) license, see [LICENSE](https://git.bauke.xyz/Holllo/holllo-preact-components/src/branch/main/LICENSE) for more information. Distributed under the [AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later.html) license, see [LICENSE](https://git.bauke.xyz/Holllo/preact-components/src/branch/main/LICENSE) for more information.

View File

@ -1,12 +1,12 @@
{ {
"name": "@holllo/gram", "name": "@holllo/preact-components",
"description": "Opinionated component library using HTM & Preact.", "description": "Holllo's Preact component library.",
"license": "GPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"version": "0.2.1", "version": "0.2.2",
"author": "Holllo <helllo@holllo.cc>", "author": "Holllo <helllo@holllo.org>",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/Holllo/gram" "url": "https://git.bauke.xyz/Holllo/preact-components"
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
@ -15,15 +15,15 @@
"test:snapshots": "ava --update-snapshots" "test:snapshots": "ava --update-snapshots"
}, },
"devDependencies": { "devDependencies": {
"@happy-dom/global-registrator": "^2.47.3", "@happy-dom/global-registrator": "^6.0.4",
"ava": "^4.0.1", "ava": "^4.3.3",
"c8": "^7.11.0", "c8": "^7.12.0",
"htm": "^3.1.0", "htm": "^3.1.1",
"preact": "^10.6.6", "preact": "^10.11.0",
"preact-render-to-string": "^5.1.20", "preact-render-to-string": "^5.2.4",
"ts-node": "^10.6.0", "ts-node": "^10.9.1",
"typescript": "^4.6.2", "typescript": "^4.8.4",
"xo": "^0.48.0" "xo": "^0.52.3"
}, },
"peerDependencies": { "peerDependencies": {
"htm": "3.x", "htm": "3.x",
@ -65,6 +65,10 @@
}, },
"xo": { "xo": {
"prettier": true, "prettier": true,
"rules": {
"@typescript-eslint/consistent-type-imports": "off",
"n/file-extension-in-import": "off"
},
"space": true "space": true
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ import test from 'ava';
import {html} from 'htm/preact'; import {html} from 'htm/preact';
import {render} from 'preact'; import {render} from 'preact';
import {ConfirmButton, ConfirmButtonProps} from '../../source/gram.js'; import {ConfirmButton, ConfirmButtonProps} from '../../source/index.js';
import {sleep} from '../utilities.js'; import {sleep} from '../utilities.js';
test.before(() => { test.before(() => {

View File

@ -3,7 +3,7 @@ import test from 'ava';
import {html} from 'htm/preact'; import {html} from 'htm/preact';
import {render} from 'preact'; import {render} from 'preact';
import {FeedbackButton, FeedbackButtonProps} from '../../source/gram.js'; import {FeedbackButton, FeedbackButtonProps} from '../../source/index.js';
import {sleep} from '../utilities.js'; import {sleep} from '../utilities.js';
test.before(() => { test.before(() => {

View File

@ -2,7 +2,7 @@ import test from 'ava';
import {html} from 'htm/preact'; import {html} from 'htm/preact';
import {render} from 'preact-render-to-string'; import {render} from 'preact-render-to-string';
import {PrivacyLink} from '../../source/gram.js'; import {PrivacyLink} from '../../source/index.js';
test('PrivacyLink', (t) => { test('PrivacyLink', (t) => {
t.snapshot(render(html`<${PrivacyLink} />`), 'Empty'); t.snapshot(render(html`<${PrivacyLink} />`), 'Empty');