Commit graph

76 commits

Author SHA1 Message Date
github-actions[bot]
6018769c5c
Version Packages (#330)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-08 09:46:48 -04:00
Matthew Phillips
21b0c73a2a
Remove warnings coming from snowpack (#329)
* Remove warnings coming from snowpack

This removes a few warnings coming from snowpack that we can't really do anything about.

* Adds changeset
2021-06-08 09:45:15 -04:00
github-actions[bot]
68f6e2c5a3
Version Packages (#328)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-08 09:19:24 -04:00
Matthew Phillips
f66fd1f737
Remove __astro_component from knownEntrypoints (#327)
* Remove __astro_component from knownEntrypoints

* Adds a default site. Otherwise the build throws

* Adds the changeset
2021-06-08 09:17:05 -04:00
github-actions[bot]
2db08436e6
Version Packages (#325)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-08 09:00:07 -04:00
Matthew Phillips
5a871f357f
Set the default log level to info (#326)
* Set the default log level to info

* Adds the changeset

* Let the logger.js be the source of truth
2021-06-08 08:58:33 -04:00
Fred K. Schott
f4a747fb1f
snowpack.dev build output cleanup (#324)
* cleanup grabbag

* add changeset

* Skip the flakey logging test

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2021-06-08 08:33:15 -04:00
Nate Moore
f6ef53b7fa
Fix recursive markdown (#315)
* wip: fix recursive markdown

* fix: recursive markdown issue

* chore: add changeset
2021-06-08 08:21:37 -04:00
github-actions[bot]
9cf83338cd
Version Packages (#323)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-07 17:28:26 -04:00
Matthew Phillips
522c873813
Don't pass through generic args to build (#322)
* Don't pass through generic args to build

* Adding a changeset
2021-06-07 17:27:11 -04:00
github-actions[bot]
d90f3fc540
Version Packages (#318)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-07 16:52:22 -04: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
Nate Moore
cc532cddde
Fix Tailwind resolution (#314)
* fix: properly resolve tailwind postcss plugin

* chore: add changeset

* chore: update @snowpack/plugin-postcss
2021-06-07 15:04:07 -05:00
Matthew Phillips
b1364afbae
Prevent duplicate snowpack logs (#316)
* Prevent duplicate snowpack logs

* Fix test to wait on expected messages

* Update the snowpack/plugin-vue

* Add changeset

* Debugging

* Skip the logging test on windows :(

* arg
2021-06-07 14:24:55 -04:00
github-actions[bot]
15a5601591
Version Packages (#299)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-05 10:23:45 -05:00
Nate Moore
0d6afaee9e
fix: Markdown usage when deeply nested on a page (#303)
* fix: Markdown component deeply nested on a page

* chore: add changeset
2021-06-05 10:18:26 -05:00
Matthew Phillips
1d930ffdf4
Add verbose and reload commands (#297)
* Add verbose and reload commands

* Adds docs

* Adds a changeset

* Update witty-colts-fix.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-06-04 16:38:01 -05:00
github-actions[bot]
c6d3456968
Version Packages (#298)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-04 16:55:19 -04:00
Matthew Phillips
fe6a985d56
Use dist in specifier when importing internal stuff (#296)
* Use dist in specifier when importing internal stuff

* Added the changeset
2021-06-04 16:53:31 -04:00
github-actions[bot]
7b900d8673
Version Packages (#295)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-04 14:28:14 -04:00
Matthew Phillips
50e6f491ad
Use npm package names to load internal deps (#294)
* Use npm package names to load internal deps

This is necessary so that published Astro components work. These components will be built by esinstall and therefore they cannot rely on `_astro_internal`. The fix is to use npm specifiers everywhere.

* Move most of frontend to internal

* Mark astro/internal/markdown.js as external

* Move markdown stuff to its own package

This moves the markdown stuff to its own package so that we can externalize it in the markdown component.

* Add the changeset
2021-06-04 14:19:01 -04:00
github-actions[bot]
6074771564
Version Packages (#291)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-02 13:51:43 -04:00
Matthew Phillips
6de740d62f
Fix starter template's Tour component (#290)
* Fix starter template's Tour component

This component had an extra backtick and also didn't import the Markdown component.

* Add a changeset
2021-06-02 13:50:16 -04:00
github-actions[bot]
436a016408
Version Packages (#285)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-02 12:49:05 -04:00
matthewp
b4cc8b096f [ci] yarn format 2021-06-02 16:40:50 +00:00
Matthew Phillips
7cae48ab78 Exit out of pre mode 2021-06-02 12:39:44 -04:00
Nate Moore
ffb6380c3f
Dynamic Markdown content (#273)
* wip: serverside render dynamic Markdown content

* docs: update Markdown.astro comments

* Use existing markdown infrastructure to render external MD

* Update Markdown docs

* Add a changeset

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2021-06-02 11:53:33 -04:00
Drew Powers
d2330a5825
Improve “file not found” error display (#288) 2021-06-02 09:53:24 -06:00
Matthew Phillips
46871d2d4a
Don't append a class attribute to the doctype (#284)
* Don't append a class attribute to the doctype

Fixes #282

* Add changeset
2021-06-01 20:03:38 -05:00
Nate Moore
c9d833ee0b
Fix prerelease bugs, reenable @astrojs/renderer-vue (#286)
* fix: add packages to external

* fix: improve renderer error message

* fix: reenable vue renderer

* chore: remove `extensions` from templates

* fix: reenable @astrojs/renderer-vue

* refactor: add types to snowpack plugin

* fix: update snowpack

* fix: use manual SSR wrapper for Svelte

* chore: add changesets

* chore: bump snowpack

* test: fix failing test

* chore: remove redundant entries
2021-06-01 18:41:08 -05:00
Drew Powers
addd67d244
Change astroRoot to pages (#277)
#271
2021-06-01 09:57:12 -06:00
natemoo-re
fad2662486 [ci] yarn format 2021-05-29 13:33:42 +00:00
github-actions[bot]
44d0adc000
Version Packages (next) (#280)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-29 08:32:29 -05:00
Nate Moore
ce30bb0041
Temporarily disable @astrojs/renderer-vue (#279)
* chore: add package.json to externals

* fix: add missing packages to allowList

* fix: temporarily disable @astrojs/renderer-vue

* chore: add changeset
2021-05-29 08:30:32 -05:00
natemoo-re
45c508fa46 [ci] yarn format 2021-05-28 23:26:50 +00: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
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
Nate Moore
3d20623c32
Fix falsy values (#275)
* fix(#274): improve attribute handling

* chore: add test for JSX expressions

* fix: falsy expressions should not render

* chore: add changeset

* test: update expression tests

* fix: render 0 if value is {0}
2021-05-28 17:02:04 -05:00
Drew Powers
a0055bd985
Create astro fixes (#267)
* Remove create-astro from workspace

* Improve contrast ratio

* Swap blank template for blog template

* Remove counter components from blog template

* Use `latest` astro version
2021-05-28 10:06:22 -06:00
Drew Powers
b652da4b67
Bugfix: CLI selected item spacing (#259) 2021-05-27 17:50:58 -06:00
Nate Moore
8ff79981db
Enable HMR (#260)
* feat: enable HMR in `createSnowpack`

* feat: enable Snowpack's HMR

* chore: add changeset

* chore: remove unused file

* chore: add changeset
2021-05-27 09:55:23 -05:00
Nate Moore
0b7d453c99 chore: release create-astro@0.1.2 2021-05-26 18:35:29 -05:00
Drew Powers
75bfc019aa
Fix npm init astro for npm v7 (#257)
Fixes #183
2021-05-26 14:17:50 -06: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
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
Matthew Phillips
ac43faf85f Release 2021-05-24 16:32:10 -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