Skip to content

Commit 4cf87d2

Browse files
authored
Update packages (#29)
* update mjml * update lodash * update babel presets * remove since using babel 7 * update to use new preset * update babel and gulp-babel * set proper core as devdep * remove unneeded plugin * update gulp watch * add missing ")" * update babel register and fancy log * update eslint packages * use airbnb base config * update to use base * clean up babelrc * switch to most recent babel register * add class property support * upgrade to next
1 parent 71d6933 commit 4cf87d2

File tree

5 files changed

+2028
-1897
lines changed

5 files changed

+2028
-1897
lines changed

.babelrc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"presets": ["env", "stage-0"],
3-
"plugins": ["transform-decorators-legacy"]
4-
}
2+
"presets": ["@babel/preset-env"],
3+
"plugins": [
4+
"@babel/plugin-proposal-class-properties"
5+
]
6+
}

.eslintrc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
22
"extends": [
3-
"eslint-config-airbnb-base",
4-
"eslint-config-airbnb-base/rules/strict"
3+
"airbnb-base"
54
],
65
"parser": "babel-eslint",
76
"rules": {
8-
97
"padded-blocks": 0,
108
"space-before-function-paren": 0,
11-
"semi": 0,
12-
13-
},
9+
"semi": 0
10+
}
1411
}

gulpfile.babel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ const watchedComponents = walkSync('./components')
2121
const compile = () => {
2222
return gulp
2323
.src(path.normalize('components/**/*.js'))
24-
.pipe(babel())
24+
.pipe(babel({
25+
presets: ['@babel/preset-env'],
26+
}))
2527
.on('error', log)
2628
.pipe(gulp.dest('lib'))
2729
.on('end', () => {

package.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,22 @@
1111
"author": "",
1212
"license": "ISC",
1313
"devDependencies": {
14-
"babel-core": "^6.13.2",
15-
"babel-eslint": "^6.1.2",
16-
"babel-plugin-transform-decorators-legacy": "^1.3.4",
17-
"babel-preset-env": "^1.6.1",
18-
"babel-preset-stage-0": "^6.5.0",
19-
"babel-register": "^6.14.0",
20-
"eslint": "^3.4.0",
21-
"eslint-config-airbnb": "^10.0.0",
22-
"eslint-plugin-import": "^1.13.0",
23-
"eslint-plugin-jsx-a11y": "^2.1.0",
24-
"fancy-log": "^1.3.2",
14+
"@babel/core": "^7.10.4",
15+
"@babel/plugin-proposal-class-properties": "^7.10.4",
16+
"@babel/preset-env": "^7.10.4",
17+
"@babel/register": "^7.10.4",
18+
"babel-eslint": "^10.1.0",
19+
"eslint": "^7.4.0",
20+
"eslint-config-airbnb-base": "^14.2.0",
21+
"eslint-plugin-import": "^2.22.0",
22+
"eslint-plugin-jsx-a11y": "^6.3.1",
23+
"fancy-log": "^1.3.3",
2524
"gulp": "^4.0.2",
26-
"gulp-babel": "^6.1.2",
27-
"gulp-watch": "^4.3.9"
25+
"gulp-babel": "^8.0.0",
26+
"gulp-watch": "^5.0.1"
2827
},
2928
"dependencies": {
30-
"lodash": "^4.15.0",
31-
"mjml": "^4.0.0"
29+
"lodash": "^4.17.15",
30+
"mjml": "^4.7.0-beta.1"
3231
}
3332
}

0 commit comments

Comments
 (0)