create-what 0.6.3 → 0.6.4
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 +3 -3
- package/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Scaffold a new [What Framework](https://whatfw.com) project with one command.
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm create what@
|
|
8
|
+
npm create what@backport my-app
|
|
9
9
|
cd my-app
|
|
10
10
|
npm install
|
|
11
11
|
npm run dev
|
|
@@ -14,13 +14,13 @@ npm run dev
|
|
|
14
14
|
Or with Bun:
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
bun create what@
|
|
17
|
+
bun create what@backport my-app
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
### Skip prompts
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
npm create what@
|
|
23
|
+
npm create what@backport my-app -- --yes
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## Options
|
package/index.js
CHANGED
|
@@ -25,7 +25,7 @@ if (flags.has('--help') || flags.has('-h')) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
if (flags.has('--version') || flags.has('-v')) {
|
|
28
|
-
console.log('0.6.
|
|
28
|
+
console.log('0.6.4');
|
|
29
29
|
process.exit(0);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -38,7 +38,7 @@ if (unknownFlags.length > 0) {
|
|
|
38
38
|
const skipPrompts = flags.has('--yes') || flags.has('-y');
|
|
39
39
|
|
|
40
40
|
function printHelp() {
|
|
41
|
-
console.log(`create-what 0.6.
|
|
41
|
+
console.log(`create-what 0.6.4
|
|
42
42
|
|
|
43
43
|
Usage:
|
|
44
44
|
npx create-what [app-name] [--yes]
|
|
@@ -159,7 +159,7 @@ function generatePackageJson(projectName, { reactCompat, cssApproach }) {
|
|
|
159
159
|
const devDeps = {
|
|
160
160
|
vite: '^6.0.0',
|
|
161
161
|
'what-compiler': '^0.6.3',
|
|
162
|
-
'what-devtools-mcp': '^0.6.
|
|
162
|
+
'what-devtools-mcp': '^0.6.4',
|
|
163
163
|
'@babel/core': '^7.23.0',
|
|
164
164
|
};
|
|
165
165
|
|
|
@@ -826,7 +826,7 @@ function generateReadme(projectName, { reactCompat, cssApproach }) {
|
|
|
826
826
|
- Uses the What compiler for JSX transforms and automatic reactivity.
|
|
827
827
|
- Vite is preconfigured; use \`npm run dev/build/preview\`.
|
|
828
828
|
- Event handlers accept both \`onClick\` and \`onclick\`; docs and templates use \`onClick\`.
|
|
829
|
-
- Bun is also supported: \`bun create what@
|
|
829
|
+
- Bun is also supported: \`bun create what@backport\`, \`bun run dev\`.`;
|
|
830
830
|
|
|
831
831
|
if (reactCompat) {
|
|
832
832
|
notes += `
|