@mrktg/project-generator 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrktg/project-generator",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Движок генератора лендингов: вопросы, шаблон Astro, подстановка. Бренды, регионы и региональные оверлеи приходят от региональных генераторов.",
5
5
  "type": "module",
6
6
  "files": [
package/src/args.js CHANGED
@@ -35,7 +35,7 @@ export const readArgs = (argv) => {
35
35
 
36
36
  export const buildHelp = ({ command, registry }) => `
37
37
  Использование:
38
- npm create ${command.replace(/^create-/, '')} [имя-проекта | .] [-- флаги]
38
+ npm create ${command.replace(/(^|\/)create-/, '$1')} [имя-проекта | .] [-- флаги]
39
39
 
40
40
  Флаги (каждый заменяет соответствующий вопрос):
41
41
  --brand <id> бренд: ${registry.brands.map((brand) => `${brand.id} (${brand.title.en})`).join(', ')}
package/src/cli.js CHANGED
@@ -18,7 +18,7 @@ const run = (cmd, args, cwd) =>
18
18
  * всё это приходит в config от регионального пакета.
19
19
  *
20
20
  * config:
21
- * command имя команды для справки, например create-xx-project
21
+ * command имя пакета генератора, например @scope/create-project: печатается в шапке и в справке
22
22
  * registry реестр брендов региона (brands-core IRegistry)
23
23
  * region регион с host, bucketHost, componentsPackage
24
24
  * templateDir папка регионального оверлея шаблона (кладётся поверх template/base движка)