@tobiastengler/create-relay-app
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
import { getPackageManger, inferPackageManager, } from "./misc/packageManagers/index.js"; | ||
import { GenerateArtifactDirectoryTask, GenerateRelayEnvironmentTask, GenerateGraphQlSchemaFileTask, TaskRunner, ConfigureRelayCompilerTask, Cra_AddBabelMacroTypeDefinitionsTask, InstallNpmDependenciesTask, InstallNpmDevDependenciesTask, Next_ConfigureNextCompilerTask, Cra_AddRelayEnvironmentProvider, Vite_AddRelayEnvironmentProvider, Next_AddRelayEnvironmentProvider, ConfigureEolOfArtifactsTask, HTTP_ENDPOINT, WEBSOCKET_ENDPOINT, } from "./tasks/index.js"; | ||
import { GenerateArtifactDirectoryTask, GenerateRelayEnvironmentTask, GenerateGraphQlSchemaFileTask, TaskRunner, ConfigureRelayCompilerTask, Cra_AddBabelMacroTypeDefinitionsTask, InstallNpmDependenciesTask, InstallNpmDevDependenciesTask, Vite_ConfigureVitePluginRelayTask, Next_ConfigureNextCompilerTask, Cra_AddRelayEnvironmentProvider, Vite_AddRelayEnvironmentProvider, Next_AddRelayEnvironmentProvider, ConfigureEolOfArtifactsTask, HTTP_ENDPOINT, WEBSOCKET_ENDPOINT, } from "./tasks/index.js"; | ||
import { headline, h, importantHeadline, printError } from "./utils/index.js"; | ||
@@ -117,4 +117,3 @@ import { ProjectContext } from "./misc/ProjectContext.js"; | ||
new Cra_AddRelayEnvironmentProvider(context), | ||
// todo: re-add once vite-plugin-relay is fixed | ||
// new Vite_ConfigureVitePluginRelayTask(context), | ||
new Vite_ConfigureVitePluginRelayTask(context), | ||
new Vite_AddRelayEnvironmentProvider(context), | ||
@@ -165,14 +164,2 @@ new Next_ConfigureNextCompilerTask(context), | ||
} | ||
// todo: remove once vite-plugin-relay is fixed | ||
if (context.is("vite")) { | ||
console.log(); | ||
console.log(importantHeadline("Important")); | ||
console.log(); | ||
// prettier-ignore | ||
console.log(`${h("vite-plugin-relay")} is not functional at the moment.`); | ||
// prettier-ignore | ||
console.log(`You need to setup the Vite plugin yourself, by following this guide:`); | ||
// prettier-ignore | ||
console.log("https://github.com/tobias-tengler/create-relay-app/blob/main/docs/vite-plugin-setup.md"); | ||
} | ||
if (context.is("next")) { | ||
@@ -179,0 +166,0 @@ console.log(); |
import { TaskBase } from "./TaskBase.js"; | ||
import { BABEL_RELAY_PACKAGE } from "../consts.js"; | ||
import { BABEL_RELAY_PACKAGE, VITE_RELAY_PACKAGE } from "../consts.js"; | ||
import { h } from "../utils/cli.js"; | ||
@@ -32,8 +32,7 @@ export class InstallNpmDevDependenciesTask extends TaskBase { | ||
} | ||
// todo: re-add once vite-plugin-relay is fixed | ||
// if (this.context.is("vite")) { | ||
// relayDevDep.push(VITE_RELAY_PACKAGE); | ||
// } | ||
if (this.context.is("vite")) { | ||
relayDevDep.push(VITE_RELAY_PACKAGE); | ||
} | ||
return relayDevDep; | ||
} | ||
} |
{ | ||
"name": "@tobiastengler/create-relay-app", | ||
"version": "v0.0.6", | ||
"version": "v0.0.7", | ||
"description": "Easy configuration of Relay for existing projects", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/tobias-tengler/create-relay-app#readme", |
@@ -54,4 +54,3 @@ <h1 align="center" style="font-size: 30px;">create-relay-app</h1> | ||
- [Manual steps after running the script](./docs/steps-after-setup.md) | ||
- [Setting up the Vite plugin for Vite 3](./docs/vite-plugin-setup.md) | ||
- [Server-side data fetching with Next.js](./docs/next-server-data-fetching.md) | ||
- [babel-plugin-relay in combination with Create-React-App](./docs/cra-babel-setup.md) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
81178
1959
56