Skip to content

Commit 3d2a221

Browse files
committed
wip
1 parent adadf03 commit 3d2a221

28 files changed

Lines changed: 12028 additions & 10502 deletions

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
/package-lock.json
99
/target
1010
/Cargo.lock
11+
/composer.lock

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
node_modules
22
build
33
/target
4+
!.vscode
45

56
cypress/screenshots/**/*
67
!cypress/screenshots/**/.gitkeep
78
cypress/videos/**/*
89
!cypress/videos/**/.gitkeep
910
cypress/downloads/**/*
1011
cypress/downloads/**/.gitkeep
12+
13+
/vendor/

.vscode/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"eslint.enable": false,
3+
"editor.formatOnSave": true,
4+
"[json]": {
5+
"editor.defaultFormatter": "biomejs.biome"
6+
},
7+
"[javascript]": {
8+
"editor.defaultFormatter": "biomejs.biome"
9+
},
10+
"[javascriptreact]": {
11+
"editor.defaultFormatter": "biomejs.biome"
12+
},
13+
"[typescript]": {
14+
"editor.defaultFormatter": "biomejs.biome"
15+
},
16+
"[typescriptreact]": {
17+
"editor.defaultFormatter": "biomejs.biome"
18+
},
19+
"[css]": {
20+
"editor.defaultFormatter": "biomejs.biome"
21+
}
22+
}

Cargo.lock

Lines changed: 70 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ edition = "2021"
55

66
[lib]
77
crate-type = ["cdylib"]
8-
path = "./server/lib.rs"
8+
path = "./rust/lib.rs"
99

1010
[dependencies]
1111
getrandom = { version = "0.2", features = ["js"] }
1212
rand = "0.8.5"
13-
wasm-bindgen = "0.2.92"
13+
wasm-bindgen = "0.2.100"
1414

1515
[dependencies.web-sys]
16-
version = "0.3.69"
16+
version = "0.3.77"
1717
features = ["console"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
This is a minimum block plugin template to rapidly get started building WP blocks using Rust + TypeScript.
44

55
- Follow me on Twitter: https://twitter.com/kevinbatdorf
6-
- Sponsor this package: https://github.com/sponsors/KevinBatdorf/
76

87
### Getting Started
98

109
- Run `npm install` to install necessary packages
11-
- Run `npm run rename <text-domain> <label>` to rename from rust-starter.
10+
- Run `npm run rename <text-domain> <plugin-name>` to rename from rust-starter.
1211
- Run `npm run start` to start the dev server
12+
- Run `wp-env start` to start the WordPress environment
1313
- Run `cypress open` to run interactive tests
1414

1515

biome.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"organizeImports": {
4-
"enabled": true
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
57
},
8+
"formatter": { "enabled": true, "indentStyle": "tab" },
9+
"organizeImports": { "enabled": true },
610
"linter": {
711
"enabled": true,
812
"rules": {
9-
"recommended": true
13+
"recommended": true,
14+
"correctness": {
15+
"noUnusedImports": "error"
16+
}
1017
}
1118
},
19+
"javascript": { "formatter": { "quoteStyle": "double" } },
1220
"files": {
21+
"ignoreUnknown": false,
1322
"include": [".vscode", ".github", "src", "cypress", "scripts"],
1423
"ignore": ["node_modules", "build", "target", "*.log", "*.zip"]
1524
}

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "kevin/rust-starter",
3+
"require": {},
4+
"require-dev": {
5+
"johnpbloch/wordpress-core": "*"
6+
}
7+
}

0 commit comments

Comments
 (0)