-
Notifications
You must be signed in to change notification settings - Fork 57
feat: support the monaco editor on example #195
Conversation
NewByVector
commented
Jul 21, 2020
•
edited
Loading
edited
- support monaco editor by config editorType in gatsby-config.js
- support view source data if source code includes fetch statements
- fix the error in g2 example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add tests to make sure this change works as expected?
done |
rebase 一下 master,解决一下冲突。 |
另外,Semantic Pull Request 还是 ❌ 的。 |
done |
*/ | ||
color(field: string, cfg?: string | string[]): any; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
能直接使用 G2 自己的定义么,这里都要每个库单独定义一下挺重复和麻烦的。
|
解决了的问题请勾掉。 另外 ci 是挂的,请检查。 |
可以先改一个看看真实代码的效果。 |
example/gatsby-config.js
Outdated
@@ -91,6 +95,7 @@ module.exports = { | |||
dependencies: { | |||
'@antv/l7': 'beta', | |||
}, | |||
extraLib: extraLibDeclare, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个能自动读出来么,让每个库都去这么写一下没必要。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
每个库单独提供api-extractor.json(api-extractor的配置文件),在gatsby-theme-antv中统一提取.d.ts文件
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@antv/gatsby-theme-antv/package.json
Outdated
@@ -139,6 +139,7 @@ | |||
"access": "public" | |||
}, | |||
"devDependencies": { | |||
"@microsoft/api-extractor": "^7.9.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dependencies
我发个版本先,@NewByVector 的 npm 账号是多少,我加你权限,之后有问题随时改随时发。 |
newbyvector |