UNPKG

@strapi/strapi

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite

1 lines 1.01 kB
{"version":3,"file":"generate.mjs","sources":["../../../../../src/cli/commands/templates/generate.ts"],"sourcesContent":["import { createCommand } from 'commander';\n\nimport type { StrapiCommand } from '../../types';\n\n/**\n *`$ strapi templates:generate <directory>`\n */\nconst command: StrapiCommand = () => {\n return createCommand('templates:generate <directory>')\n .description('(deprecated) Generate template from Strapi project')\n .action(() => {\n console.warn('This command is deprecated and will be removed in the next major release.');\n console.warn('You can now copy an existing app and use it as a template.');\n });\n};\n\nexport { command };\n"],"names":["command","createCommand","description","action","console","warn"],"mappings":";;AAIA;;AAEC,UACKA,OAAyB,GAAA,IAAA;AAC7B,IAAA,OAAOC,cAAc,gCAClBC,CAAAA,CAAAA,WAAW,CAAC,oDAAA,CAAA,CACZC,MAAM,CAAC,IAAA;AACNC,QAAAA,OAAAA,CAAQC,IAAI,CAAC,2EAAA,CAAA;AACbD,QAAAA,OAAAA,CAAQC,IAAI,CAAC,4DAAA,CAAA;AACf,KAAA,CAAA;AACJ;;;;"}