Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tobiastengler/create-relay-app

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tobiastengler/create-relay-app - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

17

dist/bin.js

@@ -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();

9

dist/tasks/InstallNpmDevDependenciesTask.js
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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc