@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.
- package/_templates/component/new/index.js +4 -4
- package/_templates/module/new/index.js +2 -2
- package/_templates/page/new/index.js +4 -4
- package/package.json +4 -3
- package/src/commands/component.js +1 -1
- package/src/commands/module.js +1 -1
- package/src/constants.js +1 -1
- package/src/index.js +1 -1
- package/src/templates.js +5 -5
- package/dist-package/package.json +0 -38
|
@@ -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
|
}
|
|
@@ -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.
|
|
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
|
}
|
package/src/commands/module.js
CHANGED
package/src/constants.js
CHANGED
package/src/index.js
CHANGED
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
|
-
}
|