From 3aaccba3ff38238f1628f2d82084b53b0809501d Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Mon, 1 Jun 2020 00:39:59 +0800 Subject: [PATCH] FormAPI is now DocSpring --- README.md | 2 +- lib/craco-less.dev.test.js | 8 ++++---- lib/craco-less.js | 2 +- lib/craco-less.prod.test.js | 8 ++++---- package.json | 6 +++--- scripts/update_deps | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index d8d5ed9..9754ed2 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ This is a [craco](https://github.com/sharegate/craco) plugin that adds Less supp ## Ant Design If you want to use [Ant Design](https://ant.design/) with `create-react-app`, -you should use the [`craco-antd`](https://github.com/FormAPI/craco-antd) plugin. +you should use the [`craco-antd`](https://github.com/DocSpring/craco-antd) plugin. `craco-antd` includes Less and `babel-plugin-import` (to only include the required CSS.) It also makes it easy to customize the theme variables. ## Supported Versions diff --git a/lib/craco-less.dev.test.js b/lib/craco-less.dev.test.js index 894c631..52b6ee1 100644 --- a/lib/craco-less.dev.test.js +++ b/lib/craco-less.dev.test.js @@ -288,8 +288,8 @@ test("throws an error when we can't find file-loader in the webpack config", () "Or:\n\n" + " $ npm update craco-less\n\n" + "If that doesn't work, craco-less needs to be fixed to support the latest version.\n" + - "Please check to see if there's already an issue in the FormAPI/craco-less repo:\n\n" + - " * https://github.com/FormAPI/craco-less/issues?q=is%3Aissue+webpack+file-loader\n\n" + + "Please check to see if there's already an issue in the DocSpring/craco-less repo:\n\n" + + " * https://github.com/DocSpring/craco-less/issues?q=is%3Aissue+webpack+file-loader\n\n" + "If not, please open an issue and we'll take a look. (Or you can send a PR!)\n\n" + "You might also want to look for related issues in the " + "craco and create-react-app repos:\n\n" + @@ -316,8 +316,8 @@ test("throws an error when we can't find the oneOf rules in the webpack config", "Or:\n\n" + " $ npm update craco-less\n\n" + "If that doesn't work, craco-less needs to be fixed to support the latest version.\n" + - "Please check to see if there's already an issue in the FormAPI/craco-less repo:\n\n" + - " * https://github.com/FormAPI/craco-less/issues?q=is%3Aissue+webpack+rules+oneOf\n\n" + + "Please check to see if there's already an issue in the DocSpring/craco-less repo:\n\n" + + " * https://github.com/DocSpring/craco-less/issues?q=is%3Aissue+webpack+rules+oneOf\n\n" + "If not, please open an issue and we'll take a look. (Or you can send a PR!)\n\n" + "You might also want to look for related issues in the " + "craco and create-react-app repos:\n\n" + diff --git a/lib/craco-less.js b/lib/craco-less.js index 81a05d3..3fd6d2b 100644 --- a/lib/craco-less.js +++ b/lib/craco-less.js @@ -13,7 +13,7 @@ const overrideWebpackConfig = ({ context, webpackConfig, pluginOptions }) => { const throwError = (message, githubIssueQuery) => throwUnexpectedConfigError({ packageName: "craco-less", - githubRepo: "FormAPI/craco-less", + githubRepo: "DocSpring/craco-less", message, githubIssueQuery }); diff --git a/lib/craco-less.prod.test.js b/lib/craco-less.prod.test.js index 214dcba..7e43b00 100644 --- a/lib/craco-less.prod.test.js +++ b/lib/craco-less.prod.test.js @@ -300,8 +300,8 @@ test("throws an error when we can't find file-loader in the webpack config", () "Or:\n\n" + " $ npm update craco-less\n\n" + "If that doesn't work, craco-less needs to be fixed to support the latest version.\n" + - "Please check to see if there's already an issue in the FormAPI/craco-less repo:\n\n" + - " * https://github.com/FormAPI/craco-less/issues?q=is%3Aissue+webpack+file-loader\n\n" + + "Please check to see if there's already an issue in the DocSpring/craco-less repo:\n\n" + + " * https://github.com/DocSpring/craco-less/issues?q=is%3Aissue+webpack+file-loader\n\n" + "If not, please open an issue and we'll take a look. (Or you can send a PR!)\n\n" + "You might also want to look for related issues in the " + "craco and create-react-app repos:\n\n" + @@ -328,8 +328,8 @@ test("throws an error when we can't find the oneOf rules in the webpack config", "Or:\n\n" + " $ npm update craco-less\n\n" + "If that doesn't work, craco-less needs to be fixed to support the latest version.\n" + - "Please check to see if there's already an issue in the FormAPI/craco-less repo:\n\n" + - " * https://github.com/FormAPI/craco-less/issues?q=is%3Aissue+webpack+rules+oneOf\n\n" + + "Please check to see if there's already an issue in the DocSpring/craco-less repo:\n\n" + + " * https://github.com/DocSpring/craco-less/issues?q=is%3Aissue+webpack+rules+oneOf\n\n" + "If not, please open an issue and we'll take a look. (Or you can send a PR!)\n\n" + "You might also want to look for related issues in the " + "craco and create-react-app repos:\n\n" + diff --git a/package.json b/package.json index b698ab8..f88a026 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "repository": { "type": "git", - "url": "git+ssh://git@github.com/FormAPI/craco-less.git" + "url": "git+ssh://git@github.com/DocSpring/craco-less.git" }, "keywords": [ "craco", @@ -20,9 +20,9 @@ "author": "Nathan Broadbent", "license": "MIT", "bugs": { - "url": "https://github.com/FormAPI/craco-less/issues" + "url": "https://github.com/DocSpring/craco-less/issues" }, - "homepage": "https://github.com/FormAPI/craco-less#readme", + "homepage": "https://github.com/DocSpring/craco-less#readme", "devDependencies": { "@craco/craco": "^5.6.4", "clone": "^2.1.2", diff --git a/scripts/update_deps b/scripts/update_deps index d653dd1..403a619 100755 --- a/scripts/update_deps +++ b/scripts/update_deps @@ -4,8 +4,8 @@ // This gets rid of the "unmet peer dependency" warning. // Related issues: -// * https://github.com/FormAPI/craco-less/issues/3 -// * https://github.com/FormAPI/craco-less/issues/4 +// * https://github.com/DocSpring/craco-less/issues/3 +// * https://github.com/DocSpring/craco-less/issues/4 // * https://stackoverflow.com/questions/53681694/how-can-i-resolve-the-webpack-unmet-peer-dependency-warning-for-my-create-reac // * https://github.com/yarnpkg/yarn/issues/4850#issuecomment-447277140