@nextworks/blocks-templates 0.1.0-alpha.14 → 0.1.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -11
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,14 +9,22 @@ Included templates (subject to change):
|
|
|
9
9
|
- Digital agency
|
|
10
10
|
- Gallery
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Recommended: install via the nextworks CLI
|
|
13
|
+
|
|
14
|
+
Most developers should install Blocks via the **nextworks** CLI (copy-in / shadcn-style) rather than consuming this package directly.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx nextworks@latest add blocks --sections --templates
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- npm (CLI): https://www.npmjs.com/package/nextworks
|
|
21
|
+
|
|
22
|
+
## Direct installation (advanced)
|
|
23
|
+
|
|
24
|
+
If you want to consume the compiled templates as a package:
|
|
13
25
|
|
|
14
26
|
```bash
|
|
15
27
|
npm install @nextworks/blocks-templates @nextworks/blocks-sections @nextworks/blocks-core
|
|
16
|
-
# or
|
|
17
|
-
pnpm add @nextworks/blocks-templates @nextworks/blocks-sections @nextworks/blocks-core
|
|
18
|
-
# or
|
|
19
|
-
yarn add @nextworks/blocks-templates @nextworks/blocks-sections @nextworks/blocks-core
|
|
20
28
|
```
|
|
21
29
|
|
|
22
30
|
## Usage
|
|
@@ -34,9 +42,3 @@ These templates assume:
|
|
|
34
42
|
- Next.js App Router
|
|
35
43
|
- Tailwind CSS
|
|
36
44
|
- The theme provider and global styles from `@nextworks/blocks-core` are set up.
|
|
37
|
-
|
|
38
|
-
If you prefer working with source files copied into your app (instead of consuming compiled templates), use the `nextworks` CLI:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
npx nextworks add blocks
|
|
42
|
-
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextworks/blocks-templates",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"build": "npx tsc -p tsconfig.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@nextworks/blocks-core": "0.1.0-alpha.
|
|
20
|
-
"@nextworks/blocks-sections": "0.1.0-alpha.
|
|
19
|
+
"@nextworks/blocks-core": "0.1.0-alpha.16",
|
|
20
|
+
"@nextworks/blocks-sections": "0.1.0-alpha.16",
|
|
21
21
|
"lucide-react": "^0.542.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|