Skip to content

Commit

Permalink
fix(generator): fix babel syntax error when running "au generate"
Browse files Browse the repository at this point in the history
closes #954
  • Loading branch information
3cp committed Nov 14, 2018
1 parent 9d4bbbe commit 8eb19e7
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 5 deletions.
2 changes: 2 additions & 0 deletions lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ function installBabel() {
require('@babel/register')({
babelrc: false,
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-transform-modules-commonjs'
],
only: [/aurelia_project/]
Expand Down
69 changes: 68 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@
"url": "https://github.com/aurelia/cli"
},
"dependencies": {
"aurelia-dependency-injection": "^1.4.1",
"aurelia-logging": "^1.5.0",
"aurelia-polyfills": "^1.3.0",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-decorators": "^7.1.6",
"@babel/plugin-transform-modules-amd": "^7.1.0",
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
"@babel/core": "^7.1.2",
"@babel/polyfill": "^7.0.0",
"@babel/register": "^7.0.0",
"aurelia-dependency-injection": "^1.4.1",
"aurelia-logging": "^1.5.0",
"aurelia-polyfills": "^1.3.0",
"del": "^3.0.0",
"esprima": "^4.0.1",
"glob": "^7.1.3",
Expand Down

0 comments on commit 8eb19e7

Please sign in to comment.