create-harper 0.4.2 → 0.4.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.
@@ -3,7 +3,6 @@ import colors from 'picocolors';
3
3
  const {
4
4
  blue,
5
5
  cyan,
6
- gray,
7
6
  yellow,
8
7
  } = colors;
9
8
 
@@ -20,7 +19,6 @@ const {
20
19
  * @property {string} display - The display name of the framework.
21
20
  * @property {(str: string | number) => string} color - A function to color the display name.
22
21
  * @property {Variant[]} variants - The available variants for this framework.
23
- * @property {boolean} [hidden] - Whether this framework should be hidden from the main selection.
24
22
  */
25
23
 
26
24
  /**
@@ -62,22 +60,4 @@ export const frameworks = [
62
60
  },
63
61
  ],
64
62
  },
65
- {
66
- name: 'studio',
67
- hidden: true,
68
- display: 'Studio',
69
- color: gray,
70
- variants: [
71
- {
72
- name: 'studio-ts',
73
- display: 'TypeScript',
74
- color: gray,
75
- },
76
- {
77
- name: 'studio',
78
- display: 'JavaScript',
79
- color: gray,
80
- },
81
- ],
82
- },
83
63
  ];
@@ -12,7 +12,7 @@ import { getGlobalInstallCommand } from '../pkg/getGlobalInstallCommand.js';
12
12
  */
13
13
  export async function getRunAppImmediately(argImmediate, interactive, pkgManager) {
14
14
  if (interactive) {
15
- const harperInstalled = spawn.sync('harper', ['--version'], { stdio: 'ignore' }).status === 0;
15
+ const harperInstalled = spawn.sync('harper', ['version'], { stdio: 'ignore' }).status === 0;
16
16
  if (!harperInstalled) {
17
17
  const shouldInstallHarper = await prompts.confirm({
18
18
  message: 'Harper CLI not found. Would you like to install it?',
@@ -25,7 +25,6 @@ export async function getTemplate(argTemplate, interactive) {
25
25
  ? `"${argTemplate}" isn't a valid template. Please choose from below: `
26
26
  : 'Select a framework:',
27
27
  options: frameworks
28
- .filter(framework => !framework.hidden)
29
28
  .map((framework) => {
30
29
  const frameworkColor = framework.color;
31
30
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-harper",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "HarperDB",
@@ -24,19 +24,15 @@ For more information on Harper Components, see the [Components documentation](ht
24
24
 
25
25
  Take a look at the [default configuration](./config.yaml), which specifies how files are handled in your application.
26
26
 
27
- The [schema.graphql](./schema.graphql) is the table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
27
+ The [schemas/exampleTable.graphql](schemas/exampleTable.graphql) is an example table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
28
28
 
29
- The [resources.js](resources.ts) provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.
29
+ The [resources/greeting.js](resources/greeting.js) provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.
30
30
 
31
31
  ## Deployment
32
32
 
33
33
  When you are ready, head to [https://fabric.harper.fast/](https://fabric.harper.fast/), log in to your account, and create a cluster.
34
34
 
35
- Set up your .env file with your secure cluster credentials. Don't commit this file to source control!
36
-
37
- ```sh
38
- npm run login
39
- ```
35
+ Make sure you've configured your [.env](.env) file with your secure cluster credentials. Don't commit this file to source control!
40
36
 
41
37
  Then you can deploy your app to your cluster:
42
38
 
@@ -24,19 +24,15 @@ For more information on Harper Components, see the [Components documentation](ht
24
24
 
25
25
  Take a look at the [default configuration](./config.yaml), which specifies how files are handled in your application.
26
26
 
27
- The [schema.graphql](./schema.graphql) is the table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
27
+ The [schemas/exampleTable.graphql](schemas/exampleTable.graphql) is an example table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
28
28
 
29
- The [resources.js](resources.ts) provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.
29
+ The [resources/greeting.ts](resources/greeting.ts) provides a template for defining TypeScript resource classes, for customized application logic in your endpoints.
30
30
 
31
31
  ## Deployment
32
32
 
33
33
  When you are ready, head to [https://fabric.harper.fast/](https://fabric.harper.fast/), log in to your account, and create a cluster.
34
34
 
35
- Set up your .env file with your secure cluster credentials. Don't commit this file to source control!
36
-
37
- ```sh
38
- npm run login
39
- ```
35
+ Make sure you've configured your [.env](.env) file with your secure cluster credentials. Don't commit this file to source control!
40
36
 
41
37
  Then you can deploy your app to your cluster:
42
38
 
@@ -36,19 +36,15 @@ For more information on Harper Components, see the [Components documentation](ht
36
36
 
37
37
  Take a look at the [default configuration](./config.yaml), which specifies how files are handled in your application.
38
38
 
39
- The [schema.graphql](./schema.graphql) is the table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
39
+ The [schemas/exampleTable.graphql](schemas/exampleTable.graphql) is an example table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
40
40
 
41
- The [resources.js](resources/greeting.js) provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.
41
+ The [resources/greeting.js](resources/greeting.js) provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.
42
42
 
43
43
  ## Deployment
44
44
 
45
45
  When you are ready, head to [https://fabric.harper.fast/](https://fabric.harper.fast/), log in to your account, and create a cluster.
46
46
 
47
- Set up your .env file with your secure cluster credentials. Don't commit this file to source control!
48
-
49
- ```sh
50
- npm run login
51
- ```
47
+ Make sure you've configured your [.env](.env) file with your secure cluster credentials. Don't commit this file to source control!
52
48
 
53
49
  Then you can deploy your app to your cluster:
54
50
 
@@ -36,19 +36,15 @@ For more information on Harper Components, see the [Components documentation](ht
36
36
 
37
37
  Take a look at the [default configuration](./config.yaml), which specifies how files are handled in your application.
38
38
 
39
- The [schema.graphql](schemas/exampleTable.graphql) is the table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
39
+ The [schemas/exampleTable.graphql](schemas/exampleTable.graphql) is an example table schema definition. This is the main starting point for defining your database schema, specifying which tables you want and what attributes/fields they should have.
40
40
 
41
- The [resources.js](resources/greeting.ts) provides a template for defining JavaScript resource classes, for customized application logic in your endpoints.
41
+ The [resources/greeting.ts](resources/greeting.ts) provides a template for defining TypeScript resource classes, for customized application logic in your endpoints.
42
42
 
43
43
  ## Deployment
44
44
 
45
45
  When you are ready, head to [https://fabric.harper.fast/](https://fabric.harper.fast/), log in to your account, and create a cluster.
46
46
 
47
- Set up your .env file with your secure cluster credentials. Don't commit this file to source control!
48
-
49
- ```sh
50
- npm run login
51
- ```
47
+ Make sure you've configured your [.env](.env) file with your secure cluster credentials. Don't commit this file to source control!
52
48
 
53
49
  Then you can deploy your app to your cluster:
54
50