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

Function createFileBlocks

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

Source from the content-addressed store, hash-verified

76};
77
78const createFileBlocks = (opts: InitOptions = {}) => {
79 const filepath = 'src/blocks.js';
80 const blkSrc = resolveLocal(filepath);
81 const blkDst = resolveRoot(filepath);
82 opts.blocks && fs.copyFileSync(blkSrc, blkDst);
83};
84
85const createI18n = (opts = {}) => {
86 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