jscodeshift Codemods for best effort upgrade of code using dc
. Usually jscodeshift only supports javascript or typescript files, these scripts work with javascript embedded in HTML files.
Currently supported versions:
v4
-> v5
Clone this repository and install dependencies.
To upgrade code
$ npx jscodeshift -t src/v4-v5/transform.mjs my_dashboard.html ...
You can pass multiple HTML and js files in one go, or use wildcards.
Refer to jscodeshift for supported options.
eslint
clean.git
(or your source code control).dc
project itself uses it.Please read the Migration Guide. It covers the changes in the library and instructions for the upgrade.
chartGroup
declaration and update the chart creation calls.Please refer to Migration Guide to understand the changes to be carried out manually.
Even in the best case of conversion, you will have to do the following manually:
.colors
dc.pluck
.rangechart
[TODO ref to examples].stack
, .point
you might have to convert it manually. [TODO ref to examples].group
, .valueaccessor
, or, .dimension
, the automatically converted code is likely to be incorrect. [TODO ref to examples]RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4