{"id":17871826,"url":"https://github.com/markiewb/idea-webstorm-pluginsetup-example","last_synced_at":"2025-04-02T23:24:41.369Z","repository":{"id":151027612,"uuid":"105439783","full_name":"markiewb/idea-webstorm-pluginsetup-example","owner":"markiewb","description":"This is an example how to setup a plugin for WebStorm or IntelliJ IDEA Ultimate. ","archived":false,"fork":false,"pushed_at":"2017-10-01T12:18:48.000Z","size":603,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T13:42:23.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markiewb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-01T12:13:45.000Z","updated_at":"2017-10-01T12:18:50.000Z","dependencies_parsed_at":"2023-05-21T07:30:52.107Z","dependency_job_id":null,"html_url":"https://github.com/markiewb/idea-webstorm-pluginsetup-example","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/markiewb%2Fidea-webstorm-pluginsetup-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markiewb%2Fidea-webstorm-pluginsetup-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markiewb%2Fidea-webstorm-pluginsetup-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markiewb%2Fidea-webstorm-pluginsetup-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markiewb","download_url":"https://codeload.github.com/markiewb/idea-webstorm-pluginsetup-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246907472,"owners_count":20853088,"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-28T10:39:20.920Z","updated_at":"2025-04-02T23:24:41.348Z","avatar_url":"https://github.com/markiewb.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example: How to setup a WebStorm-Plugin\n\nThis is an example how to setup a plugin for WebStorm or IntelliJ IDEA Ultimate. \n\nThe plugin only purpose is to add the action \"TSLint Format\" to the code menu of the main menu, which invokes `com.intellij.lang.javascript.linter.tslint.fix.TsLintFileFixAction`. \n\nThe plugin wants to access code from the TSLint plugin (provided only by the commercial JetBrains products above) \nand thus there was some more setup to do.\n\n\n## Setup your own plugin\n\n1. Create a new plugin via `File-\u003eNew...-\u003e New Project...-\u003e IntelliJ Platform Plugin`\n2. Setup your target platform/SDK to Webstorm\n3. Add plugin-dependencies, you like to link to, to the SDK \n    * The dependencies are located in the plugin-folder of the target-platform\n    * Do not add them as separate dependency to the plugin module, but to the SDK - [see forum](https://intellij-support.jetbrains.com/hc/en-us/community/posts/206762465-How-do-I-make-use-of-the-javascript-psi-)\n    * ![SDK](https://raw.github.com/markiewb/idea-webstorm-pluginsetup-example/master/doc/SDK.png)\n4. Add dependencies to the plugin.xml\n    ```\n    \u003c!-- support also non-IDEA platform --\u003e\n    \u003cdepends\u003ecom.intellij.modules.lang\u003c/depends\u003e\n    \u003c!-- activate the plugin, when JS-plugin is available and activated--\u003e\n    \u003cdepends\u003eJavaScript\u003c/depends\u003e \n    \u003c!-- activate the plugin, when TSLint-plugin is available and activated--\u003e\n    \u003cdepends\u003etslint\u003c/depends\u003e\n    ```\n5. Within your plugin, you can access the classes of the JavaScript- and TSLint plugin \n    * at compile time (provided by step 3)\n    * at runtime (provided by step 3 and 4)\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkiewb%2Fidea-webstorm-pluginsetup-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkiewb%2Fidea-webstorm-pluginsetup-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkiewb%2Fidea-webstorm-pluginsetup-example/lists"}