From 1a4d9f2fc4b6291698545f3a58e405fda3b4c892 Mon Sep 17 00:00:00 2001
From: Christos <kokosias.christos@gmail.com>
Date: Wed, 10 Apr 2019 09:46:22 -0400
Subject: [PATCH] Update README.md

---
 README.md | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

diff --git a/README.md b/README.md
index 60900cd35..a4053c5da 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,69 @@
 Wax prosemirror Monorepo
+
+Clone the repo
+  
+yarn with node > 9.11.2
+  
+yarn default should bring the default editor
+  
+Commands: `yarn` , `yarn clean`, `yarn reset`  
+
+Create a new project in Editors. create-react-app can be used to setup a new project
+
+`cd editors`
+  
+`yarn create react-app my-editor`
+  
+`npm install react-app-rewired --save-dev`
+  
+Create a `config-overrides.js` file in the root of "my-editor"
+  
+add the following code
+
+```
+module.exports = function override(config, env) {
+  config.module = {
+    rules: [
+      {
+        test: /\.(js|jsx|mjs)$/,
+        loader: "babel-loader",
+        options: {
+          presets: [
+            [require("@babel/preset-env"), { modules: false }],
+            require("@babel/preset-react")
+          ],
+          plugins: [require("@babel/plugin-proposal-class-properties")]
+        }
+      },
+      {
+        test: /\.css$/,
+        use: ["style-loader", "css-loader"]
+      },
+      {
+        test: /\.svg$/,
+        use: "svg-inline-loader"
+      }
+    ]
+  };
+  return config;
+};
+```
+finally edit the package.json file and replace scripts with the following
+
+```
+"scripts": {
+    "start": "react-app-rewired start",
+    "build": "react-app-rewired build",
+    "test": "react-app-rewired test --env=jsdom",
+    "eject": "react-scripts eject"
+  },
+```
+Inside "my-editor" run `yarn start`
+
+  Also you can edit the main package.json of the monorepo in the scripts section to start your editor from there
+  
+  `"myeditor": "cd editors/my-editor && yarn start"`
+    
+  and run `yarn myeditor`
+  
+Now you can add the dependencies to build your editor.
\ No newline at end of file
-- 
GitLab