Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajasegar/move-ember-components
Move Ember.js components within app/components folder or namespace them.
https://github.com/rajasegar/move-ember-components
cli ember emberjs
Last synced: 8 days ago
JSON representation
Move Ember.js components within app/components folder or namespace them.
- Host: GitHub
- URL: https://github.com/rajasegar/move-ember-components
- Owner: rajasegar
- Created: 2020-08-04T07:24:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-16T19:47:24.000Z (about 1 year ago)
- Last Synced: 2024-10-13T22:33:36.867Z (23 days ago)
- Topics: cli, ember, emberjs
- Language: JavaScript
- Homepage:
- Size: 448 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# move-ember-components
Move your Ember.js components to different folders within `app/components` and
update their references in the templates using codemods.## Install
```
npm i -g move-ember-components
```## Usage
```
move-ember-components
```Or using npx
```
npx move-ember-components
```You can also use the shorthand version `mec` for the cli
```
mec
``````
mec hello-world module-hello-world
```This will move the component `app/components/hello-world` to `app/components/module-hello-world/hello-world`.
This will output something like:
```
Moving component.js
---------------
app/components/hello-world/component.js
app/components/module-hello-world/hello-world/component.jsMoving component template.hbs
-------------------------
app/components/hello-world/template.hbs
app/components/module-hello-world/hello-world/template.hbsMoving component tests
------------------
tests/integration/components/hello-world/component-test.js
tests/integration/components/module-hello-world/hello-world/component-test.jsSuccess: Component Template hello-world.hbs moved
Success: Component Test hello-world.js moved
Success: Component hello-world.js movedProcessing 767 files...
Spawning 11 workers...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 50 files to free worker...
Sending 17 files to free worker...
All done.
Results:
0 errors
764 unmodified
2 skipped
1 ok
Time elapsed: 7.608seconds```
For dry run you can pass in the `--dry-run` or `-d` option
```
mec hello-world module-hello-world --dry-run
```