@toptal/davinci-skeleton 4.3.0 → 4.4.1-alpha-feature-comm-620-graphql-codegen.9

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,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1145](https://github.com/toptal/davinci/pull/1145) [`e7675365`](https://github.com/toptal/davinci/commit/e7675365aebbf9f259232ce5733863998a6ed3a9) Thanks [@OndrejTuma](https://github.com/OndrejTuma)! - Created skeleton for danger CI GH workflow
8
+
9
+ ## 4.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#1144](https://github.com/toptal/davinci/pull/1144) [`0937d0ab`](https://github.com/toptal/davinci/commit/0937d0ab9dc95c98d194432cc815a9d17631c5b8) Thanks [@dmaklygin1](https://github.com/dmaklygin1)! - Created skeleton for unit-tests CI GH workflow
14
+
3
15
  ## 4.3.0
4
16
 
5
17
  ### Minor Changes
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Extend a default jest config for project needs
3
+ */
4
+ // eslint-disable-next-line import/no-extraneous-dependencies
5
+ const davinciJestConfig = require('@toptal/davinci-qa/src/configs/jest.config.js')
6
+
7
+ module.exports = davinciJestConfig
@@ -0,0 +1,34 @@
1
+ name: Danger
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, synchronize, reopened, edited]
6
+ branches: [master]
7
+
8
+ jobs:
9
+ danger:
10
+ name: Check:Danger
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ GITHUB_TOKEN: ${{ secrets.TOPTAL_DEVBOT_TOKEN }}
14
+ if: ${{ github.event.pull_request.head.ref != 'changeset-release/master' }}
15
+ steps:
16
+ - name: Cancel previous workflow
17
+ uses: styfle/cancel-workflow-action@dffcefda964529302c673388c65a8137995e9603
18
+
19
+ - name: Checkout project
20
+ uses: actions/checkout@v2
21
+
22
+ - name: Setup node
23
+ uses: actions/setup-node@v2
24
+
25
+ - name: Checkout davinci GHAs
26
+ uses: actions/checkout@v2
27
+ with:
28
+ repository: toptal/davinci-github-actions
29
+ token: ${{ env.GITHUB_TOKEN }}
30
+ path: ./.github/actions/
31
+
32
+ - uses: ./.github/actions/yarn-install
33
+
34
+ - uses: ./.github/actions/danger
@@ -0,0 +1,32 @@
1
+ name: Unit Tests
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, synchronize, reopened, edited]
6
+ branches: [master]
7
+
8
+ jobs:
9
+ typecheck:
10
+ name: Check:UnitTests
11
+ runs-on: ubuntu-latest
12
+ env:
13
+ GITHUB_TOKEN: ${{ secrets.TOPTAL_DEVBOT_TOKEN }}
14
+ steps:
15
+ - name: Cancel Previous Runs
16
+ uses: styfle/cancel-workflow-action@dffcefda964529302c673388c65a8137995e9603
17
+
18
+ - name: Checkout
19
+ uses: actions/checkout@v2
20
+
21
+ - name: Setup node
22
+ uses: actions/setup-node@v2
23
+
24
+ - uses: actions/checkout@v2
25
+ with:
26
+ repository: toptal/davinci-github-actions
27
+ token: ${{ env.GITHUB_TOKEN }}
28
+ path: ./.github/actions/
29
+
30
+ - uses: ./.github/actions/yarn-install
31
+
32
+ - uses: ./.github/actions/unit-tests
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-skeleton",
3
- "version": "4.3.0",
3
+ "version": "4.4.1-alpha-feature-comm-620-graphql-codegen.9+6a5ae6bf",
4
4
  "description": "Toptal frontend application created with Davinci CLI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,7 +9,7 @@
9
9
  "homepage": "https://github.com/toptal/davinci/tree/master/packages/bootstrap#readme",
10
10
  "license": "ISC",
