-
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: Provided feedback to end-developer * chore: Simplified scripts * feature: Added READMEs * refactor: Exposed default blueprint values * feature: Updated lint configurations to support <template> tag * feature: Allowed *.gts test files and took the test-app name into account * chore: Updated fixtures (blueprints-addon) * chore: Updated the update-blueprints-addon script * chore: Updated fixtures (create-v2-addon-repo) * chore: Added changeset --------- Co-authored-by: ijlee2 <ijlee2@users.noreply.github.com>
- Loading branch information
Showing
138 changed files
with
813 additions
and
505 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1 @@ | ||
# blueprints-addon | ||
|
||
## 0.3.0 | ||
|
||
### Minor Changes | ||
|
||
- [#16](https://github.com/ijlee2/embroider-toolbox/pull/16) Added blueprints for create-v2-addon-repo (Part 5) ([@ijlee2](https://github.com/ijlee2)) | ||
|
||
## 0.2.0 | ||
|
||
### Minor Changes | ||
|
||
- [#10](https://github.com/ijlee2/embroider-toolbox/pull/10) Simplified API for new command and tests ([@ijlee2](https://github.com/ijlee2)) | ||
- [#13](https://github.com/ijlee2/embroider-toolbox/pull/13) Added blueprints for create-v2-addon-repo (Part 2) ([@ijlee2](https://github.com/ijlee2)) | ||
- [#14](https://github.com/ijlee2/embroider-toolbox/pull/14) Added blueprints for create-v2-addon-repo (Part 3) ([@ijlee2](https://github.com/ijlee2)) | ||
|
||
### Patch Changes | ||
|
||
- [#12](https://github.com/ijlee2/embroider-toolbox/pull/12) Specified the location of test-app for generate and destroy commands ([@ijlee2](https://github.com/ijlee2)) | ||
|
||
## 0.1.0 | ||
|
||
### Minor Changes | ||
|
||
- [#2](https://github.com/ijlee2/embroider-toolbox/pull/2) Scaffolded blueprints-addon ([@ijlee2](https://github.com/ijlee2)) | ||
- [#3](https://github.com/ijlee2/embroider-toolbox/pull/3) Implemented new command ([@ijlee2](https://github.com/ijlee2)) | ||
- [#4](https://github.com/ijlee2/embroider-toolbox/pull/4) Scaffolded generate and destroy commands ([@ijlee2](https://github.com/ijlee2)) | ||
- [#5](https://github.com/ijlee2/embroider-toolbox/pull/5) Separated generate commands ([@ijlee2](https://github.com/ijlee2)) | ||
- [#6](https://github.com/ijlee2/embroider-toolbox/pull/6) Implemented generate commands (Part 1) ([@ijlee2](https://github.com/ijlee2)) | ||
- [#7](https://github.com/ijlee2/embroider-toolbox/pull/7) Implemented generate commands (Part 2) ([@ijlee2](https://github.com/ijlee2)) | ||
- [#8](https://github.com/ijlee2/embroider-toolbox/pull/8) Implemented destroy commands ([@ijlee2](https://github.com/ijlee2)) |
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 +1,73 @@ | ||
# blueprints-addon | ||
|
||
_CLI for v2 addons_ | ||
|
||
1. [Features](#features) | ||
1. [Usage](#usage) | ||
1. [Compatibility](#compatibility) | ||
|
||
|
||
## Features | ||
|
||
Standardize how you write v2 addons: | ||
|
||
- Run `new` to create a v2 addon | ||
- Run `generate` to create source and test files | ||
- Run `destroy` to remove source and test files | ||
- Blueprints available for components, helpers, modifiers, services, and utilities | ||
- Tailor addon blueprints to your needs | ||
|
||
|
||
## Usage | ||
|
||
Install `blueprints-addon` as a development dependency in these locations: | ||
|
||
<details> | ||
|
||
<summary>Workspace root</summary> | ||
|
||
```json5 | ||
/* package.json */ | ||
{ | ||
"scripts": { | ||
"addon": "blueprints-addon" | ||
}, | ||
"devDependencies": { | ||
"blueprints-addon": "workspace:*" | ||
} | ||
} | ||
``` | ||
|
||
</details> | ||
|
||
<details> | ||
|
||
<summary>V2 addon in <code>packages</code></summary> | ||
|
||
```json5 | ||
/* Example: packages/ui/button/package.json */ | ||
{ | ||
"scripts": { | ||
"addon": "blueprints-addon --test-app-location '../../../test-app'" | ||
}, | ||
"devDependencies": { | ||
"blueprints-addon": "workspace:*" | ||
} | ||
} | ||
``` | ||
|
||
</details> | ||
|
||
> [!NOTE] | ||
> | ||
> After you build `blueprints-addon`, please run `pnpm install` at the workspace root so that the blueprints are available. | ||
|
||
## Compatibility | ||
|
||
- Node.js v18 or above | ||
|
||
|
||
## License | ||
|
||
This project is licensed under the [MIT License](LICENSE.md). |
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
2 changes: 1 addition & 1 deletion
2
...ueprints-addon/src/blueprints/run-generate/component/__testAppLocation__/__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
2 changes: 1 addition & 1 deletion
2
...lueprints-addon/src/blueprints/run-generate/component/__testAppLocation__/__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
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
2 changes: 1 addition & 1 deletion
2
.../blueprints-addon/src/blueprints/run-generate/helper/__testAppLocation__/__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
2 changes: 1 addition & 1 deletion
2
...s/blueprints-addon/src/blueprints/run-generate/helper/__testAppLocation__/__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
2 changes: 1 addition & 1 deletion
2
...lueprints-addon/src/blueprints/run-generate/modifier/__testAppLocation__/__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
2 changes: 1 addition & 1 deletion
2
...blueprints-addon/src/blueprints/run-generate/modifier/__testAppLocation__/__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
2 changes: 1 addition & 1 deletion
2
.../blueprints-addon/src/blueprints/run-generate/service/__testAppLocation__/__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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,3 @@ | |
# compiled output | ||
/declarations/ | ||
/dist/ | ||
|
||
# <template> tag | ||
/**/*.gjs | ||
/**/*.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
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
Oops, something went wrong.