ember-codemod-pod-to-octane 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -16,7 +16,7 @@ npx ember-codemod-pod-to-octane <arguments>
16
16
 
17
17
  Step 2. Remove `podModulePrefix` from `config/environment.js` and `usePods` from `.ember-cli`.
18
18
 
19
- Step 3. Update relative paths in `import` statements.
19
+ Step 3. Update references to the moved files (e.g. `import` statement, `composes` property from `ember-css-modules`).
20
20
 
21
21
 
22
22
  ### Arguments
@@ -45,19 +45,26 @@ npx ember-codemod-pod-to-octane --test
45
45
  <details>
46
46
  <summary>Optional: Specify the project root</summary>
47
47
 
48
- Pass `--root` to run the codemod against (1) a project somewhere else or (2) multiple projects (assuming you have an automation script).
48
+ Pass `--root` to run the codemod against a project somewhere else.
49
49
 
50
50
  ```sh
51
51
  npx ember-codemod-pod-to-octane --root=<your/project/path>
52
52
  ```
53
53
 
54
+ Note, you can use `--root` to un-pod the demo app of an Ember addon.
55
+
56
+ ```sh
57
+ # If the current directory is the addon root
58
+ npx ember-codemod-pod-to-octane --root=tests/dummy/app --type=app
59
+ ```
60
+
54
61
  </details>
55
62
 
56
63
 
57
64
  <details>
58
65
  <summary>Optional: Specify the pod path</summary>
59
66
 
60
- Pass `--pod-path` if `podModulePrefix` is set in `config/environment.js` and has a different value than `modulePrefix`. "Subtract" `modulePrefix` from `podModulePrefix` to get the pod path.
67
+ Pass `--pod-path` if `podModulePrefix` has been set in `config/environment.js`. "Subtract" `modulePrefix` from `podModulePrefix` to get the pod path.
61
68
 
62
69
  ```sh
63
70
  # If modulePrefix is 'my-app' and podModulePrefix is 'my-app/pods'
@@ -122,4 +129,4 @@ Thanks goes to FlashRecruit, Imago, and CLARK, who gave me the necessary Ember e
122
129
 
123
130
  ## License
124
131
 
125
- This project is licensed under the [MIT License](LICENSE.md).
132
+ This project is licensed under the [MIT License](LICENSE.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-codemod-pod-to-octane",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Codemod to un-pod Ember apps, addons, and engines",
5
5
  "keywords": [
6
6
  "ember-codemod",
@@ -41,14 +41,14 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "@babel/core": "^7.18.9",
44
+ "@babel/core": "^7.18.13",
45
45
  "@babel/eslint-parser": "^7.18.9",
46
46
  "glob": "^8.0.3",
47
47
  "yargs": "^17.5.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@sondr3/minitest": "^0.1.1",
51
- "eslint": "^8.20.0",
51
+ "eslint": "^8.22.0",
52
52
  "eslint-config-prettier": "^8.5.0",
53
53
  "eslint-plugin-prettier": "^4.2.1",
54
54
  "eslint-plugin-simple-import-sort": "^7.0.0",