Commit graph

5766 commits

Author SHA1 Message Date
duncanhealy
653ee5ec07
documentation: post #231 merge renderers are a config option (#249)
* documentation: post #231 merge renderers are a config option

* Update docs/config.md to reorder
2021-05-26 18:27:26 +01:00
duncanhealy
622d1a38f1
fix: package for templates to latest version of astro #245 (#248) 2021-05-26 12:33:56 -04:00
matthewp
36fc51c124 [ci] yarn format 2021-05-26 15:33:35 +00:00
Matthew Phillips
da47225efe
Add benchmarking for dev and build (#240)
* Add benchmarking for the dev server

This adds benchmarking for the dev server.

* Use fs.rm instead

* Only rimraf if the folder exists

* Make uncached match CI

* Change the cached time too

* Don't run benchmark in CI

* Switch back test command

* Make tests be within 10 percent

* Use yarn to run multiple things

* Turn benchmark into uvu tests

* Debugging benchmark

* Print chunk for testing

* Ignore benchmark folder in uvu

* Add build benchmarking

* Update benchmark numbers
2021-05-26 11:31:53 -04:00
natemoo-re
8a375e66d2 [ci] yarn format 2021-05-25 22:18:12 +00:00
木杉
760a7a5509
Support skip install deps (#242)
* Support skip install deps

* fmt

* Create new-hats-deliver.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-05-25 17:16:49 -05:00
Drew Powers
f5ecbee192
Add test for npm init astro (#238)
* Add test for npm init astro

* Use Lerna to run test
2021-05-24 16:18:56 -06:00
matthewp
860a84d4f4 [ci] yarn format 2021-05-24 20:58:18 +00:00
Matthew Phillips
ffa45c5d2b
Add a contributing.md and explain how to do publishes. (#237) 2021-05-24 16:57:01 -04:00
ewatch
3d99045411
Fix invalid HTML code in Example 1 (#236)
Line 111 opened a headline with h5 but closed with h6.
Both are h5 tags now.
2021-05-24 16:53:39 -04:00
Matthew Phillips
ac43faf85f Release 2021-05-24 16:32:10 -04:00
Matthew Phillips
2ff2533c9e
Fix markdown syntax issues (#234)
This fixes #233 among other things
2021-05-24 16:00:34 -04:00
Drew Powers
c43ee95850
Bugfix: random CSS ordering (#232)
* Bugfix: random CSS ordering

Fixes #230

* Update docs
2021-05-24 10:57:35 -06:00
Drew Powers
c9942c2878
Revert stylegen (#228) 2021-05-21 14:55:25 -06:00
natemoo-re
8b6b41eb85 [ci] yarn format 2021-05-21 20:53:47 +00:00
Nate Moore
9cdada0bcc
Markdown issue cleanup (#224)
* fix: markdown issues

* chore: add changeset

* chore: add missing dep

* perf: parallelize compileHtml for children
2021-05-21 15:52:20 -05:00
Drew Powers
19e20f2c54
Add Tailwind support to Astro Dev Server (#222)
* Improve PostCSS and Tailwind support

* Update styling docs

* Changelog

* Fix test hanging
2021-05-21 14:02:19 -06:00
Drew Powers
69d693b77c
Add scoped styles test (#223) 2021-05-21 12:45:49 -06: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
Matthew Phillips
6ce068b838
Get definitions (#219)
* Start on css completion

* Support for CSS completions

* Adds support for Go to Definition in TypeScript in Astro

* Run formatting
2021-05-20 13:02:46 -04:00
Drew Powers
3da2b58b9d
Add dev server profile logs (#218) 2021-05-18 15:57:15 -05:00
木杉
cce8ac72e0
Make Astro compatible with Windows (#215) 2021-05-17 17:52:11 -05:00
Drew Powers
d6cedac38e
Improve blog template (#217) 2021-05-17 17:45:41 -05:00
Nate Moore
d8a78298f3
chore: add publish script to vscode (#216) 2021-05-17 13:29:51 -05:00
matthewp
86ed94e0c6 [ci] yarn format 2021-05-17 18:28:30 +00:00
Matthew Phillips
c3c96bf498
Adds CSS completions to VSCode extension (#214)
* Start on css completion

* Support for CSS completions
2021-05-17 14:27:24 -04:00
Nate Moore
27a7986a38 chore: remove shhhhh from README 2021-05-17 10:21:37 -05:00
Nate Moore
512670bedd chore: release v0.10.0 2021-05-17 10:20:15 -05:00
Nate Moore
507eabe9f0 chore: fix version 2021-05-17 10:16:30 -05:00
Nate Moore
73bab5e385 chore: version packages 2021-05-17 09:40:51 -05:00
Nate Moore
c75bede6f5 chore: bump create-astro deps 2021-05-17 09:34:36 -05:00
natemoo-re
7a0fd2bd4e [ci] yarn format 2021-05-17 14:32:43 +00:00
github-actions[bot]
971c58da4d
Version Packages (#213)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-17 09:31:37 -05:00
natemoo-re
a2ae7018ca [ci] yarn format 2021-05-17 14:30:21 +00:00
Nate Moore
b3886c206f
Fix markdown issues (#208)
* 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-17 09:29:16 -05:00
Nate Moore
fe5cf78e8e fix: brand color 2021-05-16 10:06:12 -05:00
Nate Moore
fbc8fa1df4 chore: add file-icon, beautify svgs 2021-05-16 09:50:57 -05:00
Drew Powers
9d092b56c7
Fix Windows tests (#212)
* Fix Windows fetchContent()

* Fix Windows bundling & config loading

* Fix astro-prettier formatting for Windows
2021-05-14 12:03:41 -04:00
natemoo-re
8f1acf57a5 [ci] yarn format 2021-05-13 19:29:58 +00:00
Nate Moore
06edbd1aad fix: format 2021-05-13 14:28:38 -05:00
Nate Moore
495ee7d4ae chore: ignore broken prettier files 2021-05-13 14:25:03 -05:00
Nate Moore
087fe6276f
chore: format workflow, format .astro files (#211) 2021-05-13 14:20:01 -05:00
Nate Moore
7a3e1c2d4c chore: release astro-vscode 2021-05-13 14:12:45 -05:00
github-actions[bot]
a9f63c5c0c
Version Packages (#195)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-13 12:28:04 -05:00
Matthew Phillips
06e2597dd9
Support for import suggestions in the languageserver (#204)
* Support for import suggestions in the languageserver

https://www.loom.com/share/21921be3ebd1403aa4aaa4f39587efdb

* Add the changeset
2021-05-13 11:26:40 -04:00
Nate Moore
000464bf35 Fix Svelte build output (#201)
* fix(#200): svelte build output

* chore: add changeset
2021-05-13 10:06:04 -05:00
Drew Powers
3ef1b01e14
[wip] Fix CI (#202)
* Yarn format

* Fix changeset --since

* Fix Windows tests
2021-05-12 12:06:16 -06:00
Matthew Phillips
88529b679a
VS Code extension (#197)
* 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-11 20:01:37 -04:00
Nate Moore
e77c8fff77
Fix workflows! (#198)
* chore: fix changeset workflow

* fix: changeset action

* fix: pre_job => skip_test

* chore: add empty changeset
2021-05-11 17:32:11 -06:00