create-harper 1.5.22 → 1.5.24
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 -0
- package/lib/install.js +0 -8
- package/lib/steps/getRunAppImmediately.js +1 -1
- package/package.json +1 -1
- package/template-react/README.md +1 -1
- package/template-react/config.yaml +1 -1
- package/template-react/graphql.config.yml +1 -1
- package/template-react-ts/README.md +2 -6
- package/template-react-ts/config.yaml +1 -1
- package/template-react-ts/graphql.config.yml +1 -1
- package/template-vanilla/README.md +1 -1
- package/template-vanilla/config.yaml +1 -1
- package/template-vanilla/graphql.config.yml +1 -1
- package/template-vanilla-ts/README.md +2 -6
- package/template-vanilla-ts/config.yaml +1 -1
- package/template-vanilla-ts/graphql.config.yml +1 -1
- package/template-vue/README.md +1 -1
- package/template-vue/config.yaml +1 -1
- package/template-vue/graphql.config.yml +1 -1
- package/template-vue-ts/README.md +2 -6
- package/template-vue-ts/config.yaml +1 -1
- package/template-vue-ts/graphql.config.yml +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
<a href="https://npmjs.com/package/create-harper"><img src="https://img.shields.io/npm/v/create-harper" alt="npm package"></a>
|
|
4
4
|
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
Before you begin, ensure you have the following tools installed on your machine:
|
|
8
|
+
|
|
9
|
+
- **Node.js**: `create-harper` requires a LTS version of Node.js, such as v22 or higher. You can download it from [nodejs.org](https://nodejs.org/).
|
|
10
|
+
- **Git**: You can install it from [git-scm.com](https://git-scm.com/).
|
|
11
|
+
- **Common Build Tools**: On some systems (like Linux or macOS), you might need additional build tools (e.g., `make`, `gcc`, `g++`) to install certain dependencies. These are often included in packages like `build-essential` on Ubuntu or via Xcode Command Line Tools on macOS.
|
|
12
|
+
|
|
5
13
|
## Scaffolding Your First Harper Project
|
|
6
14
|
|
|
7
15
|
With NPM:
|
package/lib/install.js
CHANGED
|
@@ -46,12 +46,4 @@ export function install(root, agent, selectedSkills = [], selectedAgents = []) {
|
|
|
46
46
|
stdio: 'inherit',
|
|
47
47
|
cwd: root,
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
if (agent === 'npm') {
|
|
51
|
-
prompts.log.step(`Linking harperdb with ${agent}...`);
|
|
52
|
-
run([agent, 'link', 'harperdb'], {
|
|
53
|
-
stdio: 'inherit',
|
|
54
|
-
cwd: root,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
49
|
}
|
|
@@ -24,7 +24,7 @@ export async function getRunAppImmediately(argImmediate, interactive, pkgManager
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
if (shouldInstallHarper) {
|
|
27
|
-
const installCommand = getGlobalInstallCommand(pkgManager, '
|
|
27
|
+
const installCommand = getGlobalInstallCommand(pkgManager, 'harper');
|
|
28
28
|
prompts.log.step(`Installing Harper CLI with ${pkgManager}...`);
|
|
29
29
|
const installResult = spawn.sync(installCommand[0], installCommand.slice(1), { stdio: 'inherit' });
|
|
30
30
|
if (installResult.status === 0) {
|
package/package.json
CHANGED
package/template-react/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# yaml-language-server: $schema=./node_modules/
|
|
1
|
+
# yaml-language-server: $schema=./node_modules/harper/config-app.schema.json
|
|
2
2
|
|
|
3
3
|
# This is the configuration file for the application.
|
|
4
4
|
# It specifies built-in Harper components that will load the specified feature and files.
|
|
@@ -9,7 +9,7 @@ Here's what you should do next:
|
|
|
9
9
|
To get started, make sure you have [installed Harper](https://docs.harperdb.io/docs/deployments/install-harper):
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm install -g
|
|
12
|
+
npm install -g harper
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Development
|
|
@@ -37,11 +37,7 @@ These schemas are the heart of a great Harper app, specifying which tables you w
|
|
|
37
37
|
2. Customize your resource:
|
|
38
38
|
|
|
39
39
|
```typescript
|
|
40
|
-
import {
|
|
41
|
-
type RecordObject,
|
|
42
|
-
type RequestTargetOrId,
|
|
43
|
-
Resource,
|
|
44
|
-
} from 'harperdb';
|
|
40
|
+
import { type RecordObject, type RequestTargetOrId, Resource } from 'harper';
|
|
45
41
|
|
|
46
42
|
interface GreetingRecord {
|
|
47
43
|
greeting: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# yaml-language-server: $schema=./node_modules/
|
|
1
|
+
# yaml-language-server: $schema=./node_modules/harper/config-app.schema.json
|
|
2
2
|
|
|
3
3
|
# This is the configuration file for the application.
|
|
4
4
|
# It specifies built-in Harper components that will load the specified feature and files.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# yaml-language-server: $schema=./node_modules/
|
|
1
|
+
# yaml-language-server: $schema=./node_modules/harper/config-app.schema.json
|
|
2
2
|
|
|
3
3
|
# This is the configuration file for the application.
|
|
4
4
|
# It specifies built-in Harper components that will load the specified feature and files.
|
|
@@ -9,7 +9,7 @@ Here's what you should do next:
|
|
|
9
9
|
To get started, make sure you have [installed Harper](https://docs.harperdb.io/docs/deployments/install-harper):
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm install -g
|
|
12
|
+
npm install -g harper
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Development
|
|
@@ -37,11 +37,7 @@ These schemas are the heart of a great Harper app, specifying which tables you w
|
|
|
37
37
|
2. Customize your resource:
|
|
38
38
|
|
|
39
39
|
```typescript
|
|
40
|
-
import {
|
|
41
|
-
type RecordObject,
|
|
42
|
-
type RequestTargetOrId,
|
|
43
|
-
Resource,
|
|
44
|
-
} from 'harperdb';
|
|
40
|
+
import { type RecordObject, type RequestTargetOrId, Resource } from 'harper';
|
|
45
41
|
|
|
46
42
|
interface GreetingRecord {
|
|
47
43
|
greeting: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# yaml-language-server: $schema=./node_modules/
|
|
1
|
+
# yaml-language-server: $schema=./node_modules/harper/config-app.schema.json
|
|
2
2
|
|
|
3
3
|
# This is the configuration file for the application.
|
|
4
4
|
# It specifies built-in Harper components that will load the specified feature and files.
|
package/template-vue/README.md
CHANGED
package/template-vue/config.yaml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# yaml-language-server: $schema=./node_modules/
|
|
1
|
+
# yaml-language-server: $schema=./node_modules/harper/config-app.schema.json
|
|
2
2
|
|
|
3
3
|
# This is the configuration file for the application.
|
|
4
4
|
# It specifies built-in Harper components that will load the specified feature and files.
|
|
@@ -9,7 +9,7 @@ Here's what you should do next:
|
|
|
9
9
|
To get started, make sure you have [installed Harper](https://docs.harperdb.io/docs/deployments/install-harper):
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm install -g
|
|
12
|
+
npm install -g harper
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Development
|
|
@@ -37,11 +37,7 @@ These schemas are the heart of a great Harper app, specifying which tables you w
|
|
|
37
37
|
2. Customize your resource:
|
|
38
38
|
|
|
39
39
|
```typescript
|
|
40
|
-
import {
|
|
41
|
-
type RecordObject,
|
|
42
|
-
type RequestTargetOrId,
|
|
43
|
-
Resource,
|
|
44
|
-
} from 'harperdb';
|
|
40
|
+
import { type RecordObject, type RequestTargetOrId, Resource } from 'harper';
|
|
45
41
|
|
|
46
42
|
interface GreetingRecord {
|
|
47
43
|
greeting: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# yaml-language-server: $schema=./node_modules/
|
|
1
|
+
# yaml-language-server: $schema=./node_modules/harper/config-app.schema.json
|
|
2
2
|
|
|
3
3
|
# This is the configuration file for the application.
|
|
4
4
|
# It specifies built-in Harper components that will load the specified feature and files.
|