mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-2522 TypeScript extension for Thrift Compiler
add info and format js/README.md
This closes #124
----
commit ada1016fdd
Author: Pascal Schweizer <pasci@hispeed.ch>
Date: 2014-03-21T16:18:59Z
THRIFT-2522 TypeScript extension for Thrift Compiler
----
This commit is contained in:
parent
ada1016fdd
commit
d0265c7052
@ -2185,4 +2185,4 @@ std::string t_js_generator::ts_function_signature(t_function* tfunction, bool in
|
||||
THRIFT_REGISTER_GENERATOR(js, "Javascript",
|
||||
" jquery: Generate jQuery compatible code.\n"
|
||||
" node: Generate node.js compatible code.\n"
|
||||
" ts: Generate TypeScript Definition Files.\n")
|
||||
" ts: Generate TypeScript definition files.\n")
|
||||
|
@ -31,12 +31,16 @@ package.json. Many of the build and test tools used here
|
||||
require a recent version of Node.js to be installed. To
|
||||
install the support files for the Grunt build tool execute
|
||||
the command:
|
||||
$ npm install
|
||||
|
||||
npm install
|
||||
|
||||
This reads the package.json and pulls in the appropriate
|
||||
sources from the internet. To build the JavaScript branch
|
||||
of Apache Thrift execute the command:
|
||||
$ grunt
|
||||
This runs the grunt build tool, linting all of the source
|
||||
|
||||
grunt
|
||||
|
||||
This runs therunt build tool, linting all of the source
|
||||
files, setting up and running the tests, concatenating and
|
||||
minifying the main libraries and generating the html
|
||||
documentation.
|
||||
@ -127,3 +131,10 @@ service.
|
||||
server.listen(port);
|
||||
console.log("Http/Thrift Server running on port: " + port);
|
||||
|
||||
|
||||
TypeScript
|
||||
------------------------------------
|
||||
TypeScript definition files can also be generated by running:
|
||||
|
||||
thrift --gen js:ts file.thrift
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user