Skip to content

Commit

Permalink
[Themes] Add TODOs for template generator improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmengo committed Dec 20, 2024
1 parent c1d608c commit 74e4ca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/theme/src/cli/services/generate/sections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export const JSON_SECTION_HEADER = `/*
* ------------------------------------------------------------
*/`

// TODO: move name / path resolution logic upstream

Check failure on line 22 in packages/theme/src/cli/services/generate/sections.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

packages/theme/src/cli/services/generate/sections.ts#L22

[no-warning-comments] Unexpected 'todo' comment: 'TODO: move name / path resolution logic...'.
// TODO: Rather than throwing an error here we should prompt for name upstream

Check failure on line 23 in packages/theme/src/cli/services/generate/sections.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

packages/theme/src/cli/services/generate/sections.ts#L23

[no-warning-comments] Unexpected 'todo' comment: 'TODO: Rather than throwing an error here...'.
export async function generateSection(options: SectionGeneratorOptions) {
const sectionPath = joinPath(options.path, 'sections', `${options.name}.${options.fileType}`)

Expand Down
2 changes: 2 additions & 0 deletions packages/theme/src/cli/services/generate/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import {writeFile, readFile, fileExists} from '@shopify/cli-kit/node/fs'
import {joinPath} from '@shopify/cli-kit/node/path'
import {outputInfo} from '@shopify/cli-kit/node/output'

// TODO: move name / path resolution logic upstream

Check failure on line 6 in packages/theme/src/cli/services/generate/templates.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

packages/theme/src/cli/services/generate/templates.ts#L6

[no-warning-comments] Unexpected 'todo' comment: 'TODO: move name / path resolution logic...'.
// TODO: add type flag

Check failure on line 7 in packages/theme/src/cli/services/generate/templates.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

packages/theme/src/cli/services/generate/templates.ts#L7

[no-warning-comments] Unexpected 'todo' comment: 'TODO: add type flag'.
export interface TemplateGeneratorOptions {

Check failure on line 8 in packages/theme/src/cli/services/generate/templates.ts

View workflow job for this annotation

GitHub Actions / knip-reporter-annotations-check

packages/theme/src/cli/services/generate/templates.ts#L8

'TemplateGeneratorOptions' is an unused type
name: string | undefined
path: string
Expand Down

0 comments on commit 74e4ca3

Please sign in to comment.