11
11
  "devDependencies": {
12
- "@toptal/browserslist-config": "^1.2.0",
12
+ "@toptal/browserslist-config": "1.2.1-alpha-feature-comm-620-graphql-codegen.155+6a5ae6bf",
13
13
  "@types/jest": "^27.0.3",
14
14
  "@types/react": "^17.0.38",
15
15
  "@types/react-dom": "^16.8.4",
@@ -23,6 +23,7 @@
23
23
  "start": "PORT=3000 davinci engine start --https --open-url https://local-development.staging.toptal.net:3000",
24
24
  "start:ci": "PORT=3000 davinci engine start --https",
25
25
  "test": "davinci qa unit --runInBand true",
26
+ "test:ci": "LANG=en_US davinci qa unit --ci --maxWorkers 100% --testTimeout=10000 --silent",
26
27
  "test:e2e": "NODE_ENV=development davinci qa e2e --baseUrl=https://local-development.staging.toptal.net:3000",
27
28
  "test:e2e:ci": "yarn start:ci & wait-on -i 10000 https://local-development.staging.toptal.net:3000 && yarn test:e2e",
28
29
  "lint": "davinci syntax lint code . && davinci syntax lint styles .",
@@ -52,5 +53,6 @@
52
53
  }
53
54
  },
54
55
  "sideEffects": false,
55
- "main": "./src/index.tsx"
56
+ "main": "./src/index.tsx",
57
+ "gitHead": "6a5ae6bf6d03c85803bd8892e2ee922df3f4f337"
56
58
  }
