Skip to content

Commit 385e1c5

Browse files
committed
update readme
1 parent 5784885 commit 385e1c5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

readme.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ npx babel-upgrade
66

77
## Goals
88

9-
> Update dependencies, config file, files that require babel directly
9+
> Update dependencies, config files, and maybe JavaScript files that require babel packages directly
1010
11-
- [ ] auto run npm or yarn
1211
- [x] Update `package.json`: `dependencies` and `devDependencies` to the "latest supported" version.
1312
- This includes doing all package renames
1413
- This includes upgrading the same package to the latest version
1514
- [x] add `@babel/core` peerDep
1615
- [x] modify scripts for mocha + `@babel/register`
1716
- [x] throw/warn if engines is < node 4 or current node is < 4?
17+
- [x] use `"babel-core": "^7.0.0-bridge-0"` if jest is a dependency
18+
- [x] add new `@babel/node` package if `babel-node` is used
1819
- [ ] log when replacing out preset-es2015,16,17,latest as FYI
1920
- [ ] if `babel-node` is used, import `@babel/node`?
21+
- [ ] Auto run npm or yarn after updating dependencies
2022
- [ ] Update the babel config file(s).
2123
- [x] `.babelrc`
22-
- [ ] `.babelrc.js`
24+
- [ ] `.babelrc.js` and other js files with a config like presets, `webpack.config.js`
2325
- [x] `package.json babel key`
2426
- [x] handle `env`
2527
- [x] handle shorthand names: `babel-preset-env` and `env`
@@ -31,10 +33,11 @@ npx babel-upgrade
3133
- [ ] Update test files that use babel directly (`babel-types`, `babel-core`)
3234
- Update all requires/imports
3335
- Update the use of the Babel API (plugins, integrations)
34-
- [ ] Misc files as we go (`karma.conf.js`, `mocha.opts`)
36+
- [ ] Modify misc files as we go (`karma.conf.js`, `mocha.opts`)
3537
- [ ] Add to the upgrade guide which parts are autofixable and the command (if we care enough to make this individually runnable too infrastructure wise)
3638
- [ ] May need to add a warning on any 3rd party plugins since they might not be compatible
37-
- [ ] later: work on node 4
39+
- [ ] Handle the differences in plugins in v7 for default/loose/spec
40+
- [ ] Later: work on node 4
3841
- [ ] Should certain parts be generic (replace the string `babel-register` with `@babel/register`)? Could be in a Makefile or somewhere else, but it's just find replace.
3942

4043
## Philosophy

0 commit comments

Comments
 (0)