Skip to content

Commit 2868210

Browse files
tleunenKent C. Dodds
authored andcommitted
fix: support any version of babel (#55)
* Make it work with Babel 7 Closes #52 * Fix usage of babel register * Remove dependency on babel-register * fix: support any version of babel BREAKING CHANGE: We no longer run require('babel-register') so not all code will be transpiled with babel by preval. Some will, but it's advised to not write code that you want prevaled in a way that doesn't run in the version of node you're using
1 parent 5c47ce5 commit 2868210

14 files changed

Lines changed: 457 additions & 448 deletions

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@
121121
"contributions": [
122122
"code"
123123
]
124+
},
125+
{
126+
"login": "tleunen",
127+
"name": "Tommy",
128+
"avatar_url": "https://avatars3.githubusercontent.com/u/1972567?v=4",
129+
"profile": "http://www.tommyleunen.com",
130+
"contributions": [
131+
"code"
132+
]
124133
}
125134
],
126135
"repoType": "github"

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ never done that before, that's great! Check this free short video tutorial to
1111
learn how: http://kcd.im/pull-request
1212
-->
1313

14-
* `babel-plugin-preval` version:
15-
* `node` version:
16-
* `npm` (or `yarn`) version:
14+
- `babel-plugin-preval` version:
15+
- `node` version:
16+
- `npm` (or `yarn`) version:
1717

1818
Relevant code or config
1919

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Thanks for being willing to contribute!
77

88
## Project setup
99

10-
1. Fork and clone the repo
11-
2. `$ npm install` to install dependencies
12-
3. `$ npm run validate` to validate you've got it working
13-
4. Create a branch for your PR
10+
1. Fork and clone the repo
11+
2. `$ npm install` to install dependencies
12+
3. `$ npm run validate` to validate you've got it working
13+
4. Create a branch for your PR
1414

1515
> Tip: Keep your `master` branch pointing at the original repository and make
1616
> pull requests from branches on your fork. To do this, run:

README.md

Lines changed: 137 additions & 59 deletions
Large diffs are not rendered by default.

other/CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
2626
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
## Our Responsibilities

package.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
"validate": "kcd-scripts validate",
1717
"precommit": "kcd-scripts precommit"
1818
},
19-
"files": ["dist", "macro.js"],
19+
"files": [
20+
"dist",
21+
"macro.js"
22+
],
2023
"keywords": [
2124
"babel",
2225
"babel-plugin",
@@ -27,20 +30,22 @@
2730
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)",
2831
"license": "MIT",
2932
"dependencies": {
30-
"babel-plugin-macros": "^2.0.0",
31-
"babel-register": "^6.26.0",
32-
"babylon": "^6.18.0",
33-
"require-from-string": "^2.0.1"
33+
"babel-plugin-macros": "^2.2.2",
34+
"require-from-string": "^2.0.2"
3435
},
3536
"devDependencies": {
3637
"ast-pretty-print": "^2.0.1",
37-
"babel-plugin-tester": "^5.0.0",
38-
"kcd-scripts": "^0.30.4"
38+
"babel-plugin-tester": "^5.4.0",
39+
"kcd-scripts": "^0.39.1"
3940
},
4041
"eslintConfig": {
4142
"extends": "./node_modules/kcd-scripts/eslint.js"
4243
},
43-
"eslintIgnore": ["node_modules", "coverage", "dist"],
44+
"eslintIgnore": [
45+
"node_modules",
46+
"coverage",
47+
"dist"
48+
],
4449
"babel": {
4550
"presets": "kcd-scripts/babel"
4651
},

0 commit comments

Comments
 (0)