-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feature: Updated blueprints for generate component * bugfix: Derived addon location from name to improve DX * chore: Updated test setups * chore: Updated fixtures * chore: Updated README * chore: Ran update-blueprints-addon * chore: Updated blueprints (create-v2-addon-repo) * chore: Added changeset --------- Co-authored-by: ijlee2 <ijlee2@users.noreply.github.com>
- Loading branch information
Showing
460 changed files
with
2,768 additions
and
1,577 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
"create-v2-addon-repo": minor | ||
--- | ||
|
||
Updated blueprints |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
...es/blueprints-addon/src/blueprints/run-generate/component/glimmer-strict/__fileName__.gts
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,20 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
import styles from './<%= data.localFileName %>.css'; | ||
|
||
interface <%= options.entity.classifiedName %>Signature { | ||
Args: {}; | ||
Blocks: { | ||
default: []; | ||
}; | ||
Element: null; | ||
} | ||
|
||
// eslint-disable-next-line ember/no-empty-glimmer-component-classes | ||
export default class <%= options.entity.classifiedName %>Component extends Component<<%= options.entity.classifiedName %>Signature> { | ||
<template> | ||
<div class={{styles.container}}> | ||
{{yield}} | ||
</div> | ||
</template> | ||
} |
3 changes: 3 additions & 0 deletions
3
...ueprints-addon/src/blueprints/run-generate/component/template-only-loose/__fileName__.hbs
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,3 @@ | ||
<div> | ||
{{yield}} | ||
</div> |
14 changes: 14 additions & 0 deletions
14
...lueprints-addon/src/blueprints/run-generate/component/template-only-loose/__fileName__.ts
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,14 @@ | ||
import templateOnlyComponent from '@ember/component/template-only'; | ||
|
||
interface <%= options.entity.classifiedName %>Signature { | ||
Args: {}; | ||
Blocks: { | ||
default: []; | ||
}; | ||
Element: null; | ||
} | ||
|
||
const <%= options.entity.classifiedName %>Component = | ||
templateOnlyComponent<<%= options.entity.classifiedName %>Signature>(); | ||
|
||
export default <%= options.entity.classifiedName %>Component; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
15 changes: 0 additions & 15 deletions
15
.../tests/fixtures/run-destroy/input/packages/ui/button/src/components/my-example/glimmer.ts
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/blueprints-addon/tests/fixtures/run-destroy/input/packages/ui/button/src/index.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...ddon/tests/fixtures/run-destroy/input/packages/ui/button/src/services/my-example/class.ts
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...prints-addon/tests/fixtures/run-destroy/input/packages/ui/button/src/template-registry.ts
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ddon/tests/fixtures/run-destroy/input/packages/ui/button/src/utils/my-example/function.ts
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...roy/input/packages/ui/button/package.json → ...stroy/input/packages/ui/form/package.json
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,5 +1,5 @@ | ||
{ | ||
"name": "@my-org-ui/button", | ||
"name": "@my-org-ui/form", | ||
"version": "0.0.0", | ||
"ember-addon": { | ||
"app-js": {} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
.../fixtures/run-destroy/input/packages/ui/form/src/components/my-component/glimmer-loose.ts
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,15 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
import styles from './glimmer-loose.css'; | ||
|
||
interface MyComponentGlimmerLooseSignature { | ||
Args: {}; | ||
Blocks: { | ||
default: []; | ||
}; | ||
Element: null; | ||
} | ||
|
||
export default class MyComponentGlimmerLooseComponent extends Component<MyComponentGlimmerLooseSignature> { | ||
styles = styles; | ||
} |
File renamed without changes.
File renamed without changes.
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: 3 additions & 0 deletions
3
...es/run-destroy/input/packages/ui/form/src/components/my-component/template-only-loose.hbs
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,3 @@ | ||
<div> | ||
{{yield}} | ||
</div> |
14 changes: 14 additions & 0 deletions
14
...res/run-destroy/input/packages/ui/form/src/components/my-component/template-only-loose.ts
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,14 @@ | ||
import templateOnlyComponent from '@ember/component/template-only'; | ||
|
||
interface MyComponentTemplateOnlyLooseSignature { | ||
Args: {}; | ||
Blocks: { | ||
default: []; | ||
}; | ||
Element: null; | ||
} | ||
|
||
const MyComponentTemplateOnlyLooseComponent = | ||
templateOnlyComponent<MyComponentTemplateOnlyLooseSignature>(); | ||
|
||
export default MyComponentTemplateOnlyLooseComponent; |
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
...s/run-destroy/input/packages/ui/form/src/components/my-component/template-only-strict.gts
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,20 @@ | ||
import type { TOC } from '@ember/component/template-only'; | ||
|
||
import styles from './template-only-strict.css'; | ||
|
||
interface MyComponentTemplateOnlyStrictSignature { | ||
Args: {}; | ||
Blocks: { | ||
default: []; | ||
}; | ||
Element: null; | ||
} | ||
|
||
const MyComponentTemplateOnlyStrictComponent: TOC<MyComponentTemplateOnlyStrictSignature> = | ||
<template> | ||
<div class={{styles.container}}> | ||
{{yield}} | ||
</div> | ||
</template>; | ||
|
||
export default MyComponentTemplateOnlyStrictComponent; |
Oops, something went wrong.