move-ember-components
Move Ember.js components into different folders within app/components
Last updated 2 months ago by rajasegar .
ISC · Original npm · Tarball · package.json
$ cnpm install move-ember-components 
SYNC missed versions from official npm registry.

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 <source-path> <destination-path>

Or using npx

npx move-ember-components <source-path> <destination-path>

You can also use the shorthand version mec for the cli

mec <source-path> <destination-path>
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.js

Moving component template.hbs
-------------------------
app/components/hello-world/template.hbs
app/components/module-hello-world/hello-world/template.hbs

Moving component tests
------------------
tests/integration/components/hello-world/component-test.js
tests/integration/components/module-hello-world/hello-world/component-test.js

Success: Component Template hello-world.hbs moved
Success: Component Test hello-world.js moved
Success: Component hello-world.js moved

Processing 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

Current Tags

  • 1.3.0                                ...           latest (2 months ago)

7 Versions

  • 1.3.0                                ...           2 months ago
  • 1.2.1                                ...           2 months ago
  • 1.2.0                                ...           2 months ago
  • 1.1.2                                ...           2 months ago
  • 1.1.1                                ...           2 months ago
  • 1.1.0                                ...           2 months ago
  • 1.0.2                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 69
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |