Skip to content

Commit 6484d7f

Browse files
committed
feat: added package.json and .npmignore in order to being able to publish templates as npm packages
1 parent 4816b7d commit 6484d7f

5 files changed

Lines changed: 33 additions & 7 deletions

File tree

templates/blade/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/composed

templates/blade/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
Auto-generated Blade templates for HTML elements with built-in validation for best consistency.
44

5+
## Installation
6+
7+
Via composer
8+
```bash
9+
composer require vardumper/extended-htmldocument
10+
```
11+
12+
Via NPM
13+
```bash
14+
npm install @html5/blade
15+
# or
16+
yarn add @html5/blade
17+
# or
18+
pnpm add @html5/blade
19+
```
20+
521
## Setup
622

723
Register the components path in your Laravel application's `AppServiceProvider`:
@@ -37,7 +53,7 @@ public function boot(): void
3753
title="Some info about the link"
3854
rel="nofollow"
3955
role="button">
40-
<x-inline.strong>
56+
<x-inline.strong.strong>
4157
Click here
4258
</x-inline.strong>
4359
</x-inline.a>

templates/blade/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@html5/blade",
3-
"version": "0.0.1",
2+
"name": "@typesafe-html5/blade",
3+
"version": "0.2.24",
44
"type": "module",
55
"license": "MIT",
66
"description": "Fully Type-Safe, WCAG and ARIA compliant, HTML5 components for use in more consistent Blade templates. Has static attribute enum validation.",

templates/nextjs/.npmignore

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

templates/nextjs/package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@vardumper/extended-htmldocument-nextjs",
3-
"version": "1.0.0",
4-
"description": "Type-safe, auto-generated React components for all HTML5 elements with full ARIA support",
2+
"name": "@typesafe-html5/react",
3+
"version": "0.2.24",
4+
"description": "Type-safe, framework-agnostic, auto-generated React components for all HTML5 elements with full WCAG, ARIA support and validation.",
55
"main": "index.ts",
66
"types": "index.ts",
77
"type": "module",
@@ -17,8 +17,16 @@
1717
"accessibility",
1818
"components"
1919
],
20-
"author": "vardumper <info@erikpoehler.com>",
20+
"author": "Erik Poehler",
2121
"license": "MIT",
22+
"repository": "https://github.com/vardumper/extended-htmldocument/tree/main/templates/next",
23+
"bugs": {
24+
"url": "https://github.com/vardumper/extended-htmldocument/issues"
25+
},
26+
"homepage": "https://vardumper.github.io/extended-htmldocument/templates/next",
27+
"publishConfig": {
28+
"access": "public"
29+
},
2230
"peerDependencies": {
2331
"react": "^18.0.0 || ^19.0.0",
2432
"react-dom": "^18.0.0 || ^19.0.0"

0 commit comments

Comments
 (0)