Skip to content

Commit 25e8bcb

Browse files
alan-agius4crisbeto
authored andcommitted
build: refactor location of best-practices.md
This commit moves the best-practices.md file from adev/src/context to packages/core/resources. The BUILD.bazel files and other configuration files have been updated to reflect this change.
1 parent 9b0940d commit 25e8bcb

7 files changed

Lines changed: 25 additions & 1 deletion

File tree

adev/src/assets/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ copy_to_directory(
134134
srcs = [
135135
"//adev/src/context",
136136
"//adev/src/context:llms_full",
137+
"//packages/core/resources:best-practices.md",
137138
],
138139
replace_prefixes = {
139140
"**/": "",

adev/src/content/ai/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ generate_guides(
99
data = [
1010
"//adev/src/assets/images:what_is_angular.svg",
1111
"//adev/src/context",
12+
"//packages/core/resources:best-practices.md",
1213
],
1314
visibility = ["//adev:__subpackages__"],
1415
)

adev/src/content/ai/develop-with-ai.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ NOTE: These files will be updated on a regular basis staying up to date with Ang
1010

1111
Here is a set of instructions to help LLMs generate correct code that follows Angular best practices. This file can be included as system instructions to your AI tooling or included along with your prompt as context.
1212

13-
<docs-code language="md" path="adev/src/context/best-practices.md" class="compact"/>
13+
<docs-code language="md" path="packages/core/resources/best-practices.md" class="compact"/>
1414

1515
<a download href="/assets/context/best-practices.md" target="_blank">Click here to download the best-practices.md file.</a>
1616

packages/core/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ ng_package(
5858
srcs = [
5959
"package.json",
6060
":event_dispatch_contract_binary",
61+
"//packages/core/resources",
6162
],
6263
nested_packages = [
6364
"//packages/core/schematics:npm_package",

packages/core/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
"migrations": "./schematics/migrations.json",
4141
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
4242
},
43+
"angular": {
44+
"bestPractices": {
45+
"format": "markdown",
46+
"path": "./resources/best-practices.md"
47+
}
48+
},
4349
"schematics": "./schematics/collection.json",
4450
"sideEffects": false
4551
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
exports_files(
2+
srcs = ["best-practices.md"],
3+
visibility = [
4+
"//adev/src/assets:__pkg__",
5+
"//adev/src/content/ai:__pkg__",
6+
],
7+
)
8+
9+
filegroup(
10+
name = "resources",
11+
srcs = ["best-practices.md"],
12+
visibility = [
13+
"//packages/core:__pkg__",
14+
],
15+
)

0 commit comments

Comments
 (0)