Skip to content

Commit

Permalink
Migrate to solutions from intellij-platform-plugin-template
Browse files Browse the repository at this point in the history
  • Loading branch information
tomblachut committed Aug 2, 2020
1 parent 38abf39 commit 8fef7d3
Show file tree
Hide file tree
Showing 8 changed files with 227 additions and 215 deletions.
191 changes: 91 additions & 100 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,102 +1,93 @@
# Changelog

<h3>0.12.2</h3>
<ul>
<li>Fix compatibility with 2020.2 versions</li>
<li>Recognize $$restProps</li>
</ul>

<h3>0.12.1</h3>
<ul>
<li>Extend supported IDE version range to 2020.x</li>
<li>Support basic interpolations inside style attributes</li>
</ul>

<h3>0.12.0</h3>
<ul>
<li>Support for different CSS dialects via lang attribute</li>
<li>Initial support for $-prefixed store references</li>
<li>Enable completion of JS declarations from script tags</li>
<li>Initial support for module context scripts (inside Svelte files only)</li>
<li>More robust logic of resolving component declarations</li>
<li>Unresolved components are highlighted the same as other identifiers</li>
<li>Remove buggy prop insertion while completing tag name</li>
<li>Stop inserting mustaches after typing = for attributes</li>
<li>Enable quote matching</li>
<li>Bug fixes & stability improvements</li>
</ul>

<h3>0.11.1</h3>
<ul>
<li>Fix regression about not working import suggestions</li>
</ul>

<h3>0.11.0</h3>
<ul>
<li>Stop annotating directives as unknown attributes</li>
<li>Enable CSS references and completions</li>
<li>Recognize $$props variable</li>
<li>Highlight unresolved references inside script tag the same as inside template expressions</li>
<li>Limit IDE finding references to variables defined in e.g. config files</li>
<li>Fix IDE error occurring for empty shorthand attribute</li>
<li>Minor fixes & stability improvements</li>
</ul>

<h3>0.10.0</h3>
<ul>
<li>Support attribute value expressions</li>
<li>Support shorthand attribute expressions</li>
<li>Support spread attributes</li>
</ul>

<h3>0.9.1</h3>
<ul>
<li>Fix buggy auto-inserted each block closing tag</li>
<li>Correctly set minimum version compatibility to 2019.2</li>
</ul>

<h3>0.9.0</h3>
<ul>
<li>Connect template expressions to definitions inside script tag</li>
<li>Support complex JS expressions in Svelte tags</li>
<li>Recognize more component imports</li>
<li>Properly parse Svelte components with lowercase name matching HTML single tags</li>
<li>Add Svelte Component to New file menu</li>
<li>Improve stability</li>
</ul>

<h3>0.8.0</h3>
<ul>
<li>Add auto import for components!</li>
<li>Highlight not imported components</li>
<li>Mark unused component imports properly</li>
<li>Fix Svelte blocks breaking on identifiers containing the words if, as or then</li>
<li>Support @html & @debug expressions</li>
<li>Display better error messages for incomplete code</li>
<li>Extend supported IDE version range to 2019.2</li>
</ul>

<h3>0.7.0</h3>
<ul>
<li>Support code formatting!</li>
<li>Emmet-style expansions for Svelte tags! Try typing if[TAB]</li>
<li>Auto indent when writing newline between Svelte tags</li>
<li>Automatically insert closing Svelte tags</li>
<li>Support folding regions (+/- icons in the gutter) for Svelte tags</li>
<li>Support Comment with Line/Block Comment actions</li>
<li>Highlight Svelte tag mustaches in the same color as keywords</li>
<li>Improve parser behavior for incomplete code</li>
</ul>

<h3>0.6.0</h3>
<ul>
<li>Add syntax highlighting for JS inside blocks & expressions (bar attributes)</li>
<li>Add syntax highlighting for Svelte keywords</li>
<li>Improve parser recovery after errors</li>
<li>Additional minor improvements</li>
</ul>

<h3>0.5.0</h3>
<ul>
<li>First public release</li>
</ul>
## [Unreleased]
- Complete parser rewrite

## [0.12.2]

- Fix compatibility with 2020.2 versions
- Recognize $$restProps

## [0.12.1]

- Extend supported IDE version range to 2020.x
- Support basic interpolations inside style attributes

## [0.12.0]

- Support for different CSS dialects via lang attribute
- Initial support for $-prefixed store references
- Enable completion of JS declarations from script tags
- Initial support for module context scripts (inside Svelte files only)
- More robust logic of resolving component declarations
- Unresolved components are highlighted the same as other identifiers
- Remove buggy prop insertion while completing tag name
- Stop inserting mustaches after typing = for attributes
- Enable quote matching
- Bug fixes & stability improvements

