Skip to content

Commit 93e7a94

Browse files
authored
Merge pull request #1273 from codelab-fun/nx-ci
Setup CI
2 parents 07f97e2 + 942aaca commit 93e7a94

File tree

600 files changed

+17050
-16759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

600 files changed

+17050
-16759
lines changed

.eslintrc.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": "off"
10+
}
11+
},
12+
{
13+
"files": ["*.ts", "*.tsx"],
14+
"extends": ["plugin:@nrwl/nx/typescript"],
15+
"rules": {
16+
"@typescript-eslint/no-explicit-any": "off",
17+
"@typescript-eslint/no-empty-function": "off",
18+
"@typescript-eslint/no-unused-vars": "off",
19+
"@typescript-eslint/no-var-requires": "off",
20+
"@typescript-eslint/ban-types": "off",
21+
"@typescript-eslint/ban-ts-comment": "off",
22+
"@typescript-eslint/no-this-alias": "off",
23+
"@typescript-eslint/adjacent-overload-signatures": "off",
24+
"@typescript-eslint/no-namespace": "off",
25+
"@typescript-eslint/member-ordering": "off",
26+
"no-useless-escape": "off",
27+
"no-irregular-whitespace": "off",
28+
"no-var": "off",
29+
"no-debugger": "off",
30+
"no-case-declarations": "off",
31+
"no-extra-boolean-cast": "off",
32+
"prefer-const": "off",
33+
"no-constant-condition": "off",
34+
"prefer-rest-params": "off",
35+
"prefer-spread": "off",
36+
"no-async-promise-executor": "off"
37+
}
38+
},
39+
{
40+
"files": ["*.js", "*.jsx"],
41+
"extends": ["plugin:@nrwl/nx/javascript"],
42+
"rules": {}
43+
},
44+
{
45+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
46+
"env": {
47+
"jest": true
48+
},
49+
"rules": {}
50+
}
51+
]
52+
}

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
jobs:
9+
main:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- uses: nrwl/nx-set-shas@v3
16+
with:
17+
main-branch-name: master
18+
- run: npm ci
19+
20+
- run: npx nx workspace-lint
21+
# TODO(sancheez): temporarily disabled checking with prettier,
22+
# before uncommenting the command needs to run format write command
23+
# - run: npx nx format:check
24+
- run: npx nx affected --target=lint --parallel=3
25+
- run: npx nx affected --target=build --parallel=3

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ yarn.lock
4848
ehthumbs.db
4949
Thumbs.db
5050

51+
52+
.angular

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.17.0
1+
lts-gallium

.prettierignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ng2ts
2-
dist
3-
coverage
4-
libs/code-demos/assets/runner/ng2/ng-bundle.js
5-
libs/code-demos/assets/runner/ng-dts/files.txt
1+
/ng2ts
2+
/dist
3+
/coverage
4+
5+
libs/code-demos/assets

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"recommendations": [
33
"nrwl.angular-console",
44
"angular.ng-template",
5-
"esbenp.prettier-vscode"
5+
"esbenp.prettier-vscode",
6+
"firsttris.vscode-jest-runner"
67
]
78
}

0 commit comments

Comments
 (0)