From b20a296b6eb2a1b58e702269f60dfbc343485fee Mon Sep 17 00:00:00 2001 From: timdeschryver <28659384+timdeschryver@users.noreply.github.com> Date: Tue, 24 Dec 2019 13:23:25 +0100 Subject: [PATCH 1/2] feat(schematics): add prompts --- schematics/scully/src/add-post/schema.json | 26 +++++++++---------- .../scully/src/create-markdown/schema.json | 6 +++-- schematics/scully/src/ng-add/schema.json | 23 ++++++++-------- 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/schematics/scully/src/add-post/schema.json b/schematics/scully/src/add-post/schema.json index 204a4aa4c..8cb50a5c0 100644 --- a/schematics/scully/src/add-post/schema.json +++ b/schematics/scully/src/add-post/schema.json @@ -1,14 +1,14 @@ - { - "$schema": "http://json-schema.org/schema", - "id": "Scully-ng-add-blog", - "title": "Scully ng-add-blog schematic", - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "add the title for the post" - } - }, - "required": [] - } + "$schema": "http://json-schema.org/schema", + "id": "Scully-ng-add-blog", + "title": "Scully ng-add-blog schematic", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "add the title for the post", + "x-prompt": "What should be the title for the post?" + } + }, + "required": [] +} diff --git a/schematics/scully/src/create-markdown/schema.json b/schematics/scully/src/create-markdown/schema.json index c5d477e6c..1306c7550 100644 --- a/schematics/scully/src/create-markdown/schema.json +++ b/schematics/scully/src/create-markdown/schema.json @@ -12,11 +12,13 @@ }, "name": { "type": "string", - "description": "add the name for the folder and module" + "description": "add the name for the folder and module", + "x-prompt": "What should be the name for the folder and module?" }, "slug": { "type": "string", - "description": "add the name for the :${slug}" + "description": "add the name for the :${slug}", + "x-prompt": "What should be the slug for the markdown?" } }, "required": [] diff --git a/schematics/scully/src/ng-add/schema.json b/schematics/scully/src/ng-add/schema.json index 640d11330..88586f643 100644 --- a/schematics/scully/src/ng-add/schema.json +++ b/schematics/scully/src/ng-add/schema.json @@ -1,13 +1,14 @@ { - "$schema": "http://json-schema.org/schema", - "id": "scully-ng-add", - "title": "scully ng-add schematic", - "type": "object", - "properties": { - "blog": { - "type": "boolean", - "description": "add full blog" - } - }, - "required": [] + "$schema": "http://json-schema.org/schema", + "id": "scully-ng-add", + "title": "scully ng-add schematic", + "type": "object", + "properties": { + "blog": { + "type": "boolean", + "description": "add full blog", + "x-prompt": "Should we set up a blog for you?" + } + }, + "required": [] } From 11ec08f44b4cf9c9274c63b967c9842f29b46309 Mon Sep 17 00:00:00 2001 From: timdeschryver <28659384+timdeschryver@users.noreply.github.com> Date: Fri, 27 Dec 2019 16:29:37 +0100 Subject: [PATCH 2/2] feat(schematics): grammar review changes --- schematics/scully/src/add-post/schema.json | 2 +- schematics/scully/src/create-markdown/schema.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schematics/scully/src/add-post/schema.json b/schematics/scully/src/add-post/schema.json index 8cb50a5c0..5f2650210 100644 --- a/schematics/scully/src/add-post/schema.json +++ b/schematics/scully/src/add-post/schema.json @@ -7,7 +7,7 @@ "name": { "type": "string", "description": "add the title for the post", - "x-prompt": "What should be the title for the post?" + "x-prompt": "What title do you want to use for the post?" } }, "required": [] diff --git a/schematics/scully/src/create-markdown/schema.json b/schematics/scully/src/create-markdown/schema.json index 1306c7550..1f70cdb0d 100644 --- a/schematics/scully/src/create-markdown/schema.json +++ b/schematics/scully/src/create-markdown/schema.json @@ -13,12 +13,12 @@ "name": { "type": "string", "description": "add the name for the folder and module", - "x-prompt": "What should be the name for the folder and module?" + "x-prompt": "What name do you want to use for the folder and module?" }, "slug": { "type": "string", "description": "add the name for the :${slug}", - "x-prompt": "What should be the slug for the markdown?" + "x-prompt": "What slug do you want for the markdown file?" } }, "required": []