Skip to content

Commit 5e5d5fe

Browse files
Merge pull request #1505 from aligent/feature/repo-standardization
refactor: standardize monorepo configuration
2 parents 5ef99d0 + 649b062 commit 5e5d5fe

File tree

28 files changed

+93
-267
lines changed

28 files changed

+93
-267
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": true,
3-
"ignorePatterns": ["**/*"],
3+
"ignorePatterns": ["**/node_modules/**", "**/dist/**", "**/build/**", "**/*.js.map"],
44
"plugins": ["@nx"],
55
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
66
"overrides": [
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
applyTo: '**'
3+
---
4+
5+
// This file is automatically generated by Nx Console
6+
7+
You are in an nx workspace using Nx 20.0.10 and yarn as the package manager.
8+
9+
You have access to the Nx MCP server and the tools it provides. Use them. Follow these guidelines in order to best help the user:
10+
11+
# General Guidelines
12+
- When answering questions, use the nx_workspace tool first to gain an understanding of the workspace architecture
13+
- For questions around nx configuration, best practices or if you're unsure, use the nx_docs tool to get relevant, up-to-date docs!! Always use this instead of assuming things about nx configuration
14+
- If the user needs help with an Nx configuration or project graph error, use the 'nx_workspace' tool to get any errors
15+
- To help answer questions about the workspace structure or simply help with demonstrating how tasks depend on each other, use the 'nx_visualize_graph' tool
16+
17+
# Generation Guidelines
18+
If the user wants to generate something, use the following flow:
19+
20+
- learn about the nx workspace and any specifics the user needs by using the 'nx_workspace' tool and the 'nx_project_details' tool if applicable
21+
- get the available generators using the 'nx_generators' tool
22+
- decide which generator to use. If no generators seem relevant, check the 'nx_available_plugins' tool to see if the user could install a plugin to help them
23+
- get generator details using the 'nx_generator_schema' tool
24+
- you may use the 'nx_docs' tool to learn more about a specific generator or technology if you're unsure
25+
- decide which options to provide in order to best complete the user's request. Don't make any assumptions and keep the options minimalistic
26+
- open the generator UI using the 'nx_open_generate_ui' tool
27+
- wait for the user to finish the generator
28+
- read the generator log file using the 'nx_read_generator_log' tool
29+
- use the information provided in the log file to answer the user's question or continue with what they were doing
30+
31+
32+

packages/basic-auth/.eslintrc.json

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

packages/basic-auth/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@
44
"description": "A Cloudfront Lambda@Edge stack for performing basic auth protection",
55
"main": "index.js",
66
"scripts": {
7-
"build": "tsc && cd ./lib/handlers && npm ci"
7+
"build": "tsc && cd ./lib/handlers && npm ci",
8+
"test": "npx nx test basic-auth",
9+
"lint": "npx nx lint basic-auth"
810
},
911
"repository": {
1012
"type": "git",
11-
"url": "git+https://github.com/aligent/aws-cdk-prerender-proxy-stack.git"
13+
"url": "git+https://github.com/aligent/aws-cdk-constructs.git"
1214
},
1315
"license": "MIT",
1416
"bugs": {
15-
"url": "https://github.com/aligent/aws-cdk-prerender-proxy-stack/issues"
17+
"url": "https://github.com/aligent/aws-cdk-constructs/issues"
1618
},
17-
"homepage": "https://github.com/aligent/aws-cdk-prerender-proxy-stack#readme",
19+
"homepage": "https://github.com/aligent/aws-cdk-constructs/tree/main/packages/basic-auth#readme",
1820
"devDependencies": {
1921
"@aligent/cdk-esbuild": "^2.0",
2022
"@types/aws-lambda": "^8.10.150",

packages/cloudfront-security-headers/.eslintrc.json

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

packages/cloudfront-security-headers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"types": "lib/index.d.ts",
77
"scripts": {
88
"build": "tsc && cd ./lib/handlers && npm ci",
9-
"watch": "tsc -w",
10-
"test": "jest"
9+
"test": "npx nx test cloudfront-security-headers",
10+
"lint": "npx nx lint cloudfront-security-headers"
1111
},
1212
"devDependencies": {
1313
"@aligent/cdk-esbuild": "^2.0",

packages/esbuild/.eslintrc.json

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

packages/esbuild/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"types": "index.d.ts",
77
"license": "MIT",
88
"scripts": {
9-
"build": "tsc"
9+
"build": "tsc",
10+
"test": "npx nx test esbuild",
11+
"lint": "npx nx lint esbuild"
1012
},
1113
"devDependencies": {
1214
"@types/jest": "^29.5.10",

packages/feature-env-handlers/.eslintrc.json

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

packages/feature-env-handlers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"build": "tsc",
8-
"watch": "tsc -w",
9-
"test": "echo \"No test specified\" && exit 0"
8+
"test": "npx nx test feature-env-handlers",
9+
"lint": "npx nx lint feature-env-handlers"
1010
},
1111
"repository": {
1212
"type": "git",

0 commit comments

Comments
 (0)