@toptal/davinci-code 1.2.1-alpha-fix-testid-eslint-rule-bug.1335 → 1.4.0

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,22 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1059](https://github.com/toptal/davinci/pull/1059) [`f729b202`](https://github.com/toptal/davinci/commit/f729b202193e4ba03f1ba016f2b3eca5386a09a5) Thanks [@michal-bednarz](https://github.com/michal-bednarz)! - Update css template to be compliant with ADR-001
8
+
9
+ ## 1.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#1047](https://github.com/toptal/davinci/pull/1047) [`850d14f9`](https://github.com/toptal/davinci/commit/850d14f9574d6b32abe6425e3f3248afb1d2e0b4) Thanks [@dmaklygin1](https://github.com/dmaklygin1)! - Remove npx package
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`850d14f9`](https://github.com/toptal/davinci/commit/850d14f9574d6b32abe6425e3f3248afb1d2e0b4)]:
18
+ - @toptal/davinci-cli-shared@1.5.0
19
+
3
20
  ## 1.2.0
4
21
 
5
22
  ### Minor Changes
@@ -4,8 +4,8 @@ to: src/modules/<%= h.changeCase.paramCase(moduleName) %>/components/<%= h.chang
4
4
  <%
5
5
  Name = h.changeCase.pascalCase(name)
6
6
  -%>
7
- import styled from 'styled-components'
7
+ import { css } from 'styled-components'
8
8
 
9
- export const root = styled.div`
9
+ export const root = css`
10
10
  display: inline-block;
11
11
  `
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@toptal/davinci-code",
3
+ "version": "1.4.0",
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.0",
34
+ "hygen": "^6.1.0",
35
+ "lodash.camelcase": "^4.3.0",
36
+ "lodash.kebabcase": "^4.1.1"
37
+ }
38
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-code",
3
- "version": "1.2.1-alpha-fix-testid-eslint-rule-bug.1335+94c355e",
3
+ "version": "1.4.0",
4
4
  "description": "Code generation package for frontend applications",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,10 +30,9 @@
30
30
  "url": "https://github.com/toptal/davinci/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@toptal/davinci-cli-shared": "1.4.2-alpha-fix-testid-eslint-rule-bug.1335+94c355e",
33
+ "@toptal/davinci-cli-shared": "^1.5.0",
34
34
  "hygen": "^6.1.0",
35
35
  "lodash.camelcase": "^4.3.0",
36
36
  "lodash.kebabcase": "^4.1.1"
37
- },
38
- "gitHead": "94c355e157c825baf75e8de94c43766d1c4cd8e1"
37
+ }
39
38
  }
package/src/templates.js CHANGED
@@ -14,21 +14,21 @@ const options = {
14
14
  const checkDirExists = dir => fs.existsSync(dir)
15
15
 
16
16
  const generateModule = name =>
17
- runSync('npx', ['hygen', 'module', 'new', name], options)
17
+ runSync('yarn', ['hygen', 'module', 'new', name], options)
18
18
 
19
19
  const generate = (template, name, moduleName) => {
20
20
  const customTemplatesDir = './_templates'
21
21
  const customTemplateDirExists = checkDirExists(`${customTemplatesDir}/${template}/new`)
22
22
 
23
23
  if (customTemplateDirExists) {
24
- return runSync('npx', ['hygen', template, 'new', name, moduleName], {
24
+ return runSync('yarn', ['hygen', template, 'new', name, moduleName], {
25
25
  env: {
26
26
  HYGEN_TMPLS: customTemplatesDir
27
27
  }
28
28
  })
29
29
  }
30
30
 
31
- return runSync('npx', ['hygen', template, 'new', name, moduleName], options)
31
+ return runSync('yarn', ['hygen', template, 'new', name, moduleName], options)
32
32
  }
33
33
 
34
34
  module.exports = {