Commit graph

72 commits

Author SHA1 Message Date
github-actions[bot]
986bed8ca4
Version Packages (#1150)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-18 09:24:09 -07:00
github-actions[bot]
66a6c5b06f
Version Packages (next) (#1129)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-17 22:34:47 -07:00
matthewp
d5564747fa [ci] yarn format 2021-08-12 23:40:39 +00:00
Matthew Phillips
7cd3689a8e
Provide completion suggestions in component props (#1082)
* Provide completion suggestions in component props

* Limit prop completion to props that the component exports
2021-08-12 18:39:27 -05:00
github-actions[bot]
43e17e59da
Version Packages (next) (#1092)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-12 01:39:34 -07:00
github-actions[bot]
2b41db1531
Version Packages (next) (#1089)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 16:30:24 -07:00
github-actions[bot]
10d6fa4bca
Version Packages (next) (#1087)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 15:50:14 -07:00
github-actions[bot]
b54c01bf66
Version Packages (#1064)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-08-11 15:01:00 -07:00
natemoo-re
3f093fa830 [ci] yarn format 2021-08-11 20:42:31 +00:00
Nate Moore
6c6a33b987 fix vscode publish flow 2021-08-11 15:39:52 -05:00
Nate Moore
47c439f13e bump language-server to 0.6.0 2021-08-11 15:36:22 -05:00
Nate Moore
86c47296b4 fix: language server 2021-08-11 15:35:32 -05:00
Nate Moore
99d0677a43 Update VS Code package 2021-08-11 14:41:21 -05:00
matthewp
16790aee7b [ci] yarn format 2021-08-10 13:31:09 +00:00
Matthew Phillips
2c5380a266
Add support for Astro.* completion and Hover help (#1068)
* Add support for Astro.* completion and Hover help

* Allow providing a generic type to fetchContent
2021-08-10 09:30:02 -04:00
matthewp
bef7247812 [ci] yarn format 2021-08-09 16:04:44 +00:00
Matthew Phillips
5293519470
Fix GoToDefinition for component imports (and component usage) (#1045)
* Fix GoToDefinition for component imports (and component usage)

* Remove extra comment
2021-08-09 12:03:32 -04:00
Fred K. Schott
94f89a3c88
full translation (#967) 2021-08-01 23:38:50 -07:00
Caleb Jasik
cb7c9d5f82
Add tmlanguage schema to textmate language files + fix the errors hopefully. (#926)
This might
2021-07-28 17:34:06 -04:00
Fred K. Schott
e31e276781
get build-all passing (#795) 2021-07-21 17:39:14 -07:00
Fred K. Schott
5f922221ba Revert "Version Packages (next) (#692)"
This reverts commit 790bd89ead.
2021-07-21 08:12:32 -07:00
github-actions[bot]
790bd89ead
Version Packages (next) (#692)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-21 07:57:51 -07:00
github-actions[bot]
a22a601e9f
Version Packages (next) (#663)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-13 08:31:28 -04:00
github-actions[bot]
b2428b3999
Version Packages (#632)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-08 14:14:55 -04:00
Caleb Jasik
53fcae1a9a
Remove prettier-plugin-astro to fix Prettier CI (#614)
* Disable embedded languages formatting so that Astro code blocks don't make prettier hang

* chore: remove prettier-plugin-astro

* chore: enable embedded languages

* chore: update yarn lock

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-07-07 15:09:05 -05:00
github-actions[bot]
816797e350
Version Packages (#597)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-07-01 15:06:18 -05:00
Nate Moore
7063c04dec
Restructure examples (#568)
* rename kitchen sink, pull out react example

* split out the rest of the examples

* align versions

* chore: rename examples

* chore: normalize gitignore

* chore: update package versions

* chore: move framework examples to `framework` namespace

* docs: add README to examples

Co-authored-by: Austin Crim <crim.austin@principal.com>
2021-06-28 10:46:10 -05:00
Caleb Jasik
05d6fc66bb
prettier-plugin: Add a test for JSX embedded in an attribute. This test currently fails. (#508)
* Add a test for JSX embedded in an attribute. This test currently fails.

* Oops forgot the semicolons on the correct output

* Add `--scope prettier-plugin-astro` so that the prettier plugin is tested on default CI

* Replace `assert.equal` with `assert.fixture` to remain inline w/ main

* Update astro-prettier.test.js

* Skip the other failing test.

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-06-25 15:21:03 -07:00
github-actions[bot]
91e11aee2a
Version Packages (#543)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-25 09:51:28 -04:00
github-actions[bot]
16724f93e3
Version Packages (#513)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-22 15:01:33 -04:00
Caleb Jasik
90929fbfca
Use assert.fixture rather than assert.equal for the prettier formatting diffs for easier to read errors (#509) 2021-06-22 10:06:30 -04:00
github-actions[bot]
8b69c2d406
Version Packages (#484)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-21 15:38:41 -04:00
Caleb Jasik
ff7ec2fc02
Add @types/prettier to astro-prettier-plugin (#487) 2021-06-17 16:10:15 -05:00
natemoo-re
a0d94cb633 [ci] yarn format 2021-06-16 18:21:50 +00:00
Nate Moore
0dd278810e
Fix VS Code extension (#467)
* chore: astro-languageserver => @astrojs/language-server

* chore: astro-vscode => vscode

* chore: move devDeps to deps

* chore: bump language-server to 0.5.0-next.0

* chore: remove astro-docs

* chore: update changelog

* fix: expose `astro-ls` bin

* fix: vscode extension

* chore: update changelog
2021-06-16 13:20:29 -05:00
github-actions[bot]
0ef0c99b10
Version Packages (#418)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-14 08:43:03 -04:00
github-actions[bot]
6eacdbae42
Version Packages (#381)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-11 09:15:16 -04:00
Drew Powers
a660e49f80
Add integration test for templates (#372) 2021-06-10 10:30:48 -06:00
Matthew Phillips
5cc90f9dc1
Move parser to the scoped package name (#319)
* Move parser to the scoped package name

* Prettier plugin should use 0.12 of the parser
2021-06-07 16:05:13 -04:00
github-actions[bot]
092d201aee
Version Packages (next) (#227)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-28 18:25:36 -05:00
natemoo-re
2e99dc574f [ci] yarn format 2021-05-28 23:24:27 +00:00
Nate Moore
852ff05864
Enter prerelease (#278)
* chore: release vscode

* chore: move astro-languageserver deps to devDeps

* chore: enter pre
2021-05-28 18:23:05 -05:00
Nate Moore
3df41d2308
Bugbash! (#263)
* fix(vscode): Markdown frontmatter should use TSX, not YAML

* test: add test for #153

* chore: bump deps

* chore: update to use @astrojs scope

* fix: Markdown parse error when only child is `{expression}`

* fix: update renderer edge cases

* fix: failing test

* fix: update renderer
2021-05-28 17:19:40 -05:00
matthewp
556b9e48e4 [ci] yarn format 2021-05-28 15:53:52 +00:00
Matthew Phillips
444e5a6807
Prevent <Markdown> blocks from locking up vscode extension (#269) 2021-05-28 11:52:27 -04:00
natemoo-re
5fa7e354b3 [ci] yarn format 2021-05-26 18:31:27 +00:00
Nate Moore
643c880f28
Renderer plugins (#231)
* refactor: pluggable renderers

* refactor: cache renderer per component

* docs: update comments on snowpack plugin `transform` method

* docs: add comments to renderer plugins

* refactor: convert components to Map

* fix: pass children through to astro __render

* refactor: move Components/ComponentInfo to shared types

* refactor: remove `gatherRuntimes` step, just scan output for imports

* refactor: update isComponentTag logic

* chore: move dependencies to renderers

* fix: cross-platform transform injection

* feat: defer renderer to react, fallback to preact

* fix: use double quotes in generated script

* test: fix failing children tests

* test: add workspaceRoot to all tests

* fix: pass props to renderer check

* chore: add test:core script back for convenience

* chore: remove unused external

* chore: rename renderers

* chore: add astring, estree-util-value-to-estree

* chore: render-component => __astro_component

* refactor: split hydrate logic to own file

* refactor: use `astro-fragment` rather than `div`

* chore: remove unused hooks

* chore: delete unused file

* chore: add changesets

* fix: Astro renderer should be async

* fix: remove <astro-fragment> for static content

* test: fix failing test

* chore: normalize config interface

* feat: allow renderers to inject a snowpackPlugin

* fix: resolve import URL before using dynamic import

* refactor: update renderers to use separate /server entrypoint

* refactor: update server renderer interface

* fix: get renderers working again

* test: debug failing test

* test: better debug

* test: better debug

* test: remove debug

* fix: support esm and cjs packages via "resolve"

* refactor: split hydrate functions into individual files

* fix: dependency resolution relative to projectRoot

* fix: @snowpack/plugin-postcss needs to be hoisted

* fix: do not test prettier-plugin-astro as it's not ready for primetime
2021-05-26 13:30:22 -05:00
Matthew Phillips
ac43faf85f Release 2021-05-24 16:32:10 -04:00
matthewp
5c1f949953 [ci] yarn format 2021-05-20 19:15:34 +00:00
Matthew Phillips
4834c090f8
Support for Go to Definition in Astro components (#220)
* Start on css completion

* Support for CSS completions

* Adds support for Go to Definition in TypeScript in Astro

* Run formatting

* Add support for Astro component go to definition

* Formatting

* Jump directly to file where definition is found
2021-05-20 15:14:27 -04:00