@toptal/davinci-code 2.0.5 → 2.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1937](https://github.com/toptal/davinci/pull/1937) [`8b6806a6`](https://github.com/toptal/davinci/commit/8b6806a6ad1ef3f190e1e9e6a287aed12970b27f) Thanks [@dmaklygin](https://github.com/dmaklygin)! - ---
8
+
9
+ - apply identical formatting and success messages to all command logs.
10
+
11
+ - Updated dependencies [[`8b6806a6`](https://github.com/toptal/davinci/commit/8b6806a6ad1ef3f190e1e9e6a287aed12970b27f)]:
12
+ - @toptal/davinci-cli-shared@2.2.3
13
+
3
14
  ## 2.0.5
4
15
 
5
16
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-code",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Code generation package for frontend applications",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -32,7 +32,7 @@
32
32
  "url": "https://github.com/toptal/davinci/issues"
33
33
  },
34
34
  "dependencies": {
35
- "@toptal/davinci-cli-shared": "2.2.2",
35
+ "@toptal/davinci-cli-shared": "2.2.3",
36
36
  "hygen": "^6.2.11",
37
37
  "lodash.camelcase": "^4.3.0",
38
38
  "lodash.kebabcase": "^4.1.1"
@@ -19,7 +19,7 @@ const componentCommandCreator = {
19
19
  const componentModuleName = kebabCase(moduleName)
20
20
  const template = camelCase(templateName)
21
21
 
22
- print.green(
22
+ print.header(
23
23
  'Creating new',
24
24
  componentName,
25
25
  'in the module',
@@ -28,7 +28,9 @@ const componentCommandCreator = {
28
28
  template
29
29
  )
30
30
 
31
- return templates.generate(template, componentName, componentModuleName)
31
+ templates.generate(template, componentName, componentModuleName)
32
+
33
+ print.success('Done!')
32
34
  },
33
35
  }
34
36
 
@@ -13,9 +13,11 @@ const moduleCommandCreator = {
13
13
  action: (name) => {
14
14
  const moduleName = kebabCase(name)
15
15
 
16
- print.green('Creating new module:', moduleName)
16
+ print.header('Creating new module:', moduleName)
17
17
 
18
- return templates.generateModule(moduleName)
18
+ templates.generateModule(moduleName)
19
+
20
+ print.success('Done!')
19
21
  },
20
22
  }
21
23
 
@@ -21,12 +21,14 @@ const storiesCommandCreator = {
21
21
  throw e
22
22
  }
23
23
 
24
- print.green(
24
+ print.header(
25
25
  'Creating new stories file for component at:',
26
26
  componentDirectory
27
27
  )
28
28
 
29
- return templates.generate('stories', componentDirectory)
29
+ templates.generate('stories', componentDirectory)
30
+
31
+ print.success('Done!')
30
32
  },
31
33
  }
32
34