This is a plugin of for completing Google Apps Script.
$ git clone https://github.com/aki2o/tern-gas.git
$ cd tern-gas
$ npm install -g
A following config is put in .tern-project
to enable this plugin.
{
"plugins": {
"gas": {}
}
}
The definition of Google Apps Script is put as hard code in this plugin.
Therefore, The update of Google Apps Script is not reflected into this plugin.
I'm going to make an effort to follow that, but it might not be done.
In this case, you are able to update this plugin by using the script under contrib
directory like a following steps.
$ git clone https://github.com/aki2o/tern-gas.git
$ cd tern-gas
$ npm install opts
$ npm install request
$ npm install jsdom
$ npm install node.extend
$ node contrib/make_plugin.js
$ mv gas.new.js gas.js
$ npm install -g
make_plugin.js
… A wrapper for fetch_script_reference.js
, build_reference.js
fetch_script_reference.js
… Fetch the reference of Google Apps Script from the site of Google and store that into contrib/refs
directorybuild_reference.js
… Collect the reference in contrib/refs
directory and convert that to the code for ternFor detail, run they having --help
option.
Enjoy!!!