diff --git a/README.md b/README.md index 2ac678644f..38a5080106 100644 --- a/README.md +++ b/README.md @@ -125,12 +125,13 @@ TOAST UI products are open source, so you can create a pull request(PR) after yo ### Setup -Fork `master` branch into your personal repository. Clone it to local computer. Install node modules. Before starting development, you should check to haveany errors. +Fork `master` branch into your personal repository. Clone it to local computer. Install node modules. Before starting development, you should check to see if there are any errors. ```sh $ git clone https://github.com/{your-personal-repo}/tui.editor.git $ cd [project-name] $ npm install +$ npm run setup:libs $ cd [project-name]/apps/editor $ npm install $ npm run test diff --git a/package.json b/package.json index 6c5a4bba7d..7af303d76f 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,12 @@ "build:uml": "lerna run --scope @toast-ui/editor-plugin-uml build", "build:toastmark": "lerna run --scope @toast-ui/toastmark build", "build:squire": "lerna run --scope @toast-ui/squire build", - "build:to-mark": "lerna run --scope @toast-ui/to-mark build" + "build:to-mark": "lerna run --scope @toast-ui/to-mark build", + "install:toastmark": "cd libs/toastmark && npm install", + "install:squire": "cd libs/squire && npm install", + "install:to-mark": "cd libs/to-mark && npm install", + "install:libs": "npm run install:toastmark && npm run install:squire && npm run install:to-mark", + "build:libs": "npm run build:toastmark && npm run build:squire && npm run build:to-mark", + "setup:libs": "npm run install:libs && npm run build:libs" } }