ijlee2 / ember-codemod-v1-to-v2 Goto Github PK
View Code? Open in Web Editor NEWCodemod to convert Ember addons to v2 addon format
License: MIT License
Codemod to convert Ember addons to v2 addon format
License: MIT License
After running this codemod the test-app package.json
has the following script:
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
when I run npm run test
in add-on root, I see the following error:
[test:ember-compatibility] Error!
[test:ember-compatibility] Error: Source and destination must not be the same.
[test:ember-compatibility] Error: Source and destination must not be the same.
[test:ember-compatibility] at /Users/steve/code/ember/ember-container-query/node_modules/fs-extra/lib/util/stat.js:39:17
[test:ember-compatibility] at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
I had a look at ember-container-query and noticed that the script is different:
"test": "ember test",
If I apply those changes to my add-on, npm run test
works fine again, but it does not seem to execute the ember-try scenarios.
How to reproduce
If I modify ember-container-query/test-app/package.json
to have the same content as my add-on after applying this codemod:
"test": "ember test",
"test:ember-compatibility": "../node_modules/.bin/ember try:all"
I am seeing the same error when running npm run test
in the add-on root.
I currently have no idea if this is an issue with the script this codemod generates or if this is an issue with embers tooling itself. Unfortunately searching for similar issues did not return any useful result so far.
A placeholder issue for Polaris development.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.