From 68ba05ecd8ae00267184b3a26c859c1cbdff644f Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 19 Oct 2016 12:54:23 +0200 Subject: [PATCH] Add a test page, simplify development setup --- README.md | 27 +++----- test/index.html | 163 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 171 insertions(+), 19 deletions(-) create mode 100644 test/index.html diff --git a/README.md b/README.md index c364b980..3a0f95a1 100644 --- a/README.md +++ b/README.md @@ -6,33 +6,22 @@ TypeScript and JavaScript language support for the Monaco Editor. ## Issues -Please file issues concering `monaco-typescript` in the [`monaco-editor`-repository](https://github.com/Microsoft/monaco-editor/issues). +Please file issues concering `monaco-typescript` in the [`monaco-editor` repository](https://github.com/Microsoft/monaco-editor/issues). ## Installing This npm module is bundled and distributed in the [monaco-editor](https://www.npmjs.com/package/monaco-editor) npm module. -## Dev: cheat sheet -* initial setup with `npm install .` -* compile with `npm run watch` -* test with `npm run test` -* bundle with `npm run prepublish` - -## Dev: Running monaco-typescript from source +## Development -* clone https://github.com/Microsoft/monaco-typescript in `$/src/monaco-typescript` -* run `$/src/monaco-typescript> npm run watch` -* clone https://github.com/Microsoft/monaco-editor in `$/src/monaco-editor` -* run `$/src/monaco-editor> npm run simpleserver` -* open http://localhost:8080/monaco-editor/test/?monaco-typescript=dev - -### [Optional] Running monaco-editor-core from source +* `git clone https://github.com/Microsoft/monaco-typescript` +* `cd monaco-typescript` +* `npm install .` +* `npm run watch` +* open `$/monaco-typescript/test/index.html` in your favorite browser. +* test with `npm run test` -* this is only needed when you want to make changes also in `monaco-editor-core`. -* clone https://github.com/Microsoft/vscode in `$/src/vscode/` -* run `$/src/vscode> gulp watch` -* open http://localhost:8080/monaco-editor/test/?monaco-typescript=dev&editor=dev ## Code of Conduct diff --git a/test/index.html b/test/index.html new file mode 100644 index 00000000..e6ad8001 --- /dev/null +++ b/test/index.html @@ -0,0 +1,163 @@ + + + + + + + + + +

Monaco Editor HTML test page

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