Skip to content

Commit 512ce5c

Browse files
committed
Cleaning up lint-staged configs so we can have a global config and a local library config.
1 parent 72a22de commit 512ce5c

File tree

12 files changed

+286
-267
lines changed

12 files changed

+286
-267
lines changed

.lintstagedrc.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
"*.json": "prettier --write"
3+
}

Common/.lintstagedrc.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import baseConfig from '../.lintstagedrc.mjs'
2+
3+
export default {
4+
...baseConfig,
5+
'*.ts': 'eslint --fix',
6+
}
7+

Common/package.json

+52-52
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
{
2-
"name": "@epicgames-ps/lib-pixelstreamingcommon-ue5.5",
3-
"version": "0.1.4",
4-
"description": "Common utilities library for Unreal Engine 5.5 Pixel Streaming",
5-
"main": "build/commonjs/pixelstreamingcommon.js",
6-
"module": "build/esm/pixelstreamingcommon.js",
7-
"types": "build/types/pixelstreamingcommon.d.ts",
8-
"sideEffects": false,
9-
"scripts": {
10-
"compile": "tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
11-
"build": "rimraf ./build && npm run build-proto && npm run compile",
12-
"build-dev": "npm run build-proto && npm run compile",
13-
"build-proto": "protoc --experimental_allow_proto3_optional --ts_out src/Messages --proto_path protobuf protobuf/signalling_messages.proto",
14-
"build-proto-docs": "protoc --doc_out=docs --doc_opt=markdown,messages.md --proto_path protobuf protobuf/signalling_messages.proto",
15-
"build-docs": "typedoc --tsconfig tsconfig.base.json",
16-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
17-
"test": "echo \"Error: no test specified\" && exit 1"
18-
},
19-
"devDependencies": {
20-
"@types/jest": "^29.5.14",
21-
"@types/webxr": "^0.5.1",
22-
"@typescript-eslint/eslint-plugin": "^6.21.0",
23-
"cspell": "^4.1.0",
24-
"eslint": "^8.11.0",
25-
"eslint-config-prettier": "^9.1.0",
26-
"eslint-plugin-prettier": "^5.2.1",
27-
"eslint-plugin-tsdoc": "^0.2.17",
28-
"jest": "^29.7.0",
29-
"jest-environment-jsdom": "^29.7.0",
30-
"prettier": "3.3.3",
31-
"rimraf": "^5.0.5",
32-
"ts-jest": "^29.2.5",
33-
"ts-loader": "^9.4.2",
34-
"ts-node": "^10.9.2",
35-
"typedoc": "^0.27.4",
36-
"typedoc-plugin-markdown": "^4.3.2",
37-
"typescript": "^5.0.0"
38-
},
39-
"author": "Epic Games",
40-
"license": "MIT",
41-
"publishConfig": {
42-
"access": "public"
43-
},
44-
"dependencies": {
45-
"@protobuf-ts/plugin": "^2.9.3",
46-
"@types/ws": "^8.5.10",
47-
"ws": "^8.17.1"
48-
},
49-
"lint-staged": {
50-
"*.ts": "eslint --fix"
51-
}
52-
}
1+
{
2+
"name": "@epicgames-ps/lib-pixelstreamingcommon-ue5.5",
3+
"version": "0.1.4",
4+
"description": "Common utilities library for Unreal Engine 5.5 Pixel Streaming",
5+
"main": "build/commonjs/pixelstreamingcommon.js",
6+
"module": "build/esm/pixelstreamingcommon.js",
7+
"types": "build/types/pixelstreamingcommon.d.ts",
8+
"sideEffects": false,
9+
"scripts": {
10+
"compile": "tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
11+
"build": "rimraf ./build && npm run build-proto && npm run compile",
12+
"build-dev": "npm run build-proto && npm run compile",
13+
"build-proto": "protoc --experimental_allow_proto3_optional --ts_out src/Messages --proto_path protobuf protobuf/signalling_messages.proto",
14+
"build-proto-docs": "protoc --doc_out=docs --doc_opt=markdown,messages.md --proto_path protobuf protobuf/signalling_messages.proto",
15+
"build-docs": "typedoc --tsconfig tsconfig.base.json",
16+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
17+
"test": "echo \"Error: no test specified\" && exit 1"
18+
},
19+
"devDependencies": {
20+
"@types/jest": "^29.5.14",
21+
"@types/webxr": "^0.5.1",
22+
"@typescript-eslint/eslint-plugin": "^6.21.0",
23+
"cspell": "^4.1.0",
24+
"eslint": "^8.11.0",
25+
"eslint-config-prettier": "^9.1.0",
26+
"eslint-plugin-prettier": "^5.2.1",
27+
"eslint-plugin-tsdoc": "^0.2.17",
28+
"jest": "^29.7.0",
29+
"jest-environment-jsdom": "^29.7.0",
30+
"prettier": "3.3.3",
31+
"rimraf": "^5.0.5",
32+
"ts-jest": "^29.2.5",
33+
"ts-loader": "^9.4.2",
34+
"ts-node": "^10.9.2",
35+
"typedoc": "^0.27.4",
36+
"typedoc-plugin-markdown": "^4.3.2",
37+
"typescript": "^5.0.0"
38+
},
39+
"author": "Epic Games",
40+
"license": "MIT",
41+
"publishConfig": {
42+
"access": "public"
43+
},
44+
"dependencies": {
45+
"@protobuf-ts/plugin": "^2.9.3",
46+
"@types/ws": "^8.5.10",
47+
"ws": "^8.17.1"
48+
},
49+
"lint-staged": {
50+
"*.ts": "eslint --fix"
51+
}
52+
}

