Skip to content

Commit cbb43c6

Browse files
authored
Merge branch 'main' into tab
2 parents 158e64a + bced86d commit cbb43c6

File tree

6 files changed

+35
-5
lines changed

6 files changed

+35
-5
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ trim_trailing_whitespace = true
1212
[*.md]
1313
max_line_length = off
1414
trim_trailing_whitespace = false
15+
16+
17+
[*.yml]
18+
indent_style = space
19+
indent_size = 2

.github/workflows/build.yml

+25
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,31 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
# Checkout to branch
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
# Set up node to use v16 & cache node modules
22+
- name: Setup Node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: "20"
26+
cache: "npm"
27+
cache-dependency-path: "package-lock.json"
28+
29+
# Install dependencies
30+
- name: Install dependencies
31+
run: npm install
32+
33+
# Check files are linted
34+
- name: Run nx lint
35+
run: npm run lint
36+
env:
37+
CI: true
38+
1439
build:
1540
runs-on: ubuntu-latest
1641
steps:

app/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "app/src",
55
"projectType": "application",
6-
"tags": [],
6+
"tags": ["application"],
77
"targets": {
88
"build": {
99
"executor": "@nx/vite:build",

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
"version": "nx release version",
9292
"start": "nx serve app",
9393
"build": "nx build app",
94-
"lint": "nx lint app",
95-
"lint:fix": "nx lint app --fix",
94+
"lint": "nx run-many --projects=tag:library,tag:application --target=lint",
95+
"lint:fix": "nx run-many --projects=tag:library,tag:application --target=lint --fix",
9696
"prepare": "husky install"
9797
},
9898
"browserslist": [

player/react/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "player/react/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["library"],
77
"targets": {
88
"lint": {
99
"executor": "@nx/eslint:lint",

sdk/react/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "sdk/react/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["library"],
77
"targets": {
88
"lint": {
99
"executor": "@nx/eslint:lint",

0 commit comments

Comments
 (0)