@@ -1,35 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "name": "Debug Tests - Single Run",
6
- "type": "node",
7
- "runtimeExecutable": "yarn",
8
- "request": "launch",
9
- "args": ["test", "--runInBand"],
10
- "cwd": "${workspaceFolder}",
11
- "console": "integratedTerminal",
12
- "internalConsoleOptions": "neverOpen"
13
- },
14
- {
15
- "name": "Debug Tests - Watch Mode",
16
- "type": "node",
17
- "runtimeExecutable": "yarn",
18
- "request": "launch",
19
- "args": ["test", "--runInBand"],
20
- "cwd": "${workspaceFolder}",
21
- "console": "integratedTerminal",
22
- "internalConsoleOptions": "neverOpen"
23
- },
24
- {
25
- "name": "Debug Tests - Current File",
26
- "type": "node",
27
- "runtimeExecutable": "yarn",
28
- "request": "launch",
29
- "args": ["test", "${relativeFile}", "--runInBand", "--watchAll"],
30
- "cwd": "${workspaceFolder}",
31
- "console": "integratedTerminal",
32
- "internalConsoleOptions": "neverOpen"
33
- }
34
- ]
35
- }
@@ -1,56 +0,0 @@
1
- {
2
- "name": "@toptal/davinci-skeleton",
3
- "version": "4.3.0",
4
- "description": "Toptal frontend application created with Davinci CLI",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "author": "Toptal",
9
- "homepage": "https://github.com/toptal/davinci/tree/master/packages/bootstrap#readme",
10
- "license": "ISC",
11
- "devDependencies": {
12
- "@toptal/browserslist-config": "^1.2.0",
13
- "@types/jest": "^27.0.3",
14
- "@types/react": "^17.0.38",
15
- "@types/react-dom": "^16.8.4",
16
- "@types/styled-components": "^5.1.14",
17
- "wait-on": "^5.2.0",
18
- "yarn-deduplicate": "^2.0.0"
19
- },
20
- "scripts": {
21
- "analyze": "davinci engine analyze",
22
- "build": "davinci engine build",
23
- "start": "PORT=3000 davinci engine start --https --open-url https://local-development.staging.toptal.net:3000",
24
- "start:ci": "PORT=3000 davinci engine start --https",
25
- "test": "davinci qa unit --runInBand true",
26
- "test:e2e": "NODE_ENV=development davinci qa e2e --baseUrl=https://local-development.staging.toptal.net:3000",
27
- "test:e2e:ci": "yarn start:ci & wait-on -i 10000 https://local-development.staging.toptal.net:3000 && yarn test:e2e",
28
- "lint": "davinci syntax lint code . && davinci syntax lint styles .",
29
- "typecheck": "tsc --noEmit",
30
- "prepublish": "if [ -f 'yarn.lock' ]; then yarn-deduplicate yarn.lock; fi",
31
- "build:package": "../../bin/build-package.js",
32
- "prepack": "./bin/prepack-skeleton",
33
- "postpack": "./bin/postpack-skeleton",
34
- "prepublishOnly": "../../bin/prepublish.js"
35
- },
36
- "lint-staged": {
37
- "*.{js,jsx,ts,tsx}": [
38
- "davinci syntax lint code",
39
- "prettier",
40
- "git add"
41
- ],
42
- "styles.{js,jsx,ts,tsx}": [
43
- "davinci syntax lint styles",
44
- "prettier --write",
45
- "git add"
46
- ]
47
- },
48
- "husky": {
49
- "hooks": {
50
- "pre-commit": "lint-staged",
51
- "pre-push": "davinci ci danger --local"
52
- }
53
- },
54
- "sideEffects": false,
55
- "main": "./src/index.tsx"
56
- }
@@ -1,56 +0,0 @@
1
- {
2
- "name": "@toptal/davinci-skeleton",
3
- "version": "4.3.0",
4
- "description": "Toptal frontend application created with Davinci CLI",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "author": "Toptal",
9
- "homepage": "https://github.com/toptal/davinci/tree/master/packages/bootstrap#readme",
10
- "license": "ISC",
11
- "devDependencies": {
12
- "@toptal/browserslist-config": "^1.2.0",
13
- "@types/jest": "^27.0.3",
14
- "@types/react": "^17.0.38",
15
- "@types/react-dom": "^16.8.4",
16
- "@types/styled-components": "^5.1.14",
17
- "wait-on": "^5.2.0",
18
- "yarn-deduplicate": "^2.0.0"
19
- },
20
- "scripts": {
21
- "analyze": "davinci engine analyze",
22
- "build": "davinci engine build",
23
- "start": "PORT=3000 davinci engine start --https --open-url https://local-development.staging.toptal.net:3000",
24
- "start:ci": "PORT=3000 davinci engine start --https",
25
- "test": "davinci qa unit --runInBand true",
26
- "test:e2e": "NODE_ENV=development davinci qa e2e --baseUrl=https://local-development.staging.toptal.net:3000",
27
- "test:e2e:ci": "yarn start:ci & wait-on -i 10000 https://local-development.staging.toptal.net:3000 && yarn test:e2e",
28
- "lint": "davinci syntax lint code . && davinci syntax lint styles .",
29
- "typecheck": "tsc --noEmit",
30
- "prepublish": "if [ -f 'yarn.lock' ]; then yarn-deduplicate yarn.lock; fi",
31
- "build:package": "../../bin/build-package.js",
32
- "prepack": "./bin/prepack-skeleton",
33
- "postpack": "./bin/postpack-skeleton",
34
- "prepublishOnly": "../../bin/prepublish.js"
35
- },
36
- "lint-staged": {
37
- "*.{js,jsx,ts,tsx}": [
38
- "davinci syntax lint code",
39
- "prettier",
40
- "git add"
41
- ],
42
- "styles.{js,jsx,ts,tsx}": [
43
- "davinci syntax lint styles",
44
- "prettier --write",
45
- "git add"
46
- ]
47
- },
48
- "husky": {
49
- "hooks": {
50
- "pre-commit": "lint-staged",
51
- "pre-push": "davinci ci danger --local"
52
- }
53
- },
54
- "sideEffects": false,
55
- "main": "./src/index.tsx"
56
- }