MCPcopy Create free account
hub / github.com/GrapesJS/cli / createFileComponents

Function createFileComponents

src/init.ts:71–76  ·  view source on GitHub ↗
(opts: InitOptions = {})

Source from the content-addressed store, hash-verified

69};
70
71const createFileComponents = (opts: InitOptions = {}) => {
72 const filepath = 'src/components.js';
73 const cmpSrc = resolveLocal(filepath);
74 const cmpDst = resolveRoot(filepath);
75 opts.components && fs.copyFileSync(cmpSrc, cmpDst);
76};
77
78const createFileBlocks = (opts: InitOptions = {}) => {
79 const filepath = 'src/blocks.js';

Callers 1

initPluginFunction · 0.85

Calls 2

resolveLocalFunction · 0.85
resolveRootFunction · 0.85

Tested by

no test coverage detected