Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed blueprints package #34

Merged
merged 6 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/ten-seas-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-v2-addon-repo": minor
---

Renamed blueprints package
1 change: 0 additions & 1 deletion packages/blueprints-addon/CHANGELOG.md

This file was deleted.

1 change: 1 addition & 0 deletions packages/blueprints-v2-addon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# blueprints-v2-addon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# blueprints-addon
# blueprints-v2-addon

_CLI for v2 addons_
_Blueprints for v2 addons_

1. [Features](#features)
1. [Usage](#usage)
Expand All @@ -20,7 +20,7 @@ Standardize how you write v2 addons:

## Usage

Install `blueprints-addon` as a development dependency in these locations:
Install `blueprints-v2-addon` as a development dependency in these locations:

<details>

Expand All @@ -30,10 +30,10 @@ Install `blueprints-addon` as a development dependency in these locations:
/* package.json */
{
"scripts": {
"addon": "blueprints-addon"
"addon": "blueprints-v2-addon"
},
"devDependencies": {
"blueprints-addon": "workspace:*"
"blueprints-v2-addon": "workspace:*"
}
}
```
Expand All @@ -48,10 +48,10 @@ Install `blueprints-addon` as a development dependency in these locations:
/* Example: packages/ui/form/package.json */
{
"scripts": {
"addon": "blueprints-addon --test-app-location '../../../test-app'"
"addon": "blueprints-v2-addon --test-app-location '../../../test-app'"
},
"devDependencies": {
"blueprints-addon": "workspace:*"
"blueprints-v2-addon": "workspace:*"
}
}
```
Expand All @@ -60,7 +60,7 @@ Install `blueprints-addon` as a development dependency in these locations:

> [!NOTE]
>
> After you build `blueprints-addon`, please run `pnpm install` at the workspace root so that the blueprints are available.
> After you build `blueprints-v2-addon`, please run `pnpm install` at the workspace root so that the blueprints are available.


### Create addon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { hideBin } from 'yargs/helpers';
import { runDestroy, runGenerate, runNew } from '../src/index.js';

// Provide a title to the process in `ps`
process.title = 'blueprints-addon';
process.title = 'blueprints-v2-addon';

// Set codemod options
const DEFAULT_BLUEPRINT_VALUE = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

COMMAND="blueprints-addon"
COMMAND="blueprints-v2-addon"
ENVIRONMENT=$1

if [ $ENVIRONMENT = "--production" ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "blueprints-addon",
"name": "blueprints-v2-addon",
"version": "0.0.0",
"private": true,
"description": "CLI for v2 addons",
"description": "Blueprints for v2 addons",
"keywords": [
"codemod",
"ember-codemod",
Expand All @@ -16,7 +16,7 @@
"author": "Isaac J. Lee",
"type": "module",
"main": "dist/src/index.js",
"bin": "dist/bin/blueprints-addon.js",
"bin": "dist/bin/blueprints-v2-addon.js",
"directories": {
"test": "tests"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"public"
],
"scripts": {
"addon": "blueprints-addon --test-app-location '<%= options.addon.locationInverse %>/<%= options.testApp.location %>'",
"addon": "blueprints-v2-addon --test-app-location '<%= options.addon.locationInverse %>/<%= options.testApp.location %>'",
"build": "concurrently 'pnpm:build:*' --names 'build:'",
"build:js": "rollup --config",
"build:types": "glint --declaration",
Expand Down Expand Up @@ -79,7 +79,7 @@
"@shared-configs/stylelint": "workspace:*",
"@shared-configs/typescript": "workspace:*",
"babel-plugin-ember-template-compilation": "^2.2.5",
"blueprints-addon": "workspace:*",
"blueprints-v2-addon": "workspace:*",
"concurrently": "^8.2.2",
"ember-modifier": "^4.2.0",
"ember-source": "~5.10.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"public"
],
"scripts": {
"addon": "blueprints-addon --test-app-location '../../../test-app'",
"addon": "blueprints-v2-addon --test-app-location '../../../test-app'",
"build": "concurrently 'pnpm:build:*' --names 'build:'",
"build:js": "rollup --config",
"build:types": "glint --declaration",
Expand Down Expand Up @@ -79,7 +79,7 @@
"@shared-configs/stylelint": "workspace:*",
"@shared-configs/typescript": "workspace:*",
"babel-plugin-ember-template-compilation": "^2.2.5",
"blueprints-addon": "workspace:*",
"blueprints-v2-addon": "workspace:*",
"concurrently": "^8.2.2",
"ember-modifier": "^4.2.0",
"ember-source": "~5.10.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,52 +19,52 @@ pnpm build
rm -r "tests/fixtures/run-destroy/output"
cp -r "tests/fixtures/run-destroy/input" "tests/fixtures/run-destroy/output"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy component my-component/glimmer-loose \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy component my-component/glimmer-strict \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy component my-component/template-only-loose \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy component my-component/template-only-strict \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy helper my-helper/class \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy helper my-helper/function \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy modifier my-modifier/class \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy modifier my-modifier/function \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy service my-service/class \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
destroy util my-util/function \
--root "tests/fixtures/run-destroy/output/packages/ui/form" \
--test-app-location "../../../test-app"
Expand All @@ -73,60 +73,60 @@ cp -r "tests/fixtures/run-destroy/input" "tests/fixtures/run-destroy/output"
rm -r "tests/fixtures/run-generate/output"
cp -r "tests/fixtures/run-generate/input" "tests/fixtures/run-generate/output"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate component my-component/glimmer-loose \
--blueprint "glimmer-loose" \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate component my-component/glimmer-strict \
--blueprint "glimmer-strict" \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate component my-component/template-only-loose \
--blueprint "template-only-loose" \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate component my-component/template-only-strict \
--blueprint "template-only-strict" \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate helper my-helper/class \
--blueprint "class" \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate helper my-helper/function \
--blueprint "function" \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate modifier my-modifier/class \
--blueprint "class" \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate modifier my-modifier/function \
--blueprint "function" \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate service my-service/class \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
generate util my-util/function \
--root "tests/fixtures/run-generate/output/packages/ui/form" \
--test-app-location "../../../test-app"
Expand All @@ -135,7 +135,7 @@ cp -r "tests/fixtures/run-generate/input" "tests/fixtures/run-generate/output"
rm -r "tests/fixtures/run-new/output"
cp -r "tests/fixtures/run-new/input" "tests/fixtures/run-new/output"

./dist/bin/blueprints-addon.js \
./dist/bin/blueprints-v2-addon.js \
new @my-org-ui/form \
--location "ui/form" \
--root "tests/fixtures/run-new/output"
2 changes: 1 addition & 1 deletion packages/create-v2-addon-repo/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
/.prettierrc.cjs
/build.sh
/tests/
/update-blueprints-addon.sh
/update-blueprints-v2-addon.sh
/update-test-fixtures.sh
2 changes: 1 addition & 1 deletion packages/create-v2-addon-repo/src/blueprints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
You can get started in 3 steps:

1. Run `pnpm install` to install project dependencies.
1. Run `pnpm build` to build `blueprints-addon` and all addons in the `packages` folder.
1. Run `pnpm build` to build `blueprints-v2-addon` and all addons in the `packages` folder.
1. Run `pnpm start` to start `docs-app` ([http://localhost:4200](http://localhost:4200)) and `test-app` ([http://localhost:4300/tests](http://localhost:4300/tests?hidepassed)).


Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# blueprints-v2-addon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# blueprints-addon
# blueprints-v2-addon

_CLI for v2 addons_
_Blueprints for v2 addons_

1. [Features](#features)
1. [Usage](#usage)
Expand All @@ -20,7 +20,7 @@ Standardize how you write v2 addons:

## Usage

Install `blueprints-addon` as a development dependency in these locations:
Install `blueprints-v2-addon` as a development dependency in these locations:

<details>

Expand All @@ -30,10 +30,10 @@ Install `blueprints-addon` as a development dependency in these locations:
/* package.json */
{
"scripts": {
"addon": "blueprints-addon"
"addon": "blueprints-v2-addon"
},
"devDependencies": {
"blueprints-addon": "workspace:*"
"blueprints-v2-addon": "workspace:*"
}
}
```
Expand All @@ -48,10 +48,10 @@ Install `blueprints-addon` as a development dependency in these locations:
/* Example: packages/ui/form/package.json */
{
"scripts": {
"addon": "blueprints-addon --test-app-location '../../../test-app'"
"addon": "blueprints-v2-addon --test-app-location '../../../test-app'"
},
"devDependencies": {
"blueprints-addon": "workspace:*"
"blueprints-v2-addon": "workspace:*"
}
}
```
Expand All @@ -60,7 +60,7 @@ Install `blueprints-addon` as a development dependency in these locations:

> [!NOTE]
>
> After you build `blueprints-addon`, please run `pnpm install` at the workspace root so that the blueprints are available.
> After you build `blueprints-v2-addon`, please run `pnpm install` at the workspace root so that the blueprints are available.


### Create addon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { hideBin } from 'yargs/helpers';
import { runDestroy, runGenerate, runNew } from '../src/index.js';

// Provide a title to the process in `ps`
process.title = 'blueprints-addon';
process.title = 'blueprints-v2-addon';

// Set codemod options
const DEFAULT_BLUEPRINT_VALUE = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

COMMAND="blueprints-addon"
COMMAND="blueprints-v2-addon"
ENVIRONMENT=$1

if [ $ENVIRONMENT = "--production" ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "blueprints-addon",
"name": "blueprints-v2-addon",
"version": "0.0.0",
"private": true,
"description": "CLI for v2 addons",
"description": "Blueprints for v2 addons",
"keywords": [
"codemod",
"ember-codemod",
Expand All @@ -16,7 +16,7 @@
"author": "Isaac J. Lee",
"type": "module",
"main": "dist/src/index.js",
"bin": "dist/bin/blueprints-addon.js",
"bin": "dist/bin/blueprints-v2-addon.js",
"directories": {
"test": "tests"
},
Expand Down
Loading