
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@tobiastengler/create-relay-app
Advanced tools
Easy configuration of Relay for existing projects
Easy configuration of Relay.js for existing projects
Setting up Relay can be quite time consuming. The goal of this project is to automate all of the manual setup steps involved, to give you a fast and consistent configuration experience across the most popular React toolchains.
create-relay-app
supports:
Once you have scaffolded a project using your preferred toolchain of choice, simply execute the @tobiastengler/create-relay-app
script in the directory of your project:
npx @tobiastengler/create-relay-app
Note: We are working on getting the
create-relay-app
name!
This will prompt you for a bunch of questions around your project setup. If you do not want to specify these options interactively, you can also specify them through the CLI arguments. Passing -y
will infer all settings based on your project.
npx @tobiastengler/create-relay-app [options]
Skips any prompts and chooses default values for options that weren't supplied as CLI arguments.
The toolchain, e.g. bundler and configuration, your project was setup with.
Possible values
Example
--toolchain vite
If specified, we assume your project is built with Typescript.
Specifies the location of the GraphQL schema file inside of your project directory.
Possible values
A path relative to the root directory of your project and ending in the .graphql
extension.
Example
--schema-file ./src/schema.graphql
Specify the Node.js package manager to use when packages need to be installed.
Possible values
Example
--package-manager yarn
If specified, the script will not exit, if it's run in a directory with un-commited Git changes.
Displays the current version of the script.
Displays information about all of the available options.
If certain options are not specified as CLI arguments, we try to infer most of them from the directory you ran the script from.
If there is a next.config.js
file in the root directory of your project, we assume it's a Next.js project, unless specified otherwise.
If there is a vite.config.js
or vite.config.ts
file in the root directory of your project, we assume it's a Vite.js project, unless specified otherwise.
If none of the files above are matched, we assume it's a Create React App project, unless specified otherwise.
If the typescript
package is installed or there is a tsconfig.json
file in the root directory of your project, we assume you are using Typescript, unless specified otherwise.
If you run the script using yarn
or pnpm
, we use them as the default.
If we can't determine which package manger has run the script, we choose:
yarn
, if yarn
is installed and a yarn.lock
file exists at the root of the project.pnpm
, if pnpm
is installed and a pnpm-lock.yml
file exists at the root of the project.npm
in all other cases../schema.graphql
, unless specified otherwise.
false
, unless specified.
false
, unless specified.
FAQs
Easy configuration of Relay for existing projects
We found that @tobiastengler/create-relay-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.