Commit graph

610 commits

Author SHA1 Message Date
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
Nate Moore
2b1dbbe32f chore: release create-astro@0.2.0 2021-05-28 21:39:51 -05:00
natemoo-re
9db5d70ae8 [ci] yarn format 2021-05-28 23:29:49 +00:00
Nate Moore
4c0c5e6f85 chore: bump lockfile 2021-05-28 18:28:46 -05:00
Nate Moore
16c9272f35 chore: update astro-parser 2021-05-28 18:28:46 -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
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
natemoo-re
8d7abd0ede [ci] yarn format 2021-05-28 22:52:52 +00:00
Matthew Phillips
f49944c0e7
Improve dev perf by not esinstalling Node deps (#253)
* Improve dev startup by making most dependencies externals

This moves most dependencies to be an `external` for Snowpack, preventing backend deps from going through esinstall.

* Update benchmark times

* chore: add benchmark script for convenience

* fix: update externals to allow renderers

* chore: update benchmark times

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-05-28 17:51:50 -05:00
natemoo-re
94a053c99c [ci] yarn format 2021-05-28 22:20:42 +00: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
natemoo-re
630c36f351 [ci] yarn format 2021-05-28 22:03:05 +00: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
Nate Moore
e08abacfee
fix: failing test? (#276) 2021-05-28 16:54:39 -05:00
Matthew Phillips
14cfd204de
Update Starter template to use the Markdown component (#270)
Uses the Markdown component in the Tour component.
2021-05-28 12:54:39 -04: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
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
Drew Powers
f366520995
Improve Advanced Styling doc (#268) 2021-05-27 20:05:29 -06:00
Drew Powers
b652da4b67
Bugfix: CLI selected item spacing (#259) 2021-05-27 17:50:58 -06:00
Drew Powers
5292b08028
Make UVU tests time out (#265) 2021-05-27 14:06:54 -06:00
matthewp
c711681cb6 [ci] yarn format 2021-05-27 17:55:41 +00:00
Matthew Phillips
dd7cc798e0
Fix codeblocks in markdown components (#264)
* Fix codeblocks in markdown components

* Debugging

* More debugging

* remove extra debugging stuff
2021-05-27 13:54:38 -04:00
natemoo-re
3dc141b868 [ci] yarn format 2021-05-27 14:56:28 +00: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
natemoo-re
a5782a37c8 [ci] yarn format 2021-05-27 14:17:27 +00:00
Nate Moore
5247a23cbe
Example: Docs template (#226)
* fix: markdown issues

* wip: add docs example

* example: update doc template

* chore: credit Steph for AvatarList

* chore: align footer to bottom viewport

* chore: feeback R1

* fix: font fallback in firefox

* fix merge conflicts

* fix: add default value to headers

* chore: fix doc example
2021-05-27 09:16:14 -05:00
Nate Moore
19dc517b87 chore: update lockfile 2021-05-27 09:13:17 -05:00
Nate Moore
dc1fe7d9c3
chore: cleanup deps (#261) 2021-05-27 08:10:14 -04:00
Nate Moore
191186af43 TEMP: skip create-astro tests 2021-05-26 18:52:53 -05:00
Nate Moore
9e7a1cbd7f TEMP: remove react from create-astro deps 2021-05-26 18:39:19 -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
Nate Moore
be804499b0
Remove remote urls from import scanner (#256)
* fix: remove remote urls from import scanner

* debug test
2021-05-26 14:56:34 -05:00
duncanhealy
5dc3aa007a
chore: update getting started config #245 (#250)
* chore: update getting started config #245

* chore: reorder renderers
2021-05-26 19:56:19 +01: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
duncanhealy
31e52c2e4c [ci] yarn format 2021-05-26 17:28:31 +00:00
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