Skip to content

Commit

Permalink
Fixed #2/#7: updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
grtjn committed Sep 21, 2015
1 parent 007187b commit 2a7c5d1
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
# marklogic-typescript-definitions
TypeScript Definition files for MarkLogic built-in functions, available as npm module

INITIAL CRUDE ATTEMPT, EXPECT ERRORS! Please suggest improvements!
## Usage

Install these files as nodejs dependency using npm:

```
npm install marklogic-typescript-definitions --save
```

TypeScript enabled editors should pick up the TypeScript definition files automatically

## Editor

- (Visual Studio Code)[https://code.visualstudio.com/] runs out of the box with this.
- (Atom)[https://atom.io/] also provides good support (if not better), but requires installation of a TypeScript plugin.

## Building the typescript definitions

- Clone this project
- Create a folder xml/
- Download a copy of the documentation from here: http://docs.marklogic.com/MarkLogic_8_pubs.zip
- Extract the zip, and copy the contents of the folder pubs/raw/apidoc/ into xml/
- Run `npm install`
- Run `gulp` (may take a few minutes)

Note: you likely want to override ml-host, ml-user, and such. It runs by default as if you typed:

```
gulp --ml-host=ml8-ml1 --ml-port=8000 --ml-user=admin --ml-pass=admin
```

0 comments on commit 2a7c5d1

Please sign in to comment.