{"id":16845738,"url":"https://github.com/othree/tern-coffee","last_synced_at":"2025-04-11T06:29:43.329Z","repository":{"id":17744280,"uuid":"20588247","full_name":"othree/tern-coffee","owner":"othree","description":"Use a work around way to let tern.js play with CoffeeScript.","archived":false,"fork":false,"pushed_at":"2018-03-08T00:39:51.000Z","size":9,"stargazers_count":19,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T14:40:55.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.org/package/tern-coffee","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/othree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-07T07:47:16.000Z","updated_at":"2019-06-09T02:21:31.000Z","dependencies_parsed_at":"2022-07-26T19:17:07.955Z","dependency_job_id":null,"html_url":"https://github.com/othree/tern-coffee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Ftern-coffee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Ftern-coffee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Ftern-coffee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Ftern-coffee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/othree","download_url":"https://codeload.github.com/othree/tern-coffee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248354752,"owners_count":21089877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T12:59:53.247Z","updated_at":"2025-04-11T06:29:43.305Z","avatar_url":"https://github.com/othree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Tern for CoffeeScript plugins\n=============================\n\nUse a work around way to let tern.js play with CoffeeScript.\n\nRequirement\n-----------\n\nTern.js 0.6 and node environment.\n\nInstallation\n------------\n\nUse npm to install this plugin in tern's directory.\n\n    npm install tern-coffee\n\nFor example, vim user:\n\n    cd ~/.vim/bundle/tern_for_vim\n    npm install tern-coffee\n\nThen you must let your editor enable tern for CoffeeScript files. Vim user\ncan install [tern_for_vim_coffee][2]. This is very simple plugin. You must install\nboth **tern_for_vim** and **tern_for_vim_coffee**\n\nLast part is [.tern-project][3] file. It's required to use a plugin. Remember \nto add `coffee` to plugin list.\n\n[2]:https://github.com/othree/tern_for_vim_coffee\n[3]:http://ternjs.net/doc/manual.html#configuration\n\nHow\n---\n\nMarijn [describes][1] how difficult to let tern support a new language. CoffeeScript only have source map support. There is no error tolerance CoffeeScript compiler available. So this is not a perfect solution.\n\nThe walk around solution is try to fix the editing CoffeeScript file before compile to JavaScript. Ex:\n\n    obj.\n\nWill change to\n\n    obj.__fake__\n\nBefore compile. There are more fix rules. Not perfect but should ok for normal editing.\n\nThe base of source mapping logic is by [mntmn][4].\n\n[1]:https://groups.google.com/d/msg/tern-dev/EQo8zJy4rXM/LCG7p1K3yg0J\n[4]:https://github.com/mntmn/tern-coffeescript/blob/master/cs/coffee-reverse.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Ftern-coffee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fothree%2Ftern-coffee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Ftern-coffee/lists"}