@toptal/davinci-code 1.5.4 → 1.5.5-alpha-fx-2755-interactive-workflow-generation.4

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.
@@ -15,13 +15,13 @@ module.exports = {
15
15
  {
16
16
  type: 'input',
17
17
  name: 'name',
18
- message: "What's the component name?"
18
+ message: "What's the component name?",
19
19
  },
20
20
  {
21
21
  type: 'input',
22
22
  name: 'moduleName',
23
- message: "What's the module name?"
24
- }
23
+ message: "What's the module name?",
24
+ },
25
25
  ])
26
- }
26
+ },
27
27
  }
@@ -13,7 +13,7 @@ module.exports = {
13
13
  return prompter.prompt({
14
14
  type: 'input',
15
15
  name: 'name',
16
- message: "What's the module name?"
16
+ message: "What's the module name?",
17
17
  })
18
- }
18
+ },
19
19
  }
@@ -15,13 +15,13 @@ module.exports = {
15
15
  {
16
16
  type: 'input',
17
17
  name: 'name',
18
- message: "What's the page name?"
18
+ message: "What's the page name?",
19
19
  },
20
20
  {
21
21
  type: 'input',
22
22
  name: 'moduleName',
23
- message: "What's the module name?"
24
- }
23
+ message: "What's the module name?",
24
+ },
25
25
  ])
26
- }
26
+ },
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-code",
3
- "version": "1.5.4",
3
+ "version": "1.5.5-alpha-fx-2755-interactive-workflow-generation.4+46405792",
4
4
  "description": "Code generation package for frontend applications",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,9 +30,10 @@
30
30
  "url": "https://github.com/toptal/davinci/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@toptal/davinci-cli-shared": "1.5.2",
33
+ "@toptal/davinci-cli-shared": "1.5.3-alpha-fx-2755-interactive-workflow-generation.4+46405792",
34
34
  "hygen": "^6.1.0",
35
35
  "lodash.camelcase": "^4.3.0",
36
36
  "lodash.kebabcase": "^4.1.1"
37
- }
37
+ },
38
+ "gitHead": "46405792bfc49fdb4b954b2ca9ddbb9ce8660801"
38
39
  }
@@ -23,7 +23,7 @@ const componentCommandCreator = {
23
23
  )
24
24
 
25
25
  templates.generate(template, componentName, componentModuleName)
26
- }
26
+ },
27
27
  }
28
28
 
29
29
  module.exports = componentCommandCreator
@@ -13,7 +13,7 @@ const moduleCommandCreator = {
13
13
  print.green('Creating new module:', moduleName)
14
14
 
15
15
  templates.generateModule(moduleName)
16
- }
16
+ },
17
17
  }
18
18
 
19
19
  module.exports = moduleCommandCreator
package/src/constants.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const CORE_MODULE = 'core'
2
2
 
3
3
  module.exports = {
4
- CORE_MODULE
4
+ CORE_MODULE,
5
5
  }
package/src/index.js CHANGED
@@ -2,5 +2,5 @@ const moduleCommandCreator = require('./commands/module')
2
2
  const componentCommandCreator = require('./commands/component')
3
3
 
4
4
  module.exports = {
5
- commands: [moduleCommandCreator, componentCommandCreator]
5
+ commands: [moduleCommandCreator, componentCommandCreator],
6
6
  }
package/src/templates.js CHANGED
@@ -7,8 +7,8 @@ const templatesDir = path.join(rootDir, './_templates')
7
7
 
8
8
  const options = {
9
9
  env: {
10
- HYGEN_TMPLS: templatesDir
11
- }
10
+ HYGEN_TMPLS: templatesDir,
11
+ },
12
12
  }
13
13
 
14
14
  const checkDirExists = dir => fs.existsSync(dir)
@@ -25,8 +25,8 @@ const generate = (template, name, moduleName) => {
25
25
  if (customTemplateDirExists) {
26
26
  return runSync('yarn', ['hygen', template, 'new', name, moduleName], {
27
27
  env: {
28
- HYGEN_TMPLS: customTemplatesDir
29
- }
28
+ HYGEN_TMPLS: customTemplatesDir,
29
+ },
30
30
  })
31
31
  }
32
32
 
@@ -35,5 +35,5 @@ const generate = (template, name, moduleName) => {
35
35
 
36
36
  module.exports = {
37
37
  generateModule,
38
- generate
38
+ generate,
39
39
  }
@@ -1,38 +0,0 @@
1
- {
2
- "name": "@toptal/davinci-code",
3
- "version": "1.5.4",
4
- "description": "Code generation package for frontend applications",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "keywords": [
9
- "code",
10
- "templates",
11
- "generator"
12
- ],
13
- "author": "Toptal",
14
- "homepage": "https://github.com/toptal/davinci/tree/master/packages/code#readme",
15
- "license": "ISC",
16
- "bin": {
17
- "davinci-code": "./bin/davinci-code.js"
18
- },
19
- "main": "./src/index.js",
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/toptal/davinci.git"
23
- },
24
- "scripts": {
25
- "build:package": "../../bin/build-package.js",
26
- "prepublishOnly": "../../bin/prepublish.js",
27
- "test": "echo \"Error: run tests from root\" && exit 1"
28
- },
29
- "bugs": {
30
- "url": "https://github.com/toptal/davinci/issues"
31
- },
32
- "dependencies": {
33
- "@toptal/davinci-cli-shared": "1.5.2",
34
- "hygen": "^6.1.0",
35
- "lodash.camelcase": "^4.3.0",
36
- "lodash.kebabcase": "^4.1.1"
37
- }
38
- }