@asd14/vblocks 2.0.0 → 3.1.0
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 +417 -302
- package/bin/vblocks.sh +430 -181
- package/package.json +1 -1
- package/template/{plain → _common/plumbing}/package.json +1 -1
- package/template/_common/post-init-plumbing.sh +14 -0
- package/template/xyflow/app/src/index.css +3 -0
- package/template/xyflow/post-init-app.sh +11 -0
- package/template/xyflow-playground/package.json +0 -26
- package/template/xyflow-playground/src/index.css +0 -1
- /package/template/_common/{src → app/src}/index.css +0 -0
- /package/template/_common/{src → app/src}/index.html +0 -0
- /package/template/_common/{tsconfig.json → app/tsconfig.json} +0 -0
- /package/template/_common/{_gitignore → plumbing/_gitignore} +0 -0
- /package/template/plain/{src → app/src}/index.tsx +0 -0
- /package/template/{xyflow-playground → xyflow/app}/postcss.config.js +0 -0
- /package/template/{xyflow-playground → xyflow/app}/src/index.tsx +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# Runs in the project root, after `vblocks init` copies the plumbing files.
|
|
4
|
+
# vblocks exports VB_VERSION
|
|
5
|
+
|
|
6
|
+
set -eu
|
|
7
|
+
|
|
8
|
+
# npm leaves every `.gitignore` out of the package, so the template ships
|
|
9
|
+
# `_gitignore`
|
|
10
|
+
mv -- _gitignore .gitignore
|
|
11
|
+
|
|
12
|
+
npm pkg set \
|
|
13
|
+
"name=$(basename "$PWD")" \
|
|
14
|
+
"devDependencies.@asd14/vblocks=^${VB_VERSION}"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
# Runs in the app folder, after `vblocks init` copies the app files. npm writes
|
|
4
|
+
# the nearest package.json, the project root's
|
|
5
|
+
|
|
6
|
+
set -eu
|
|
7
|
+
|
|
8
|
+
npm pkg set \
|
|
9
|
+
"dependencies.@xyflow/react=^12" \
|
|
10
|
+
"devDependencies.@tailwindcss/postcss=^4" \
|
|
11
|
+
"devDependencies.tailwindcss=^4"
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"name": "vblocks-app",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "vblocks serve",
|
|
8
|
-
"build": "vblocks build",
|
|
9
|
-
"build:single": "vblocks build --env single",
|
|
10
|
-
"typecheck": "tsc --noEmit"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@xyflow/react": "^12",
|
|
14
|
-
"react": "^19",
|
|
15
|
-
"react-dom": "^19"
|
|
16
|
-
},
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"@asd14/ts-config": "^1.6.0",
|
|
19
|
-
"@asd14/vblocks": "*",
|
|
20
|
-
"@tailwindcss/postcss": "^4",
|
|
21
|
-
"@types/react": "^19",
|
|
22
|
-
"@types/react-dom": "^19",
|
|
23
|
-
"tailwindcss": "^4",
|
|
24
|
-
"typescript": "^6"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|