@toptal/davinci 22.0.12 → 22.0.13
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 +16 -0
- package/bin/davinci.js +24 -33
- package/package.json +11 -11
- package/src/utils/proxyCommands.js +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 22.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`d2b25141`](https://github.com/toptal/davinci/commit/d2b25141b5c25f4cefa35f5d7df289401566eb03), [`d2b25141`](https://github.com/toptal/davinci/commit/d2b25141b5c25f4cefa35f5d7df289401566eb03), [`d2b25141`](https://github.com/toptal/davinci/commit/d2b25141b5c25f4cefa35f5d7df289401566eb03)]:
|
|
8
|
+
- @toptal/davinci-cli-shared@2.2.0
|
|
9
|
+
- @toptal/davinci-graphql-codegen@1.0.4
|
|
10
|
+
- @toptal/davinci-syntax@18.0.3
|
|
11
|
+
- @toptal/davinci-bootstrap@4.0.5
|
|
12
|
+
- @toptal/davinci-ci@4.0.4
|
|
13
|
+
- @toptal/davinci-code@2.0.3
|
|
14
|
+
- @toptal/davinci-engine@10.1.2
|
|
15
|
+
- @toptal/davinci-monorepo@7.0.4
|
|
16
|
+
- @toptal/davinci-qa@15.1.1
|
|
17
|
+
- @toptal/davinci-workflow@2.0.5
|
|
18
|
+
|
|
3
19
|
## 22.0.12
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/bin/davinci.js
CHANGED
|
@@ -1,46 +1,37 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { getProgram, loadCommands, bootstrap } from '@toptal/davinci-cli-shared'
|
|
3
|
+
import { lintCommandFactory } from '@toptal/davinci-syntax'
|
|
4
4
|
import { commands as engineCommands } from '@toptal/davinci-engine'
|
|
5
5
|
import { commands as codeCommands } from '@toptal/davinci-code'
|
|
6
6
|
import { commands as qaCommands } from '@toptal/davinci-qa'
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
commands as bootstrapCommands,
|
|
10
|
-
newCommand,
|
|
11
|
-
newAppCommand,
|
|
12
|
-
newLibCommand,
|
|
13
|
-
} from '@toptal/davinci-bootstrap'
|
|
7
|
+
import dangerCommandCreator from '@toptal/davinci-ci/commands'
|
|
8
|
+
import { commands as bootstrapCommands } from '@toptal/davinci-bootstrap'
|
|
14
9
|
import { commands as monorepoCommands } from '@toptal/davinci-monorepo'
|
|
15
10
|
import { commands as graphqlCodegenCommands } from '@toptal/davinci-graphql-codegen'
|
|
16
|
-
import {
|
|
17
|
-
commands as workflowCommands,
|
|
18
|
-
newWorkflowCommand,
|
|
19
|
-
} from '@toptal/davinci-workflow'
|
|
11
|
+
import { newWorkflowCommandFactory } from '@toptal/davinci-workflow'
|
|
20
12
|
|
|
21
|
-
import proxyCommands from '../src/utils/proxyCommands'
|
|
22
|
-
import packageJson from '../package.json'
|
|
13
|
+
import { proxyCommands } from '../src/utils/proxyCommands.js'
|
|
23
14
|
|
|
24
|
-
|
|
15
|
+
const program = getProgram()
|
|
16
|
+
|
|
17
|
+
program.setPackageName('davinci')
|
|
18
|
+
|
|
19
|
+
loadCommands(
|
|
25
20
|
[
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// global commands
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
newAppCommand,
|
|
39
|
-
newLibCommand,
|
|
40
|
-
newWorkflowCommand,
|
|
41
|
-
]),
|
|
21
|
+
proxyCommands('syntax', [lintCommandFactory]),
|
|
22
|
+
proxyCommands('engine', engineCommands),
|
|
23
|
+
proxyCommands('code', codeCommands),
|
|
24
|
+
proxyCommands('bootstrap', bootstrapCommands),
|
|
25
|
+
proxyCommands('qa', qaCommands),
|
|
26
|
+
proxyCommands('ci', [dangerCommandCreator]),
|
|
27
|
+
proxyCommands('monorepo', monorepoCommands),
|
|
28
|
+
proxyCommands('graphql-codegen', graphqlCodegenCommands),
|
|
29
|
+
proxyCommands('workflow', [newWorkflowCommandFactory]),
|
|
30
|
+
// global commands
|
|
31
|
+
newWorkflowCommandFactory,
|
|
32
|
+
...bootstrapCommands,
|
|
42
33
|
],
|
|
43
34
|
'davinci'
|
|
44
35
|
)
|
|
45
36
|
|
|
46
|
-
|
|
37
|
+
bootstrap()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/davinci",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.13",
|
|
4
4
|
"description": "Davinci CLI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"url": "https://github.com/toptal/davinci/issues"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@toptal/davinci-bootstrap": "4.0.
|
|
35
|
-
"@toptal/davinci-ci": "4.0.
|
|
36
|
-
"@toptal/davinci-cli-shared": "2.
|
|
37
|
-
"@toptal/davinci-code": "2.0.
|
|
38
|
-
"@toptal/davinci-engine": "10.1.
|
|
39
|
-
"@toptal/davinci-graphql-codegen": "1.0.
|
|
40
|
-
"@toptal/davinci-monorepo": "7.0.
|
|
41
|
-
"@toptal/davinci-qa": "15.1.
|
|
42
|
-
"@toptal/davinci-syntax": "18.0.
|
|
43
|
-
"@toptal/davinci-workflow": "2.0.
|
|
34
|
+
"@toptal/davinci-bootstrap": "4.0.5",
|
|
35
|
+
"@toptal/davinci-ci": "4.0.4",
|
|
36
|
+
"@toptal/davinci-cli-shared": "2.2.0",
|
|
37
|
+
"@toptal/davinci-code": "2.0.3",
|
|
38
|
+
"@toptal/davinci-engine": "10.1.2",
|
|
39
|
+
"@toptal/davinci-graphql-codegen": "1.0.4",
|
|
40
|
+
"@toptal/davinci-monorepo": "7.0.4",
|
|
41
|
+
"@toptal/davinci-qa": "15.1.1",
|
|
42
|
+
"@toptal/davinci-syntax": "18.0.3",
|
|
43
|
+
"@toptal/davinci-workflow": "2.0.5"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
packageCommands.map(cmd => {
|
|
3
|
-
const { command } = cmd
|
|
1
|
+
import { getProgram, loadCommands } from '@toptal/davinci-cli-shared'
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
...cmd,
|
|
7
|
-
command: `${proxyCommandName} ${command}`,
|
|
8
|
-
}
|
|
9
|
-
})
|
|
3
|
+
const program = getProgram()
|
|
10
4
|
|
|
11
|
-
export
|
|
5
|
+
export const proxyCommands = (proxyCommandName, commandFactories = []) => {
|
|
6
|
+
const proxyCommand = program.createCommand(proxyCommandName)
|
|
7
|
+
|
|
8
|
+
loadCommands(commandFactories, program.getPackageName(), proxyCommand)
|
|
9
|
+
|
|
10
|
+
return proxyCommand
|
|
11
|
+
}
|