summaryrefslogtreecommitdiff
path: root/tools (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-05-28Prevent <Markdown> blocks from locking up vscode extension (#269)Gravatar Matthew Phillips 2-56/+15
2021-05-26[ci] yarn formatGravatar natemoo-re 2-4/+2
2021-05-26Renderer plugins (#231)Gravatar Nate Moore 1-1/+1
* 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-24ReleaseGravatar Matthew Phillips 3-3/+10
2021-05-20[ci] yarn formatGravatar matthewp 3-8/+6
2021-05-20Support for Go to Definition in Astro components (#220)Gravatar Matthew Phillips 5-10/+116
* 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-20Get definitions (#219)Gravatar Matthew Phillips 11-219/+430
* Start on css completion * Support for CSS completions * Adds support for Go to Definition in TypeScript in Astro * Run formatting
2021-05-17chore: add publish script to vscode (#216)Gravatar Nate Moore 2-7/+49
2021-05-17[ci] yarn formatGravatar matthewp 11-640/+515
2021-05-17Adds CSS completions to VSCode extension (#214)Gravatar Matthew Phillips 13-2/+1117
* Start on css completion * Support for CSS completions
2021-05-17chore: release v0.10.0Gravatar Nate Moore 1-1/+1
2021-05-17[ci] yarn formatGravatar natemoo-re 1-0/+1
2021-05-17Version Packages (#213)Gravatar github-actions[bot] 5-4/+17
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-17[ci] yarn formatGravatar natemoo-re 1-7/+5
2021-05-17Fix markdown issues (#208)Gravatar Nate Moore 5-10/+3018
* Init fix/markdown * Astro Markdown (#207) * Add Astro Markdown to VSCode Extension * Add Astro Markdown to Astro * refactor: update astro-markdown example * feat: remove embedded components from `.md` files * fix: resolve `.md.astro` files at runtime * chore: update markdown tests * feat: add <Markdown> component * chore: bump examples * chore: update example * fix: improve Markdown child handling * feat: harden markdown support, add code fence support, add automatic dedenting * chore: add weird markdown edge cases * chore: update remote-markdown examples * chore: add comment to Markdown.astro * feat: improve markdown support (codefences, nested inside HTML) * refactor: extract import specifier types to set * refactor: conditionally import markdown renderer * refactor: revert special-cased "astro/components" * refactor: revert special-cased "astro/components" * refactor: use astro/components/Markdown.astro * refactor: remove `.md.astro` support in favor of Markdown component * refactor: use regular .astro files * refactor: remove unused code * refactor: move Markdown inside Layout * wip: markdown scoped styles * feat: improve scoped styles in Markdown * feat: micromark => remark ecosystem * fix: markdown build * fix: markdown build * chore: add todo * fix: collect headers text * docs: add Markdown doc * chore: add changeset * docs: improve Markdown highlighting * refactor: prefer Set * refactor: exclude large unified deps * docs: update markdown docs Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com> * chore: remove extra markdown deps * perf: optimize markdown * fix: unified/rehype deps * temp: fix markdown test * test: add TODO comment * fix: do not namespace frontmatter, just astro metadata * test: fix astro-markdown test * test: add realworld markdown example * fix: prism language bug * docs: update markdown docs * chore: bump dependencies * fix: escape codespan * fix: unterminated string literal * fix(vscode): inline dependencies * fix(vscode): dependencies * feat(vscode): embedded markdown * feat: add Markdown syntax highlighting * chore: improve markdown example * fix: markdown example * feat: highlighting improvements * chore: add changeset * fix: CodeBlock => CodeSpan * chore: get astro-markdown example running Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-05-14Fix Windows tests (#212)Gravatar Drew Powers 1-1/+1
* Fix Windows fetchContent() * Fix Windows bundling & config loading * Fix astro-prettier formatting for Windows
2021-05-13[ci] yarn formatGravatar natemoo-re 4-11/+19
2021-05-13chore: release astro-vscodeGravatar Nate Moore 4-7/+13
2021-05-13Version Packages (#195)Gravatar github-actions[bot] 4-4/+21
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-13Support for import suggestions in the languageserver (#204)Gravatar Matthew Phillips 4-12/+21
* Support for import suggestions in the languageserver https://www.loom.com/share/21921be3ebd1403aa4aaa4f39587efdb * Add the changeset
2021-05-12[wip] Fix CI (#202)Gravatar Drew Powers 8-128/+110
* Yarn format * Fix changeset --since * Fix Windows tests
2021-05-11VS Code extension (#197)Gravatar Matthew Phillips 6-19/+181
* Fix running the extension I'm not sure how my setup was different but I was unable to get the extension to run locally without adding a binary. This mirrors what Svelte does so I'm assuming it's the way it's supposed to be loaded. * Resolve TypeScript suggestions to the correct file This fixes a couple of bugs related to suggestions. 1 was this does the whole `.ts` extension fakeout thing so that the TypeScript plugin thinks that Astro files are TypeScript. Secondly this fixes the caching of the Document, so that suggestions account for the current document text.
2021-05-08Fix running the extension (#181)Gravatar Matthew Phillips 4-2/+31
I'm not sure how my setup was different but I was unable to get the extension to run locally without adding a binary. This mirrors what Svelte does so I'm assuming it's the way it's supposed to be loaded.
2021-05-06Chore: fix lint rules, add more error handling for unexpected cases (#177)Gravatar Drew Powers 1-1/+0
2021-05-06Add CSS bundling (#172)Gravatar Drew Powers 1-1/+1
* Add CSS bundling * Add Changeset * Update build script * Count better * Fix stats * Cleanup * Add test * Show profile ms under 750ms
2021-05-05Split out `astro-languageserver` and `astro-vscode` (#173)Gravatar Nate Moore 41-135/+49
2021-05-03Format (#167)Gravatar Drew Powers 31-2376/+2113
2021-04-30Migrate to `yarn` monorepo (#157)Gravatar Nate Moore 50-0/+4067
* chore: use monorepo * chore: scaffold astro-scripts * chore: move tests inside packages/astro * chore: refactor tests, add scripts * chore: move parser to own module * chore: move runtime to packages/astro * fix: move parser to own package * test: fix prettier-plugin-astro tests * fix: tests * chore: update package-lock * chore: add changesets * fix: cleanup examples * fix: starter example * chore: update changeset config * chore: update changeset config * chore: setup changeset release workflow * chore: bump lockfiles * chore: prism => astro-prism * fix: tsc --emitDeclarationOnly * chore: final cleanup, switch to yarn * chore: add lerna * chore: update workflows to yarn * chore: update workflows * chore: remove lint workflow * chore: add astro-dev script * chore: add symlinked README