couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [couchdb-fauxton] 01/01: WIP Switch to preact.js
Date Sat, 19 Aug 2017 21:13:55 GMT
This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch preactjs
in repository https://gitbox.apache.org/repos/asf/couchdb-fauxton.git

commit f5141a7b951a6e7cd912252d317e9fbf2ac7329c
Author: Robert Newson <rnewson@apache.org>
AuthorDate: Sat Aug 19 10:56:46 2017 +0100

    WIP Switch to preact.js
---
 package.json               | 6 +++---
 webpack.config.dev.js      | 4 ++++
 webpack.config.release.js  | 4 ++++
 webpack.config.test-dev.js | 4 ++++
 webpack.config.test.js     | 4 ++++
 5 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/package.json b/package.json
index 0350369..9ce0d5c 100644
--- a/package.json
+++ b/package.json
@@ -88,10 +88,10 @@
     "optimist": "^0.6.1",
     "pouchdb-adapter-http": "^6.1.2",
     "pouchdb-core": "^6.1.2",
-    "react": "~15.4.1",
-    "react-addons-css-transition-group": "~15.4.2",
+    "preact": "8.2.1",
+    "preact-compat": "3.17.0",
+    "react-transition-group": "1.2.0",
     "react-bootstrap": "^0.30.7",
-    "react-dom": "~15.4.1",
     "react-redux": "^5.0.0",
     "react-select": "1.0.0-rc.2",
     "redux": "^3.6.0",
diff --git a/webpack.config.dev.js b/webpack.config.dev.js
index 54f09f4..7f9ffbf 100644
--- a/webpack.config.dev.js
+++ b/webpack.config.dev.js
@@ -113,6 +113,10 @@ module.exports = {
     alias: {
       "bootstrap": "../assets/js/libs/bootstrap",
       "underscore": "lodash",
+      "react": "preact-compat",
+      "react-dom": "preact-compat",
+      "react-addons-css-transition-group": "react-transition-group",
+      "create-react-class": "preact-compat/lib/create-react-class"
     }
   },
   devtool: 'source-map'
diff --git a/webpack.config.release.js b/webpack.config.release.js
index 5220952..330cf59 100644
--- a/webpack.config.release.js
+++ b/webpack.config.release.js
@@ -149,6 +149,10 @@ module.exports = {
     alias: {
       "underscore": "lodash",
       "bootstrap": "../assets/js/libs/bootstrap",
+      "react": "preact-compat",
+      "react-dom": "preact-compat",
+      "react-addons-css-transition-group": "react-transition-group",
+      "create-react-class": "preact-compat/lib/create-react-class"
     }
   }
 };
diff --git a/webpack.config.test-dev.js b/webpack.config.test-dev.js
index cdbfefd..46322f8 100644
--- a/webpack.config.test-dev.js
+++ b/webpack.config.test-dev.js
@@ -94,6 +94,10 @@ module.exports = {
     alias: {
       "bootstrap": "../assets/js/libs/bootstrap",
       "underscore": "lodash"
+      "react": "preact-compat",
+      "react-dom": "preact-compat",
+      "react-addons-css-transition-group": "react-transition-group",
+      "create-react-class": "preact-compat/lib/create-react-class"
     }
   },
   output: {
diff --git a/webpack.config.test.js b/webpack.config.test.js
index 8cb016f..10fd795 100644
--- a/webpack.config.test.js
+++ b/webpack.config.test.js
@@ -99,6 +99,10 @@ module.exports = {
     alias: {
       "bootstrap": "../assets/js/libs/bootstrap",
       "underscore": "lodash",
+      "react": "preact-compat",
+      "react-dom": "preact-compat",
+      "react-addons-css-transition-group": "react-transition-group",
+      "create-react-class": "preact-compat/lib/create-react-class"
     }
   },
   output: {

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message