node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

38
server/node_modules/@strapi/generators/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,38 @@
'use strict';
var node_path = require('node:path');
var nodePlop = require('node-plop');
// Starts the Plop CLI programmatically
const runCLI = async ()=>{
const { Plop, run } = await import('plop');
Plop.prepare({
configPath: node_path.join(__dirname, 'plopfile.js')
}, (env)=>{
const argv = process.argv.slice(2); // Extract command-line arguments
Plop.execute(env, argv, (env, argv)=>{
const options = {
...env,
dest: node_path.join(process.cwd(), 'src')
};
return run(options, argv, true); // Pass the third argument 'true' for passArgsBeforeDashes
});
});
};
// Runs a generator programmatically without prompts
const generate = async (generatorName, options, { dir = process.cwd(), plopFile = 'plopfile.js' } = {})=>{
const plop = nodePlop(node_path.join(__dirname, plopFile), {
destBasePath: node_path.join(dir, 'src'),
force: false
});
const generator = plop.getGenerator(generatorName);
await generator.runActions(options, {
onSuccess () {},
onFailure () {},
onComment () {}
});
};
exports.generate = generate;
exports.runCLI = runCLI;
//# sourceMappingURL=index.js.map