Skip to content

Commit 99344af

Browse files
committed
try new envs
1 parent 45f23ea commit 99344af

File tree

8 files changed

+89
-7
lines changed

8 files changed

+89
-7
lines changed

.github/actions/setup/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ runs:
99
uses: actions/setup-node@v4
1010
env:
1111
INPUT_CACHE: npm
12+
INPUT_CACHE_DEPENDENCY_PATH: package-lock.json
1213
INPUT_CACHE-DEPENDENCY-PATH: package-lock.json
14+
INPUT_CHECK_LATEST: true
1315
INPUT_CHECK-LATEST: true
14-
INPUT_NODE-VERSION: latest
16+
INPUT_NODE_VERSION_FILE: .nvmrc
17+
INPUT_NODE-VERSION-FILE: .nvmrc
1518
- name: Install dependencies
16-
run: npm ci --legacy-peer-deps
19+
run: npm ci
1720
shell: bash

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
latest

.vscode/launch.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"configurations": [
33
{
4+
"console": "integratedTerminal",
45
"name": "Development server",
56
"request": "launch",
6-
"runtimeArgs": ["run", "start"],
7+
"runtimeArgs": ["start"],
78
"runtimeExecutable": "npm",
9+
"skipFiles": ["<node_internals>/**"],
810
"type": "node",
911
},
1012
],

GEMINI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ infrastructure: `packages/authn`, `packages/csp`, and `packages/dashboard`.
2727
* **Building:** `npm run-script build`
2828
* **Installation:** `npm install`
2929
* **Linting:** `npm run-script eslint`
30-
* **Running locally:** `npm run-script dev`
30+
* **Running locally:** `npm start`
3131
* **Testing:** `npm run-script test`
3232

3333
## Conventions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To install this repository and begin local development, run the following
1818
commands in sequence:
1919

2020
- Update NPM: `npm install npm@latest --global`
21-
- Install project dependencies: `npm install --legacy-peer-deps`
21+
- Install project dependencies: `npm install`
2222
- Upgrade all dependencies: `npm run-script update`
2323

2424
## Commands

packages/eslint-config/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"console": "integratedTerminal",
55
"name": "Build",
66
"request": "launch",
7-
"runtimeArgs": ["run", "build"],
7+
"runtimeArgs": ["run-script", "build"],
88
"runtimeExecutable": "npm",
99
"skipFiles": ["<node_internals>/**"],
1010
"type": "node"
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// https://github.com/GoogleChrome/budget.json
2+
{
3+
"additionalProperties": false,
4+
"definitions": {
5+
"budget": {
6+
"properties": {
7+
"$schema": {
8+
"description": "Part of the JSON Schema standard, this optional keyword declares the URL of the schema that the file conforms to. Editors may download the schema and use it to perform syntax highlighting.",
9+
"type": "string"
10+
},
11+
"path": {
12+
"description": "The `path` property indicates the pages that a budget applies to. This string should follow the [robots.txt](https://developers.google.com/search/reference/robots_txt#examples-of-valid-robotstxt-urls) format.\n\nIf `path` is not supplied, a budget will apply to all pages.\n\nIf a page's URL path matches the path property of more than one budget in `budget.json`, then the last matching budget will be applied. As a result, global budgets (e.g. `\"path\": \"/*\"`) should be listed first in `budget.json`, followed by the budgets that override the global budget (e.g. `\"path\": \"/blog\"`).\n\n**Examples**\n\nMatch all URL paths.\n`\"path\": \"/\"` (This is equivalent to writing `\"path\": \"/*\"`)\n\nMatch all URL paths starting with `/articles`.\n`\"path\": \"/articles\"`\n\nMatch URL paths within the `uk/` directory and ending with `shopping-cart`.\n\n`\"path\": \"/uk/*/shopping-cart$\"`",
13+
"type": "string"
14+
},
15+
"resourceCounts": {
16+
"description": "This is an array of `resourceCountBudget` objects.",
17+
"items": {
18+
"$ref": "#/definitions/resourceCountBudget"
19+
},
20+
"type": "array"
21+
},
22+
"resourceSizes": {
23+
"description": "This is an array of `resourceSizeBudget` objects.",
24+
"items": {
25+
"$ref": "#/definitions/resourceSizeBudget"
26+
},
27+
"type": "array"
28+
},
29+
"resourceType": {
30+
"enum": ["document", "font", "image", "media", "other", "script", "stylesheet", "third-party", "total"],
31+
"type": "string"
32+
}
33+
},
34+
"required": ["resourceType"],
35+
"type": "object"
36+
},
37+
"resourceCountBudget": {
38+
"additionalProperties": false,
39+
"description": "A `resourceCountBudget` object consists of two required properties: `resourceType` and `budget`.",
40+
"properties": {
41+
"budget": {
42+
"description": "the number of requests",
43+
"type": "number"
44+
},
45+
"resourceType": {
46+
"$ref": "#/definitions/resourceType"
47+
}},
48+
"required": ["budget", "resourceType"],
49+
"type": "object"
50+
},
51+
"resourceSizeBudget": {
52+
"additionalProperties": false,
53+
"description": "A `resourceSizeBudget` object contains two properties: `resourceType` and `budget`.",
54+
"properties": {
55+
"budget": {
56+
"description": "the _transfer size_ of a resource, in kilobytes",
57+
"type": "number"
58+
},
59+
"resourceType": {
60+
"$ref": "#/definitions/resourceType"
61+
}
62+
},
63+
"type": "object"
64+
},
65+
"resourceType": {
66+
"description": "one of the [resource types](https://github.com/GoogleChrome/budget.json#resourcetype) supported by `budget.json`",
67+
"type": "string"
68+
}
69+
},
70+
"description": "the format used by Lighthouse for declaring performance budgets",
71+
"items": {
72+
"$ref": "#/definitions/budget"
73+
},
74+
"title": "Lighthouse budget",
75+
"type": "array"
76+
}

packages/game/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"rootDir": ".",
1818
"sourceRoot": ".",
1919
"strict": true,
20-
"types": ["node"]
20+
"types": ["@types/node"]
2121
},
2222
"exclude": ["./.vitest/"],
2323
"extends": "../../tsconfig.json",

0 commit comments

Comments
 (0)