## [0.11.1]

- Fix regression about not working import suggestions

## [0.11.0]

- Stop annotating directives as unknown attributes
- Enable CSS references and completions
- Recognize $$props variable
- Highlight unresolved references inside script tag the same as inside template expressions
- Limit IDE finding references to variables defined in e.g. config files
- Fix IDE error occurring for empty shorthand attribute
- Minor fixes & stability improvements

## [0.10.0]

- Support attribute value expressions
- Support shorthand attribute expressions
- Support spread attributes

## [0.9.1]

- Fix buggy auto-inserted each block closing tag
- Correctly set minimum version compatibility to 2019.2

## [0.9.0]

- Connect template expressions to definitions inside script tag
- Support complex JS expressions in Svelte tags
- Recognize more component imports
- Properly parse Svelte components with a lowercase name matching HTML single tags
- Add Svelte Component to New file menu
- Improve stability

## [0.8.0]

- Add auto import for components
- Highlight not imported components
- Mark unused component imports properly
- Fix Svelte blocks breaking on identifiers containing the words if, as or then
- Support @html & @debug expressions
- Display better error messages for incomplete code
- Extend supported IDE version range to 2019.2

## [0.7.0]

- Support code formatting
- Emmet-style expansions for Svelte tags. Try typing if\[TAB\]
- Auto indent when writing newline between Svelte tags
- Automatically insert closing Svelte tags
- Support folding regions (+/- icons in the gutter) for Svelte tags
- Support Comment with Line/Block Comment actions
- Highlight Svelte tag mustaches in the same color as keywords
- Improve parser behavior for incomplete code

## [0.6.0]

- Add syntax highlighting for JS inside blocks & expressions (bar attributes)
- Add syntax highlighting for Svelte keywords
- Improve parser recovery after errors
- Additional minor improvements

## [0.5.0]

- First public release
51 changes: 31 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,48 @@
<img width="320" src="./media/header.png" alt="Svelte IDE plugin. WebStorm, IntelliJ IDEA, more.">
</p>

<p>Support for <a href="https://svelte.dev/">Svelte</a> in your IDE of choice.</p>
![Build](https://github.com/tomblachut/intellij-template/workflows/Build/badge.svg)
[![Version](https://img.shields.io/jetbrains/plugin/v/12375-svelte.svg)](https://plugins.jetbrains.com/plugin/12375-svelte)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/12375-svelte.svg)](https://plugins.jetbrains.com/plugin/12375-svelte)

<p>Work in progress, pretty usable already.</p>
<!-- Plugin description -->
Support for <a href="https://svelte.dev/">Svelte</a> in your IDE of choice.

<h2>Features</h2>
Work in progress, pretty usable already.

<ul>
<li>Syntax highlighting</li>
<li>Code formatting</li>
<li>Typing assistance</li>
<li>Completions of components and props</li>
<li>Auto import of components</li>
<li>Navigation from components to their definition</li>
</ul>
## Features

<h2>Known issues</h2>
* Syntax highlighting
* Code formatting
* Typing assistance
* Completions of components and props
* Auto import of components
* Navigation from components to their definition
<!-- Plugin description end -->

<ul>
<li>$ labels aren't recognised properly</li>
<li>Directives are treated as plain attributes</li>
<li>No TypeScript</li>
<li>...</li>
</ul>
## Known issues

* $ labels aren't recognised properly
* Directives treated as plain attributes
* No TypeScript
* ...

## Installation
* Use official [Plugin Repository](https://plugins.jetbrains.com/plugin/12375-svelte)
* Head over to [releases tab](https://github.com/tomblachut/svelte-intellij/releases), download `.zip` archive and [Install plugin from disk](https://www.jetbrains.com/help/webstorm/managing-plugins.html#install_plugin_from_disk)

- Using IDE built-in plugin system:

<kbd>Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Marketplace</kbd> > <kbd>Search for "Svelte"</kbd> >
<kbd>Install Plugin</kbd>

- Manually:

Download the [latest release](https://github.com/tomblachut/svelte-intellij/releases/latest) and install it manually using
<kbd>Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>⚙️</kbd> > <kbd>Install plugin from disk...</kbd>

## Compatible IDEs

Works in JavaScript-enabled JetBrains IDEs starting from the version 2020.1.

Information about older releases is available in [version history](https://plugins.jetbrains.com/plugin/12375-svelte/versions).

## Maintenance & support
Expand Down
46 changes: 0 additions & 46 deletions build.gradle

This file was deleted.

Loading

0 comments on commit 8fef7d3

Please sign in to comment.