-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update hygen templates for new component generation (#3229)
- Loading branch information
Showing
9 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/components/_templates/mitosis/new/component/components.ejs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/components/_templates/mitosis/new/component/db-ui-components-angular.ejs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
inject: true | ||
to: src/styles/db-ui-components.scss | ||
to: src/styles/_custom-elements.scss | ||
after: angular-workaround | ||
--- | ||
db<%= name %>, | ||
db-<%= name %>, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/components/_templates/mitosis/new/showcases/patternhub-comp-parser-import.ejs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
inject: true | ||
to: "<%= showcases ? `../../showcases/patternhub/components/component-parser/index.tsx` : null %>" | ||
after: from 'react' | ||
before: } from '../../../../output/react/src/index'; | ||
--- | ||
import DB<%= h.changeCase.pascal(name) %> from '../src/components/<%= name %>/<%= name %>'; | ||
,DB<%= h.changeCase.pascal(name) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
packages/components/_templates/mitosis/new/showcases/patternhub-routes-imports.ejs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
inject: true | ||
to: "<%= showcases ? `../../showcases/patternhub/data/routes.tsx` : null %>" | ||
before: import Components from './components.json'; | ||
--- | ||
import * as <%= h.changeCase.pascal(name) %>Code from '../components/code-docs/<%= name %>'; | ||
import <%= h.changeCase.pascal(name) %>Component from '../../react-showcase/src/components/<%= name %>'; |
6 changes: 6 additions & 0 deletions
6
packages/components/_templates/mitosis/new/showcases/patternhub-routes.ejs.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
inject: true | ||
to: "<%= showcases ? `../../showcases/patternhub/data/routes.tsx` : null %>" | ||
after: const nameComponentMap = { | ||
--- | ||
'<%= name %>': <<%= h.changeCase.pascal(name) %>Component slotCode={<%= h.changeCase.pascal(name) %>Code} />, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters