@codedrifters/configulator 0.0.193 → 0.0.195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +14 -23
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +14 -23
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -934,28 +934,7 @@ var githubWorkflowBundle = {
|
|
|
934
934
|
"",
|
|
935
935
|
'## "Work on issue X" Automation',
|
|
936
936
|
"",
|
|
937
|
-
"When the user says **work on issue X** (or similar),
|
|
938
|
-
"",
|
|
939
|
-
"1. **Ensure you have the latest code** \u2014 switch to the default branch and pull:",
|
|
940
|
-
" - `git checkout {{repository.defaultBranch}} && git pull origin {{repository.defaultBranch}}`",
|
|
941
|
-
"2. **Fetch issue details** \u2014 use `gh issue view <number>` to get the title, body, and labels",
|
|
942
|
-
"3. **Determine branch type** from the issue title prefix:",
|
|
943
|
-
" - `feat:` / `feature:` \u2192 `feat/`",
|
|
944
|
-
" - `fix:` / `bug:` \u2192 `fix/`",
|
|
945
|
-
" - `docs:` \u2192 `docs/`",
|
|
946
|
-
" - `chore:` / `refactor:` \u2192 `chore/`",
|
|
947
|
-
" - `test:` \u2192 `test/`",
|
|
948
|
-
" - No prefix \u2192 `feat/`",
|
|
949
|
-
"4. **Create a branch** following the naming convention: `<type>/<issue-number>-<issue-slug>` (e.g., `feat/42-add-login`)",
|
|
950
|
-
"5. **Checkout the branch** locally",
|
|
951
|
-
"6. **Link the branch to the issue** by posting a comment: `gh issue comment <number> --body 'Branch: \\`<branch-name>\\`'`",
|
|
952
|
-
"7. **Create an implementation plan** \u2014 analyze the issue requirements, explore the relevant codebase, and present a plan for the user to approve before starting any implementation",
|
|
953
|
-
"",
|
|
954
|
-
"### Important",
|
|
955
|
-
"",
|
|
956
|
-
"- Never begin implementation without the user approving the plan",
|
|
957
|
-
"- If the issue title has no conventional prefix, default to `feat/`",
|
|
958
|
-
"- Keep the slug short (3-5 words max, kebab-case)"
|
|
937
|
+
"When the user says **work on issue X** (or similar), invoke the `issue-worker` agent in interactive mode, passing the issue number in the prompt. Do not perform the branch creation, issue fetching, or planning steps yourself \u2014 the agent handles the full workflow (claim, branch, plan, implement, PR) and will pause for your approval at the appropriate checkpoints."
|
|
959
938
|
].join("\n"),
|
|
960
939
|
tags: ["workflow"]
|
|
961
940
|
},
|
|
@@ -5868,12 +5847,24 @@ var AstroProject = class extends TypeScriptProject {
|
|
|
5868
5847
|
});
|
|
5869
5848
|
}
|
|
5870
5849
|
this.addDeps(`astro@${astroVersion}`);
|
|
5871
|
-
this.addDevDeps(
|
|
5850
|
+
this.addDevDeps(
|
|
5851
|
+
"@astrojs/check",
|
|
5852
|
+
"astro-eslint-parser",
|
|
5853
|
+
"eslint-plugin-astro",
|
|
5854
|
+
"prettier-plugin-astro"
|
|
5855
|
+
);
|
|
5872
5856
|
const prettierConfig = this.tryFindObjectFile(".prettierrc.json");
|
|
5873
5857
|
prettierConfig?.addOverride("plugins", ["prettier-plugin-astro"]);
|
|
5874
5858
|
prettierConfig?.addOverride("overrides", [
|
|
5875
5859
|
{ files: "*.astro", options: { parser: "astro" } }
|
|
5876
5860
|
]);
|
|
5861
|
+
this.eslint?.addPlugins("astro");
|
|
5862
|
+
this.eslint?.addExtends("plugin:astro/recommended");
|
|
5863
|
+
this.eslint?.addOverride({
|
|
5864
|
+
files: ["*.astro"],
|
|
5865
|
+
parser: "astro-eslint-parser"
|
|
5866
|
+
});
|
|
5867
|
+
this.eslint?.addLintPattern("src/**/*.astro");
|
|
5877
5868
|
this.gitignore.addPatterns(".astro", ".vercel", ".netlify");
|
|
5878
5869
|
const turbo = TurboRepo.of(this);
|
|
5879
5870
|
if (turbo?.compileTask) {
|