diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 596d8d82..00000000 --- a/.babelrc +++ /dev/null @@ -1,36 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "modules": false - } - ], - "@babel/preset-react" - ], - "env": { - "development": { - "plugins": [ - "react-hot-loader/babel", - "@babel/plugin-proposal-export-default-from", - "@babel/plugin-proposal-export-namespace-from", - [ "@babel/plugin-proposal-decorators", { "legacy": true } ], - ["@babel/plugin-proposal-class-properties", { "loose": true }], - ["@babel/plugin-proposal-private-methods", { "loose": true }], - ["@babel/plugin-proposal-private-property-in-object", { "loose": true }], - "@babel/plugin-proposal-function-bind" - ] - }, - "production": { - "plugins": [ - "@babel/plugin-proposal-export-default-from", - "@babel/plugin-proposal-export-namespace-from", - [ "@babel/plugin-proposal-decorators", { "legacy": true } ], - ["@babel/plugin-proposal-class-properties", { "loose": true }], - ["@babel/plugin-proposal-private-methods", { "loose": true }], - ["@babel/plugin-proposal-private-property-in-object", { "loose": true }], - "@babel/plugin-proposal-function-bind" - ] - } - } -} diff --git a/.env b/.env new file mode 100644 index 00000000..7d8ce947 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ + +# VITE_RECHARTS_LATEST_VERSION=2.12.6 diff --git a/.eslintrc b/.eslintrc index 92bcd537..b823d985 100644 --- a/.eslintrc +++ b/.eslintrc @@ -62,7 +62,7 @@ "import/no-extraneous-dependencies": [ "error", { - "devDependencies": ["demo/**", "test/**", "*.config.js", "scripts/**", "**/Spec.js"] + "devDependencies": ["demo/**", "test/**", "*.config.js", "scripts/**", "**/Spec.js", "./vite.config.ts"] } ], "max-len": ["warn", 120], diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 88955fcb..be4afc23 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -35,7 +35,7 @@ jobs: - name: Install dependencies run: npm install - name: Build with npm - run: RECHARTS_LATEST_VERSION=`curl -X GET "https://registry.npmjs.org/recharts/latest" | jq --raw-output '.version'` npm run build + run: VITE_RECHARTS_LATEST_VERSION=`curl -X GET "https://registry.npmjs.org/recharts/latest" | jq --raw-output '.version'` npm run build - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact diff --git a/.gitignore b/.gitignore index cdc68cc9..e9b97b9d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,3 @@ node_modules build/ public/examples /docs/ -!/docs/index.html -!/docs/404.html -!/docs/CNAME diff --git a/docs/CNAME b/docs/CNAME deleted file mode 100644 index 4d5d080c..00000000 --- a/docs/CNAME +++ /dev/null @@ -1 +0,0 @@ -recharts.org \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 6c638c1b..e48860b1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,58 +6,14 @@ - - - - + +
- - -