ember-cli-jsdoc
ember-cli-jsdoc copied to clipboard
Include Babel plugins
trafficstars
I recently implemented this and found that I could not generate the docs because Babel's plugin-proposal-class-properties and plugin-proposal-decorators were not available to this addon. These are required for Octane's syntax to compile.
Using:
- ember-cli 3.16.1
- node 13.9.0
To get it to work, I had to:
- Install babel/preset-env
- Create a .babelrc file
- Add the following:
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "11.0"
}
}
]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
["@babel/plugin-proposal-decorators", {"decoratorsBeforeExport": true}]
]
}
If I missed something and it should have worked please let me know, if not I'll start working on a PR.
@TeeBrysiewicz I'm sure you didn't miss anything. I haven't been working with Ember for a while and as such don't use this tool regularly anymore, so haven't kept it up to date with latest versions, etc.