MCPcopy Index your code
hub / github.com/GrapesJS/grapesjs / createFileComponents

Function createFileComponents

packages/cli/src/init.ts:74–79  ·  view source on GitHub ↗
(opts: InitOptions = {})

Source from the content-addressed store, hash-verified

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

Callers 1

initPluginFunction · 0.85

Calls 2

resolveLocalFunction · 0.85
resolveRootFunction · 0.85

Tested by

no test coverage detected