create-harper 0.0.8 → 0.0.10
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 +5 -19
- package/lib/constants/helpMessage.js +0 -2
- package/lib/steps/checkForUpdate.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,41 +41,27 @@ You can also directly specify the project name and the template you want to use
|
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
43
|
# npm 7+, extra double-dash is needed:
|
|
44
|
-
npm create harper@latest my-
|
|
44
|
+
npm create harper@latest my-react-app -- --template react-ts
|
|
45
45
|
|
|
46
46
|
# yarn
|
|
47
|
-
yarn create harper my-
|
|
47
|
+
yarn create harper my-react-app --template react-ts
|
|
48
48
|
|
|
49
49
|
# pnpm
|
|
50
|
-
pnpm create harper my-
|
|
50
|
+
pnpm create harper my-react-app --template react-ts
|
|
51
51
|
|
|
52
52
|
# Bun
|
|
53
|
-
bun create harper my-
|
|
53
|
+
bun create harper my-react-app --template react-ts
|
|
54
54
|
|
|
55
55
|
# Deno
|
|
56
|
-
deno init --npm harper my-
|
|
56
|
+
deno init --npm harper my-react-app --template react-ts
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
Currently supported template presets include:
|
|
60
60
|
|
|
61
61
|
- `vanilla`
|
|
62
62
|
- `vanilla-ts`
|
|
63
|
-
- `vue`
|
|
64
|
-
- `vue-ts`
|
|
65
63
|
- `react`
|
|
66
64
|
- `react-ts`
|
|
67
|
-
- `react-swc`
|
|
68
|
-
- `react-swc-ts`
|
|
69
|
-
- `preact`
|
|
70
|
-
- `preact-ts`
|
|
71
|
-
- `lit`
|
|
72
|
-
- `lit-ts`
|
|
73
|
-
- `svelte`
|
|
74
|
-
- `svelte-ts`
|
|
75
|
-
- `solid`
|
|
76
|
-
- `solid-ts`
|
|
77
|
-
- `qwik`
|
|
78
|
-
- `qwik-ts`
|
|
79
65
|
|
|
80
66
|
You can use `.` for the project name to scaffold in the current directory.
|
|
81
67
|
|
|
@@ -24,12 +24,12 @@ export async function checkForUpdate() {
|
|
|
24
24
|
if (latestVersion && isVersionNewer(latestVersion, currentVersion)) {
|
|
25
25
|
console.log(
|
|
26
26
|
pc.yellow(
|
|
27
|
-
`\
|
|
27
|
+
`\nA new version of ${pc.bold(pkg.name)} is available! (${pc.dim(currentVersion)} -> ${
|
|
28
28
|
pc.green(latestVersion)
|
|
29
29
|
})`,
|
|
30
30
|
),
|
|
31
31
|
);
|
|
32
|
-
console.log(`
|
|
32
|
+
console.log(`Automatically updating to the latest version...\n`);
|
|
33
33
|
|
|
34
34
|
// Clear the npx cache for this package to ensure we get the latest version
|
|
35
35
|
const lsResult = spawn.sync('npm', ['cache', 'npx', 'ls', pkg.name], {
|