An open API service indexing awesome lists of open source software.

https://github.com/ijlee2/create-v2-addon-repo

Codemod to create a repo with v2 addons
https://github.com/ijlee2/create-v2-addon-repo

codemod ember-addon ember-codemod emberjs embroider

Last synced: 21 days ago
JSON representation

Codemod to create a repo with v2 addons

Awesome Lists containing this project

README

          

# <%= options.addon.name %>

## Local development

Check and fix errors

```sh
# Check errors
pnpm lint

# Fix errors
pnpm lint:fix
```

Build and rebuild addon

```sh
# Build addon
pnpm build

# Live reload ("keep building")
pnpm start
```

Create files

Run the `generate` command (from anywhere inside the addon) to create the source code and its test file.

```sh
pnpm addon generate [options]

# Example: Create a component
pnpm addon generate component ui/form/input

# Example: Use alias
pnpm addon g component ui/form/textarea
```

There may be more than 1 blueprint available. You can pass `--blueprint` to select the right one.

```sh
# Example: Create a tag component
pnpm addon g component ui/form/select --blueprint glimmer-strict
```

For more information, pass `--help`.

Remove files

Run the `destroy` command (from anywhere inside the addon) to remove the source code and its test file.

```sh
pnpm addon destroy

# Example: Remove a component
pnpm addon destroy component ui/form/input

# Example: Use alias
pnpm addon d component ui/form/textarea
```

## Compatibility

- Node.js v20 or above