@shopify/cli
Version:
A CLI tool to build for the Shopify platform
3 lines (2 loc) • 470 B
JavaScript
import{Gb as e,Ib as r,Qb as n,Ta as o,ua as g,wa as d}from"./chunk-N5PQPIBF.js";import{d as i}from"./chunk-IU2ZQ6TE.js";import{g as s}from"./chunk-VPRTJUIN.js";s();var f=".shopify";async function E(p){let t=i(p,f),a=i(t,".gitignore"),[h,u]=await Promise.all([o(t),o(a)]);return h||(n(r`Creating hidden .shopify folder at ${e.path(t)}...`),await d(t)),u||(n(r`Creating .gitignore in ${e.path(t)}...`),await g(a,`# Ignore the entire ${f} directory
*`)),t}export{E as a};