MCPcopy
hub / github.com/GrapesJS/grapesjs / createFileBlocks

Function createFileBlocks

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

Source from the content-addressed store, hash-verified

79};
80
81const createFileBlocks = (opts: InitOptions = {}) => {
82 const filepath = 'src/blocks.js';
83 const blkSrc = resolveLocal(filepath);
84 const blkDst = resolveRoot(filepath);
85 opts.blocks && fs.copyFileSync(blkSrc, blkDst);
86};
87
88const createI18n = (opts = {}) => {
89 const enPath = 'src/locale/en.js';

Callers 1

initPluginFunction · 0.85

Calls 2

resolveLocalFunction · 0.85
resolveRootFunction · 0.85

Tested by

no test coverage detected