Skip to content

Commit

Permalink
fix: update hygen templates to be generated in src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kgajera committed May 2, 2023
1 parent f8bafba commit 0d8c2a3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
to: cells/<%= [h.inflection.camelize(h.dirName(name)), h.camelizedBaseName(name)].filter(Boolean).join('/') %>.tsx
to: src/cells/<%= [h.inflection.camelize(h.dirName(name)), h.camelizedBaseName(name)].filter(Boolean).join('/') %>.tsx
---
<% formattedPath = h.camelizedPathName(name) -%>
<% component = h.camelizedBaseName(name) -%>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
to: components/<%= [h.inflection.camelize(h.dirName(name)), h.camelizedBaseName(name)].filter(Boolean).join('/') %>.tsx
to: src/components/<%= [h.inflection.camelize(h.dirName(name)), h.camelizedBaseName(name)].filter(Boolean).join('/') %>.tsx
---
<% formattedPath = h.camelizedPathName(name) -%>
<% component = h.camelizedBaseName(name) -%>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
to: pages/<%= name %>.tsx
to: src/pages/<%= name %>.tsx
---
<% formattedPath = h.camelizedPathName(name).replace('/','') -%>
<% pageName = `${formattedPath}Page` -%>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
inject: true
to: server/routers/_app.ts
to: src/server/routers/_app.ts
before: \}\);\n\nexport type AppRouter
skip_if: "<%= name %>: <%= name %>Router,"
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
inject: true
to: server/routers/_app.ts
to: src/server/routers/_app.ts
before: \nimport \{ t \} from '@/server/trpc';
skip_if: import { <%= h.inflection.camelize(name).toLowerCase() %>Router } from './<%= h.inflection.camelize(name).toLowerCase() %>';
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
to: server/routers/<%= name %>.ts
to: src/server/routers/<%= name %>.ts
---
<% camelized = h.inflection.camelize(name) -%>
<% plural = h.inflection.pluralize(camelized) -%>
Expand Down

0 comments on commit 0d8c2a3

Please sign in to comment.