create-wp-typia 0.1.0 → 1.0.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 +8 -28
- package/bin/create-wp-typia.js +3 -0
- package/package.json +9 -37
- package/dist/cli.js +0 -87837
- package/dist/highlights-eq9cgrbb.scm +0 -604
- package/dist/highlights-ghv9g403.scm +0 -205
- package/dist/highlights-hk7bwhj4.scm +0 -284
- package/dist/highlights-r812a2qc.scm +0 -150
- package/dist/highlights-x6tmsnaa.scm +0 -115
- package/dist/injections-73j83es3.scm +0 -27
- package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
- package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
- package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
- package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
- package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
- package/lib/entry.js +0 -29
- package/lib/node-cli.js +0 -326
- package/lib/package-managers.d.ts +0 -29
- package/lib/package-managers.js +0 -170
- package/lib/scaffold.d.ts +0 -64
- package/lib/scaffold.js +0 -565
- package/lib/template-registry.d.ts +0 -18
- package/lib/template-registry.js +0 -58
- package/src/cli.ts +0 -329
- package/templates/advanced/README.md.mustache +0 -70
- package/templates/advanced/block.json.mustache +0 -42
- package/templates/advanced/index.js +0 -21
- package/templates/advanced/package.json.mustache +0 -48
- package/templates/advanced/scripts/generate-migrations.ts.mustache +0 -267
- package/templates/advanced/scripts/lib/typia-metadata-core.ts +0 -806
- package/templates/advanced/scripts/migration-cli.ts.mustache +0 -260
- package/templates/advanced/scripts/sync-types-to-block-json.ts.mustache +0 -25
- package/templates/advanced/src/admin/migration-dashboard.tsx.mustache +0 -450
- package/templates/advanced/src/components/ErrorBoundary.tsx.mustache +0 -47
- package/templates/advanced/src/deprecated.ts.mustache +0 -184
- package/templates/advanced/src/edit.tsx.mustache +0 -93
- package/templates/advanced/src/hooks/useDebounce.ts.mustache +0 -20
- package/templates/advanced/src/hooks/useLocalStorage.ts.mustache +0 -31
- package/templates/advanced/src/hooks.ts.mustache +0 -56
- package/templates/advanced/src/index.tsx.mustache +0 -16
- package/templates/advanced/src/migration-detector.ts.mustache +0 -417
- package/templates/advanced/src/migrations/index.ts.mustache +0 -361
- package/templates/advanced/src/save.tsx.mustache +0 -40
- package/templates/advanced/src/style.scss.mustache +0 -84
- package/templates/advanced/src/types/versions.ts.mustache +0 -108
- package/templates/advanced/src/types.ts.mustache +0 -45
- package/templates/advanced/src/utils/classnames.ts.mustache +0 -51
- package/templates/advanced/src/utils/debounce.ts.mustache +0 -37
- package/templates/advanced/src/utils/index.ts.mustache +0 -7
- package/templates/advanced/src/utils/uuid.ts.mustache +0 -17
- package/templates/advanced/src/validators.ts.mustache +0 -39
- package/templates/advanced/src/view.ts.mustache +0 -59
- package/templates/advanced/tsconfig.json.mustache +0 -9
- package/templates/advanced/webpack.config.js.mustache +0 -85
- package/templates/basic/package.json.mustache +0 -39
- package/templates/basic/scripts/lib/typia-metadata-core.ts +0 -806
- package/templates/basic/scripts/sync-types-to-block-json.ts +0 -25
- package/templates/basic/src/block.json +0 -51
- package/templates/basic/src/edit.tsx +0 -85
- package/templates/basic/src/hooks.ts +0 -75
- package/templates/basic/src/index.tsx +0 -37
- package/templates/basic/src/save.tsx +0 -27
- package/templates/basic/src/style.scss +0 -42
- package/templates/basic/src/types.ts +0 -47
- package/templates/basic/src/validators.ts +0 -39
- package/templates/basic/tsconfig.json +0 -20
- package/templates/basic/webpack.config.js +0 -85
- package/templates/full/package.json.mustache +0 -40
- package/templates/full/scripts/lib/typia-metadata-core.ts +0 -806
- package/templates/full/scripts/sync-types-to-block-json.ts.mustache +0 -25
- package/templates/full/src/block.json.mustache +0 -121
- package/templates/full/src/edit.tsx.mustache +0 -300
- package/templates/full/src/editor.scss.mustache +0 -251
- package/templates/full/src/hooks.ts.mustache +0 -140
- package/templates/full/src/index.tsx.mustache +0 -27
- package/templates/full/src/save.tsx.mustache +0 -39
- package/templates/full/src/style.scss.mustache +0 -224
- package/templates/full/src/types.ts.mustache +0 -34
- package/templates/full/src/validators.ts.mustache +0 -84
- package/templates/full/tsconfig.json.mustache +0 -9
- package/templates/full/webpack.config.js.mustache +0 -85
- package/templates/interactivity/package.json.mustache +0 -41
- package/templates/interactivity/scripts/lib/typia-metadata-core.ts +0 -806
- package/templates/interactivity/scripts/sync-types-to-block-json.ts.mustache +0 -25
- package/templates/interactivity/src/block.json.mustache +0 -75
- package/templates/interactivity/src/edit.tsx.mustache +0 -206
- package/templates/interactivity/src/interactivity.ts.mustache +0 -183
- package/templates/interactivity/src/save.tsx.mustache +0 -87
- package/templates/interactivity/src/types.ts.mustache +0 -29
- package/templates/interactivity/tsconfig.json.mustache +0 -9
- package/templates/interactivity/webpack.config.js.mustache +0 -85
package/README.md
CHANGED
|
@@ -1,33 +1,13 @@
|
|
|
1
|
-
# create-wp-typia
|
|
1
|
+
# `create-wp-typia`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Compatibility shim for [`@wp-typia/create`](https://www.npmjs.com/package/@wp-typia/create).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Use this package when you need historical commands such as:
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```
|
|
7
|
+
- `bun create wp-typia`
|
|
8
|
+
- `npx create-wp-typia`
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
For new installations, prefer:
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
bunx
|
|
15
|
-
npx create-wp-typia my-block
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
The CLI always asks which package manager the generated project should use.
|
|
19
|
-
For non-interactive usage, pass it explicitly:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npx create-wp-typia my-block --template basic --package-manager pnpm --yes --no-install
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Additional commands:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
create-wp-typia templates list
|
|
29
|
-
create-wp-typia templates inspect basic
|
|
30
|
-
create-wp-typia doctor
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
Repo development stays Bun-first. The generated project can use `bun`, `npm`, `pnpm`, or `yarn`.
|
|
12
|
+
- `npx @wp-typia/create`
|
|
13
|
+
- `bunx @wp-typia/create`
|
package/package.json
CHANGED
|
@@ -1,64 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-wp-typia",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"packageManager": "bun@1.3.10",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Compatibility shim for @wp-typia/create and bun create wp-typia",
|
|
6
5
|
"type": "module",
|
|
7
|
-
"main": "lib/scaffold.js",
|
|
8
6
|
"bin": {
|
|
9
|
-
"create-wp-typia": "
|
|
7
|
+
"create-wp-typia": "bin/create-wp-typia.js"
|
|
10
8
|
},
|
|
11
9
|
"files": [
|
|
12
|
-
"
|
|
13
|
-
"lib/",
|
|
14
|
-
"src/",
|
|
15
|
-
"templates/",
|
|
10
|
+
"bin/",
|
|
16
11
|
"README.md",
|
|
17
12
|
"package.json"
|
|
18
13
|
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "bunli build --runtime node",
|
|
21
|
-
"dev": "bunli dev --runtime node",
|
|
22
|
-
"test": "bunli test --pattern ./tests/create-cli.test.ts",
|
|
23
|
-
"test:coverage": "bunli test --pattern ./tests/create-cli.test.ts --coverage && bun test tests/create-cli.test.ts --coverage --coverage-reporter=lcov --coverage-dir=coverage",
|
|
24
|
-
"clean": "rm -rf dist",
|
|
25
|
-
"prepack": "bun run build"
|
|
26
|
-
},
|
|
27
|
-
"keywords": [
|
|
28
|
-
"wordpress",
|
|
29
|
-
"gutenberg",
|
|
30
|
-
"typia",
|
|
31
|
-
"template",
|
|
32
|
-
"scaffold",
|
|
33
|
-
"cli",
|
|
34
|
-
"bun"
|
|
35
|
-
],
|
|
36
14
|
"author": "imjlk",
|
|
37
15
|
"license": "GPL-2.0-or-later",
|
|
38
16
|
"repository": {
|
|
39
17
|
"type": "git",
|
|
40
|
-
"url": "https://github.com/imjlk/wp-typia
|
|
18
|
+
"url": "git+https://github.com/imjlk/wp-typia.git",
|
|
41
19
|
"directory": "packages/create-wp-typia"
|
|
42
20
|
},
|
|
43
21
|
"bugs": {
|
|
44
|
-
"url": "https://github.com/imjlk/wp-typia
|
|
22
|
+
"url": "https://github.com/imjlk/wp-typia/issues"
|
|
45
23
|
},
|
|
46
|
-
"homepage": "https://github.com/imjlk/wp-typia
|
|
24
|
+
"homepage": "https://github.com/imjlk/wp-typia/tree/main/packages/create-wp-typia#readme",
|
|
47
25
|
"publishConfig": {
|
|
48
26
|
"access": "public"
|
|
49
27
|
},
|
|
50
28
|
"engines": {
|
|
51
29
|
"node": ">=16.0.0",
|
|
30
|
+
"npm": ">=8.0.0",
|
|
52
31
|
"bun": ">=1.3.10"
|
|
53
32
|
},
|
|
54
33
|
"dependencies": {
|
|
55
|
-
"@
|
|
56
|
-
"react": "^19.2.4",
|
|
57
|
-
"react-dom": "^19.2.4",
|
|
58
|
-
"zod": "^3.25.76"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"bunli": "^0.8.2",
|
|
62
|
-
"typescript": "^5.9.2"
|
|
34
|
+
"@wp-typia/create": "^0.1.0"
|
|
63
35
|
}
|
|
64
36
|
}
|