@quilted/create 0.2.3 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @quilted/create
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b9ba7d4d`](https://github.com/lemonmade/quilt/commit/b9ba7d4d5366137f57f10db10aa0ea98b5e07971) Thanks [@lemonmade](https://github.com/lemonmade)! - Add build commands to more project templates
8
+
9
+ - [`b1f57043`](https://github.com/lemonmade/quilt/commit/b1f5704339033bbb9add8f35f7b58db586648ccc) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix GraphQL template
10
+
3
11
  ## 0.2.3
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quilted/create",
3
3
  "type": "module",
4
- "version": "0.2.3",
4
+ "version": "0.2.4",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -4,6 +4,7 @@
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
6
  "scripts": {
7
+ "build": "rollup --config ./rollup.config.js",
7
8
  "start": "node ./build/server/server.js"
8
9
  },
9
10
  "dependencies": {},
@@ -4,6 +4,7 @@
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
6
  "scripts": {
7
+ "build": "rollup --config ./rollup.config.js",
7
8
  "start": "node ./build/server/server.js"
8
9
  },
9
10
  "dependencies": {},
@@ -4,7 +4,7 @@ import {HTML} from '@quilted/quilt/html';
4
4
  import {Routing, useRoutes} from '@quilted/quilt/navigate';
5
5
  import {Localization, useLocaleFromEnvironment} from '@quilted/quilt/localize';
6
6
  import {type PropsWithChildren} from '@quilted/quilt/react/tools';
7
- import {GraphQLContext, type GraphQLFetch} from '@quilted/quilt/graphql';
7
+ import {GraphQLContext, type GraphQLRun} from '@quilted/quilt/graphql';
8
8
 
9
9
  import {ReactQueryContext} from '@quilted/react-query';
10
10
  import {QueryClient} from '@tanstack/react-query';
@@ -21,7 +21,7 @@ import {
21
21
  } from './shared/context.ts';
22
22
 
23
23
  export interface AppProps extends AppContextType {
24
- fetchGraphQL: GraphQLFetch;
24
+ fetchGraphQL: GraphQLRun;
25
25
  }
26
26
 
27
27
  // The root component for your application. You will typically render any
@@ -1,7 +1,7 @@
1
1
  import '@quilted/quilt/globals';
2
2
 
3
3
  import {hydrateRoot} from 'react-dom/client';
4
- import {createGraphQLFetchOverHTTP} from '@quilted/quilt/graphql';
4
+ import {createGraphQLFetch} from '@quilted/quilt/graphql';
5
5
 
6
6
  import {App} from './App.tsx';
7
7
 
@@ -9,5 +9,5 @@ const element = document.querySelector('#app')!;
9
9
 
10
10
  hydrateRoot(
11
11
  element,
12
- <App fetchGraphQL={createGraphQLFetchOverHTTP({url: '/api/graphql'})} />,
12
+ <App fetchGraphQL={createGraphQLFetch({url: '/api/graphql'})} />,
13
13
  );
@@ -4,6 +4,7 @@
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
6
  "scripts": {
7
+ "build": "rollup --config ./rollup.config.js",
7
8
  "start": "node ./build/server/server.js"
8
9
  },
9
10
  "dependencies": {},
@@ -1,7 +1,7 @@
1
1
  import {graphql} from 'graphql';
2
2
  import {
3
3
  toGraphQLSource,
4
- type GraphQLFetch,
4
+ type GraphQLRun,
5
5
  type GraphQLResult,
6
6
  } from '@quilted/quilt/graphql';
7
7
  import {
@@ -30,7 +30,7 @@ const Query = createQueryResolver({
30
30
 
31
31
  const schema = createGraphQLSchema(schemaSource, {Query, Person});
32
32
 
33
- export const performGraphQLOperation: GraphQLFetch =
33
+ export const performGraphQLOperation: GraphQLRun =
34
34
  async function performGraphQLOperation(operation, options) {
35
35
  const result = await graphql({
36
36
  schema,
@@ -4,6 +4,7 @@
4
4
  "version": "0.0.0",
5
5
  "private": true,
6
6
  "scripts": {
7
+ "build": "rollup --config ./rollup.config.js",
7
8
  "start": "node ./build/server/server.js"
8
9
  },
9
10
  "dependencies": {},
@@ -7,7 +7,7 @@
7
7
  "version": "0.0.0",
8
8
  "private": true,
9
9
  "scripts": {
10
- "build": "rollup --config rollup.config.js"
10
+ "build": "rollup --config ./rollup.config.js"
11
11
  },
12
12
  "dependencies": {},
13
13
  "devDependencies": {
@@ -26,7 +26,7 @@
26
26
  "types": "./build/typescript/index.d.ts",
27
27
  "sideEffects": false,
28
28
  "scripts": {
29
- "build": "rollup --config rollup.config.js"
29
+ "build": "rollup --config ./rollup.config.js"
30
30
  },
31
31
  "dependencies": {
32
32
  "@types/react": "^17.0.0 || ^18.0.0"
@@ -3,6 +3,9 @@
3
3
  "version": "0.0.0",
4
4
  "type": "module",
5
5
  "private": true,
6
+ "scripts": {
7
+ "build": "rollup --config ./rollup.config.js"
8
+ },
6
9
  "devDependencies": {
7
10
  "@quilted/quilt": "^0.5.0"
8
11
  },