@toptal/davinci-bootstrap 3.1.22 → 3.1.23-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.
@@ -9,6 +9,6 @@ const newLibCommandCreator = require('../src/commands/new-lib')
9
9
  cliEngine.loadCommands([
10
10
  newCommandCreator,
11
11
  newAppCommandCreator,
12
- newLibCommandCreator
12
+ newLibCommandCreator,
13
13
  ])
14
14
  cliEngine.bootstrap()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-bootstrap",
3
- "version": "3.1.22",
3
+ "version": "3.1.23-alpha-fx-2755-interactive-workflow-generation.4+46405792",
4
4
  "description": "Creates application from davinci template",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -34,13 +34,14 @@
34
34
  "url": "https://github.com/toptal/davinci/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@toptal/davinci-cli-shared": "1.5.2",
38
- "@toptal/davinci-skeleton": "7.0.0",
39
- "@toptal/davinci-skeleton-lib": "0.1.1",
40
- "@toptal/davinci-skeleton-sub-app": "1.2.0",
37
+ "@toptal/davinci-cli-shared": "1.5.3-alpha-fx-2755-interactive-workflow-generation.4+46405792",
38
+ "@toptal/davinci-skeleton": "7.0.1-alpha-fx-2755-interactive-workflow-generation.23+46405792",
39
+ "@toptal/davinci-skeleton-lib": "0.1.2-alpha-fx-2755-interactive-workflow-generation.386+46405792",
40
+ "@toptal/davinci-skeleton-sub-app": "1.2.1-alpha-fx-2755-interactive-workflow-generation.92+46405792",
41
41
  "find-yarn-workspace-root": "^2.0.0",
42
42
  "fs-extra": "^9.0.1",
43
43
  "lodash.kebabcase": "^4.1.1",
44
44
  "ora": "^5.4.1"
45
- }
45
+ },
46
+ "gitHead": "46405792bfc49fdb4b954b2ca9ddbb9ce8660801"
46
47
  }
@@ -45,7 +45,7 @@ const copyApplicationSkeleton = async (destDir, currentDavinciRunningDir) => {
45
45
  const skeletonSubAppPath = require.resolve(
46
46
  '@toptal/davinci-skeleton-sub-app',
47
47
  {
48
- paths: [currentDavinciRunningDir]
48
+ paths: [currentDavinciRunningDir],
49
49
  }
50
50
  )
51
51
  const appDir = path.join(skeletonSubAppPath, '../..')
@@ -138,7 +138,7 @@ const createCommand = async (appName, namespace) => {
138
138
  // change package.json
139
139
  await modifyPackageJson(destDir, appName, {
140
140
  namespace,
141
- workspacePackageName
141
+ workspacePackageName,
142
142
  })
143
143
 
144
144
  // run yarn
@@ -158,14 +158,14 @@ const newAppCommandCreator = {
158
158
  {
159
159
  label:
160
160
  "Namespace of the app. Creates the app in a monorepo namespace: './namespaces/{namespace}/apps/{appName}'",
161
- name: '--namespace <namespace>'
162
- }
161
+ name: '--namespace <namespace>',
162
+ },
163
163
  ],
164
164
  action: async ({ appName, options: { namespace } }) => {
165
165
  const formattedAppName = kebabCase(appName)
166
166
 
167
167
  return createCommand(formattedAppName, namespace)
168
- }
168
+ },
169
169
  }
170
170
 
171
171
  module.exports = newAppCommandCreator
@@ -43,7 +43,7 @@ const checkPrerequisites = async (monorepoWorkspaceDir, libName, namespace) => {
43
43
 
44
44
  const copyLibrarySkeleton = async (destDir, currentDavinciRunningDir) => {
45
45
  const skeletonLibPath = require.resolve('@toptal/davinci-skeleton-lib', {
46
- paths: [currentDavinciRunningDir]
46
+ paths: [currentDavinciRunningDir],
47
47
  })
48
48
  const appDir = path.join(skeletonLibPath, '../..')
49
49
 
@@ -135,7 +135,7 @@ const createCommand = async (libName, namespace) => {
135
135
  // change package.json
136
136
  await modifyPackageJson(destDir, libName, {
137
137
  namespace,
138
- workspacePackageName
138
+ workspacePackageName,
139
139
  })
140
140
 
141
141
  // run yarn
@@ -155,14 +155,14 @@ const newLibCommandCreator = {
155
155
  {
156
156
  label:
157
157
  "Namespace of the lib. Creates the lib in a monorepo namespace: './namespaces/{namespace}/libs/{libName}'",
158
- name: '--namespace <namespace>'
159
- }
158
+ name: '--namespace <namespace>',
159
+ },
160
160
  ],
161
161
  action: async ({ libName, options: { namespace } }) => {
162
162
  const formattedLibName = kebabCase(libName)
163
163
 
164
164
  return createCommand(formattedLibName, namespace)
165
- }
165
+ },
166
166
  }
167
167
 
168
168
  module.exports = newLibCommandCreator
@@ -32,7 +32,7 @@ const checkPrerequisites = async (destDir, appName) => {
32
32
 
33
33
  const copyApplicationSkeleton = async (destDir, currentDavinciRunningDir) => {
34
34
  const skeletonPath = require.resolve('@toptal/davinci-skeleton', {
35
- paths: [currentDavinciRunningDir]
35
+ paths: [currentDavinciRunningDir],
36
36
  })
37
37
  const appDir = path.join(skeletonPath, '../..')
38
38
 
@@ -101,13 +101,13 @@ const installDependencies = async destDir => {
101
101
  'styled-components',
102
102
  'typescript',
103
103
  '@apollo/client',
104
- 'graphql'
104
+ 'graphql',
105
105
  ]
106
106
 
107
107
  const devDependencies = [
108
108
  '@toptal/davinci',
109
109
  '@types/react',
110
- '@types/react-dom'
110
+ '@types/react-dom',
111
111
  ]
112
112
 
113
113
  try {
@@ -154,7 +154,7 @@ const newCommandCreator = {
154
154
  const formattedAppName = kebabCase(appName)
155
155
 
156
156
  return createCommand(formattedAppName)
157
- }
157
+ },
158
158
  }
159
159
 
160
160
  module.exports = newCommandCreator
package/src/constants.js CHANGED
@@ -9,5 +9,5 @@ module.exports = {
9
9
  CHANGELOG_PATTERN,
10
10
  APPS_PATH,
11
11
  LIBS_PATH,
12
- NAMESPACES_PATH
12
+ NAMESPACES_PATH,
13
13
  }
package/src/index.js CHANGED
@@ -6,5 +6,5 @@ module.exports = {
6
6
  commands: [newCommandCreator, newAppCommandCreator, newLibCommandCreator],
7
7
  newCommand: newCommandCreator,
8
8
  newAppCommand: newAppCommandCreator,
9
- newLibCommand: newLibCommandCreator
9
+ newLibCommand: newLibCommandCreator,
10
10
  }
@@ -69,5 +69,5 @@ module.exports = {
69
69
  copyTemplateGitIgnoreFile,
70
70
  copyTemplateEslintrc,
71
71
  copyNpmrc,
72
- copyAllFiles
72
+ copyAllFiles,
73
73
  }
@@ -29,5 +29,5 @@ module.exports = {
29
29
  getRootDir: findWorkspaceRoot,
30
30
  readPackageJson,
31
31
  getPackageName,
32
- installDependencies
32
+ installDependencies,
33
33
  }