Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
app-to-addon-migrator
Advanced tools
An opinionated cli tool to migrate Ember components from app to addons within a Yarn workspace.
An opinionated cli tool to migrate Ember components from app to addons within a Yarn workspace.
NOTE: This cli tool works only with the following conventional folder structure for your Ember app.
|-app
|-packages
| |-addons
| |-engines
| | |-dashboards-engine
| | |-tickets-engine
packages/engines
folder.packages/addons
folder.npm i -g app-to-addon-migrator
ateam
atam [entity] [entity-name] [dest-folder]
atam route default packages/engines/dashboards-engine
After running the above command, the route default
from app/routes/default.js
will be
moved to packages/engines/dashboards-engine/addon/routes/default.js
If you just want to see/verify the movement use the --dry-run
or -d
option.
atam route default packages/engines/dashboards-engine -d
This will print something like (without actually copying the files):
Moving route.js
---------------
app/routes/helpdesk/default.js
packages/engines/dashboards-engine/addon/routes/default.js
Moving route template.hbs
-------------------------
app/templates/helpdeskdefault.hbs
packages/engines/dashboards-engine/addon/templates/default.hbs
...
If your source entities are namespaced within a folder you can use the -f
option to specify the same
before copying.
Say for example you want to move a component called widget
from app/components/dashboards
atam component widget packages/engines/dashboards-engine -f dashboards
atam adapter [adapter-name] Copy an adapter from app to addon
[destination]
atam component [component-name] Copy a component from app to addon
[destination]
atam constant [constant-name] Copy a constant from app to addon
[destination]
atam helper [helper-name] [destination] Copy a helper from app to addon
atam mixin [mixin-name] [destination] Copy a mixin from app to addon
atam model [model-name] [destination] Copy a model from app to addon
atam route [route-name] [destination] Copy a route with controller from
app to addon
atam routex [route-name] [destination] Copy a route and its dependent
components from app to addon
atam service [storage-name] Copy a storage from app to addon
[destination]
atam storage [storage-name] Copy a storage from app to addon
[destination]
atam util [util-name] [destination] Copy a util from app to addon
atam validator [validator-name] Copy a validator from app to addon
[destination]
Options:
--version Show version number [boolean]
--help Show help [boolean]
--dry-run, -d Dry Run: Verify the movement without executing [boolean]
--pods, -p Specify that the source components use PODS structure
[boolean] [default: true]
FAQs
An opinionated cli tool to migrate Ember components from app to addons within a Yarn workspace.
The npm package app-to-addon-migrator receives a total of 0 weekly downloads. As such, app-to-addon-migrator popularity was classified as not popular.
We found that app-to-addon-migrator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.