Frontend/library/.lintstagedrc.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import baseConfig from '../../.lintstagedrc.mjs'
2+
3+
export default {
4+
...baseConfig,
5+
'*.ts': 'eslint --fix',
6+
}
7+

Frontend/library/package.json

+45-49
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,45 @@
1-
{
2-
"name": "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5",
3-
"version": "0.4.5",
4-
"description": "Frontend library for Unreal Engine 5.5 Pixel Streaming",
5-
"main": "dist/commonjs/pixelstreamingfrontend.js",
6-
"module": "dist/esm/pixelstreamingfrontend.js",
7-
"types": "dist/types/pixelstreamingfrontend.d.ts",
8-
"sideEffects": false,
9-
"scripts": {
10-
"compile": "tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
11-
"build": "npm run compile",
12-
"build-all": "cd ../../Common && npm install && npm run build && cd ../Frontend/library && npm install && npm run build",
13-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
14-
"test": "jest --detectOpenHandles --coverage=true",
15-
"spellcheck": "cspell \"{README.md,.github/*.md,src/**/*.ts}\""
16-
},
17-
"devDependencies": {
18-
"@types/jest": "^29.5.14",
19-
"@typescript-eslint/eslint-plugin": "^6.21.0",
20-
"cspell": "^4.1.0",
21-
"eslint": "^8.11.0",
22-
"eslint-config-prettier": "^9.1.0",
23-
"eslint-plugin-prettier": "^5.2.1",
24-
"jest": "^29.7.0",
25-
"jest-environment-jsdom": "^29.7.0",
26-
"prettier": "3.3.3",
27-
"ts-jest": "^29.2.5",
28-
"typedoc": "^0.27.4",
29-
"typescript": "^5.0.0"
30-
},
31-
"dependencies": {
32-
"@epicgames-ps/lib-pixelstreamingcommon-ue5.5": "^0.1.4",
33-
"@types/webxr": "^0.5.1",
34-
"sdp": "^3.1.0"
35-
},
36-
"repository": {
37-
"type": "git",
38-
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure.git"
39-
},
40-
"author": "Epic Games",
41-
"license": "MIT",
42-
"publishConfig": {
43-
"access": "public"
44-
},
45-
"lint-staged": {
46-
"*.ts": "eslint --fix"
47-
}
48-
49-
}
1+
{
2+
"name": "@epicgames-ps/lib-pixelstreamingfrontend-ue5.5",
3+
"version": "0.4.5",
4+
"description": "Frontend library for Unreal Engine 5.5 Pixel Streaming",
5+
"main": "dist/commonjs/pixelstreamingfrontend.js",
6+
"module": "dist/esm/pixelstreamingfrontend.js",
7+
"types": "dist/types/pixelstreamingfrontend.d.ts",
8+
"sideEffects": false,
9+
"scripts": {
10+
"compile": "tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
11+
"build": "npm run compile",
12+
"build-all": "cd ../../Common && npm install && npm run build && cd ../Frontend/library && npm install && npm run build",
13+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
14+
"test": "jest --detectOpenHandles --coverage=true",
15+
"spellcheck": "cspell \"{README.md,.github/*.md,src/**/*.ts}\""
16+
},
17+
"devDependencies": {
18+
"@types/jest": "^29.5.14",
19+
"@typescript-eslint/eslint-plugin": "^6.21.0",
20+
"cspell": "^4.1.0",
21+
"eslint": "^8.11.0",
22+
"eslint-config-prettier": "^9.1.0",
23+
"eslint-plugin-prettier": "^5.2.1",
24+
"jest": "^29.7.0",
25+
"jest-environment-jsdom": "^29.7.0",
26+
"prettier": "3.3.3",
27+
"ts-jest": "^29.2.5",
28+
"typedoc": "^0.27.4",
29+
"typescript": "^5.0.0"
30+
},
31+
"dependencies": {
32+
"@epicgames-ps/lib-pixelstreamingcommon-ue5.5": "^0.1.4",
33+
"@types/webxr": "^0.5.1",
34+
"sdp": "^3.1.0"
35+
},
36+
"repository": {
37+
"type": "git",
38+
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure.git"
39+
},
40+
"author": "Epic Games",
41+
"license": "MIT",
42+
"publishConfig": {
43+
"access": "public"
44+
}
45+
}

Frontend/ui-library/.lintstagedrc.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import baseConfig from '../../.lintstagedrc.mjs'
2+
3+
export default {
4+
...baseConfig,
5+
'*.ts': 'eslint --fix',
6+
}
7+

Frontend/ui-library/package.json

+44-48
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,44 @@
1-
{
2-
"name": "@epicgames-ps/lib-pixelstreamingfrontend-ui-ue5.5",
3-
"version": "0.4.4",
4-
"description": "Reference frontend UI library for Unreal Engine 5.5 Pixel Streaming - gives the stock look and feel.",
5-
"main": "dist/commonjs/pixelstreamingfrontend-ui.js",
6-
"module": "dist/esm/pixelstreamingfrontend-ui.esm.js",
7-
"types": "dist/types/pixelstreamingfrontend-ui.d.ts",
8-
"sideEffects": false,
9-
"scripts": {
10-
"compile": "tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
11-
"build": "npm run compile",
12-
"build-all": "cd ../library && npm install && npm run build-all && cd ../ui-library && npm install && npm run build",
13-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
14-
"spellcheck": "cspell \"{README.md,.github/*.md,src/**/*.ts}\""
15-
},
16-
"devDependencies": {
17-
"@typescript-eslint/eslint-plugin": "^6.21.0",
18-
"cspell": "^4.1.0",
19-
"eslint": "^8.11.0",
20-
"eslint-config-prettier": "^9.1.0",
21-
"eslint-plugin-prettier": "^5.2.1",
22-
"eslint-plugin-tsdoc": "^0.2.17",
23-
"prettier": "3.3.3",
24-
"typedoc": "^0.27.4",
25-
"typescript": "^5.0.0"
26-
},
27-
"dependencies": {
28-
"jss": "^10.9.2",
29-
"jss-plugin-camel-case": "^10.9.2",
30-
"jss-plugin-global": "^10.9.2"
31-
},
32-
"peerDependencies": {
33-
"@epicgames-ps/lib-pixelstreamingfrontend-ue5.5": "^0.4.5"
34-
},
35-
"repository": {
36-
"type": "git",
37-
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure.git"
38-
},
39-
"author": "Epic Games",
40-
"license": "MIT",
41-
"publishConfig": {
42-
"access": "public"
43-
},
44-
"lint-staged": {
45-
"*.ts": "eslint --fix"
46-
}
47-
48-
}
1+
{
2+
"name": "@epicgames-ps/lib-pixelstreamingfrontend-ui-ue5.5",
3+
"version": "0.4.4",
4+
"description": "Reference frontend UI library for Unreal Engine 5.5 Pixel Streaming - gives the stock look and feel.",
5+
"main": "dist/commonjs/pixelstreamingfrontend-ui.js",
6+
"module": "dist/esm/pixelstreamingfrontend-ui.esm.js",
7+
"types": "dist/types/pixelstreamingfrontend-ui.d.ts",
8+
"sideEffects": false,
9+
"scripts": {
10+
"compile": "tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
11+
"build": "npm run compile",
12+
"build-all": "cd ../library && npm install && npm run build-all && cd ../ui-library && npm install && npm run build",
13+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
14+
"spellcheck": "cspell \"{README.md,.github/*.md,src/**/*.ts}\""
15+
},
16+
"devDependencies": {
17+
"@typescript-eslint/eslint-plugin": "^6.21.0",
18+
"cspell": "^4.1.0",
19+
"eslint": "^8.11.0",
20+
"eslint-config-prettier": "^9.1.0",
21+
"eslint-plugin-prettier": "^5.2.1",
22+
"eslint-plugin-tsdoc": "^0.2.17",
23+
"prettier": "3.3.3",
24+
"typedoc": "^0.27.4",
25+
"typescript": "^5.0.0"
26+
},
27+
"dependencies": {
28+
"jss": "^10.9.2",
29+
"jss-plugin-camel-case": "^10.9.2",
30+
"jss-plugin-global": "^10.9.2"
31+
},
32+
"peerDependencies": {
33+
"@epicgames-ps/lib-pixelstreamingfrontend-ue5.5": "^0.4.5"
34+
},
35+
"repository": {
36+
"type": "git",
37+
"url": "https://github.com/EpicGamesExt/PixelStreamingInfrastructure.git"
38+
},
39+
"author": "Epic Games",
40+
"license": "MIT",
41+
"publishConfig": {
42+
"access": "public"
43+
}
44+
}

Signalling/.lintstagedrc.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import baseConfig from '../.lintstagedrc.mjs'
2+
3+
export default {
4+
...baseConfig,
5+
'*.ts': 'eslint --fix',
6+
}
7+

0 commit comments

Comments
 (0)