UNPKG

create-shop-app

Version:

A command line tool to generate Shopify app boilerplate

16 lines (11 loc) 397 B
import path from "path"; import fs from "fs-extra"; import constants from "../constants.js"; const { packageRoot } = constants; const addGraphqlClient = async ({ projectDir, graphqlTech }) => { // "apollo_client" // "react_query" const gqlFileSrc = path.join(packageRoot, `template/graphql/${graphqlTech}`); await fs.copy(gqlFileSrc, projectDir); }; export { addGraphqlClient };