Conversation
|
By nature, the move from VuePress -> VitePress should also allow us to drop the babel dependencies too, right? A very brief peek at the source suggests it is not used outside of VuePress. |
|
I tested it on your branch and |
|
You should be able to remove chartjs-plugin-zoom/docs/.vuepress/config.js Lines 89 to 90 in bfd207d |
|
Great! If #808 gets merged there won't be two versions of Rollup and related plugins further reducing the count. |
Hammer is needed by the zoom plugin, and ng-hammerjs can be used as replacemend (it does not require window). |
|
I did not have time to take a look at this yet, but I'm game getting rid of VuePress. |
Yes, hammer.js is still needed, but ng-hammerjs was only used for VuePress, as it appeared, so I was suggesting the move to VitePress could remove ng-hammerjs. I'm not suggesting to remove hammer entirely. |
|
Good to know there is interest in this! I will have to take another look at it, because some things have changed in the meantime (VitePress 1.0, ...). |
@kurkle does it mean we will migrate the other plugins (i.e. annotation) too? I personally agree with that because many of security alerts are coming from a Vuepress version. |
Hopefully 😅 |
|
@kurkle fine! I'll open a task in the annotation as soon as I can ;) |
|
What’s the consensus on moving the doc portion to a separate package.json like the main chart.js repo does? |
I'm not against that. Would help separating the dependencies. Probably should change to pnpm too. |
|
This is ready for an initial review, please have a look if you like the approach. If you like it I'll update the docs with the changes from the past weeks (the content moved to new files, so it's a fairly manual process). For some reason I cannot lint locally (windows), it hangs indefinitely. Anyone else on windows? |
Took a quick first look and yes, I like the approach. Some issues I'd like resolved are:
For the lint issue, I'd assume its the vitepress cache folder that causes trouble, you could try adding it to .eslintignore |
This reduces the number of dev dependencies by about 700.
Towards #812