From 31f3b79004c0ce3d9a8d88772d6a1bbfc7188721 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 19 Oct 2016 11:51:03 +0200 Subject: [PATCH] Fixes #1: Add a test page and simplify REAMDE --- README.md | 27 ++++---------------- package.json | 2 ++ test/index.html | 67 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 22 deletions(-) create mode 100644 test/index.html diff --git a/README.md b/README.md index 6a714ec0..534b60f4 100644 --- a/README.md +++ b/README.md @@ -19,30 +19,13 @@ Please file issues concering `monaco-html` in the [`monaco-editor`-repository](h This npm module is bundled and distributed in the [monaco-editor](https://www.npmjs.com/package/monaco-editor) npm module. -* change to your favorite source folder (`/src/`) -* `git clone https://github.com/Microsoft/monaco-editor` (this will create `$/src/monaco-editor`) -* in folder `monaco-editor` run `npm install` and run `npm run simpleserver` -* open http://localhost:8080/monaco-editor/test/index.html#sample - html - ## Development -### Dev: Running monaco-html from source -* change to your favorite source folder (`/src/`). -* if you haven't done so: `git clone https://github.com/Microsoft/monaco-editor` (this will create `$/src/monaco-editor`) -* `git clone https://github.com/Microsoft/monaco-html` (this will create `$/src/monaco-html`) -* Important: both monaco repositories must have the same parent folder. -* in folder `monaco-html` run `npm install` and run `npm run watch` -* in folder `monaco-editor` run `npm install` and run `npm run simpleserver` -* open http://localhost:8080/monaco-editor/test/?monaco-html=dev - -### [Optional] Running monaco-editor-core from source - -* this is only needed when you want to make changes also in `monaco-editor-core`. -* change to the same favorite source folder (`/src/`) that already contains `monaco-html` and `monaco-editor` -* `git clone https://github.com/Microsoft/vscode` (this will create `$/src/vscode/`) -* read [here](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#installing-prerequisites) on how to initialize the VS Code source repository. -* in folder `vscode` run `gulp watch` -* open http://localhost:8080/monaco-editor/test/?monaco-html=dev&editor=dev +* `git clone https://github.com/Microsoft/monaco-html` +* `cd monaco-html` +* `npm install .` +* `npm run watch` +* open `$/monaco-html/test/index.html` in your favorite browser. ## License [MIT](https://github.com/Microsoft/monaco-html/blob/master/LICENSE.md) diff --git a/package.json b/package.json index 56045219..2bbd9a50 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,8 @@ "gulp-uglify": "^1.5.3", "merge-stream": "^1.0.0", "monaco-editor-core": "^0.7.0", + "monaco-languages": "^0.6.1", + "monaco-typescript": "^2.0.1", "object-assign": "^4.1.0", "rimraf": "^2.5.2", "typescript": "2.0.3", diff --git a/test/index.html b/test/index.html new file mode 100644 index 00000000..606a891e --- /dev/null +++ b/test/index.html @@ -0,0 +1,67 @@ + + + + + + + + + +

Monaco Editor HTML test page

+
+ + + + + + + + + + \ No newline at end of file