Commit graph

228 commits

Author SHA1 Message Date
Fred K. Schott
279a252462 astro-docs sync 2021-06-27 23:30:57 -07:00
Fred K. Schott
7b21dc0063
Update README.md (#550) 2021-06-25 15:32:25 -07:00
github-actions[bot]
f3e005de6f
Version Packages (#548)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-25 15:14:04 -04:00
Matthew Phillips
8865158f7f
Upgrade postcss snowpack plugin (#547)
* Upgrade postcss snowpack plugin

* Increase the startup time more

* Add changeset
2021-06-25 15:12:10 -04: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
matthewp
7b3047f097 [ci] yarn format 2021-06-25 13:31:17 +00:00
Matthew Phillips
028d4e0114
Fix code from bad merge (#540)
* Fix code from bad merge

* Dont wrap the raw

* Wrap the expression in quotes

* remove react-dom just to test

* Add back react-dom as a known entrypoint

* Make startup time even longer
2021-06-25 09:29:57 -04:00
Drew Powers
56293499e8
Fix PostCSS support upstream in Snowpack (#538)
Fixes #481
2021-06-24 17:49:42 -05:00
natemoo-re
d8a162aeee [ci] yarn format 2021-06-24 22:49:30 +00:00
Nate Moore
a136c85e6b
New Props API (#515)
* wip: update props api

* feat(#139, #309): enable new props api

* chore: migrate examples to new props API

* docs: update syntax guide for new props API

* chore: update examples to new props API

* chore: update docs to new Props API

* fix: hide __astroInternal from `Astro.props` consumers

* chore: remove scratchpad file

* chore: fix script error

* test: fix failing collection tests

* fix: set __astroInternal to `enumerable: false`

* chore: add changeset

* feat: warn users using old props api
2021-06-24 17:48:24 -05:00
natemoo-re
bc9e0f180c [ci] yarn format 2021-06-24 22:42:22 +00:00
Nate Moore
47ac2ccd17
Fix {...spread} props (#522)
* fix(#521): allow spread props

* chore: add spread prop tests

* fix: falsy expressions should only be skipped in 'Expression' case

* fix: support primitives in expressions (objects, arrays)
2021-06-24 17:41:10 -05:00
Mats
4cd84c6607
Removed unused console.warn trap function (#537) 2021-06-24 16:07:49 -05:00
Matthew Phillips
feb9a3141e
Always add the HMR script in dev (#536)
* Always add the HMR script in dev

for livereload

* Adds the changeset
2021-06-24 17:05:55 -04:00
Matthew Phillips
cd9c54d542
Document pnpm and Yarn usage (#531)
* Document using Astro with pnpm

* Document Yarn usage
2021-06-24 15:55:31 +01:00
github-actions[bot]
537f11c511
Version Packages (#517)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-23 16:37:48 -04:00
matthewp
bf6aab7427 [ci] yarn format 2021-06-23 20:02:44 +00:00
Matthew Phillips
e316c9578c
Allow usage of node builtins through node: prefix (#520)
* Start of allowing node builtins issue

* Allow use of node:builtin

* Produce an error in Astro files with bare builtin usage

* Upgrade snowpack version

bug fixes for packages that use `node:`

* Document node builtins

* Use the provided builtins list
2021-06-23 16:01:32 -04:00
Tony @ Navillus
3f3e4f1286
Update createCollection() to handle pageSize: Infinity (#516)
* Fix pageSize calculation when Infinity is given

* test grouping collection with pageSize: Infinity

* test individual pages for collection items

* Revert "update docs, remove reference to Inifinity"

This reverts commit e8a976a543.

* Adding changeset
2021-06-23 08:40:58 -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
Fred K. Schott
09b5779884
fix issues uncovered by snowpack warnings (#511)
* fix output issues uncovered by snowpack warnings

* Update the snowpack version

* Load Prism dep as the default

* Rename srcRoot to src

* Document the src option

* Add the changeset

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2021-06-22 14:41:04 -04:00
Fred K. Schott
b0e41eaf51
update small cli fixes (#512) 2021-06-22 10:06:07 -04:00
Fred K. Schott
3be502777a
Update CHANGELOG.md 2021-06-21 21:29:57 -07:00
Fred K. Schott
0c2ed9248c update changelog/package for rollback 2021-06-21 21:16:09 -07: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
matthewp
32fdb383c7 [ci] yarn format 2021-06-21 19:35:26 +00:00
Matthew Phillips
0abd251cda
Removes snowpack warning suppression (#504)
* Start of warnings

* Provide knownEntrypoints by renderers

This allows renderers to provide knownEntrypoints that will be forwarded to snowpack. This gets rid of renderer-specific warnings and allows us to remove the snowpack logging hacks we were doing.

* Adds a changeset
2021-06-21 15:34:22 -04:00
matthewp
b2a72ccac4 [ci] yarn format 2021-06-21 16:29:33 +00:00
Matthew Phillips
b547892411
Allow the head element to be optional (#447)
* First take

* Allow omitting head element

This makes it possible to omit the head element but still inject the style and HMR script into the right place.

* Add changeset

* More progress on this

* Only render if it's a page

* Include fragments in compiled jsx

* Adds a changeset
2021-06-21 12:28:30 -04:00
matthewp
cab79548db [ci] yarn format 2021-06-21 12:46:24 +00:00
Matthew Phillips
491ff66603
Allow renderers configuration to update (#489)
* Start of dynamic renderers

* Implementation
2021-06-21 08:44:45 -04:00
natemoo-re
f04b82d47e [ci] yarn format 2021-06-19 00:57:20 +00:00
Nate Moore
2671b6f9cc
Skip scoped astro-* class if Astro component has no <style> (#497)
* feat(#472): do not inject `astro-xxx` class for components without styles

* test: add test for skipped scoped classes

* chore: add changeset

* Update happy-cougars-scream.md
2021-06-18 19:56:14 -05:00
ewatch
2b51e9e4b3
fixes counting tags to be closed when a component can't be rendered (#490) 2021-06-17 17:19:21 -05:00
Fred K. Schott
b13ac15365
Update README.md 2021-06-17 09:18:33 -07:00
Dany Castillo
6573bea8d4
Fix README header aspect ratio (#482)
* Fix README header aspect ratio

* add changeset

* bring back img and try responsive width and height

* Remove `width` and `height` attrs

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-06-17 11:10:49 -05:00
github-actions[bot]
11eda869dc
Version Packages (#470)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-16 17:26:15 -04:00
Matthew Phillips
233fbcd5c5
Fix race condition in build (#477)
* Fix race condition in build

* Add changeset
2021-06-16 17:24:25 -04:00
natemoo-re
5c01526731 [ci] yarn format 2021-06-16 21:16:31 +00:00
Nate Moore
03ebdc3387
feat(#455): improve error logging inside of expressions (#476) 2021-06-16 16:15:25 -05:00
Drew Powers
7f8d5869c3
Fix parser error on forward slash (#469)
Fixes #407
2021-06-16 13:26:38 -06:00
github-actions[bot]
382868abfc
Version Packages (#466)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-16 14:12:05 -04:00
Caleb Jasik
f9f2da458d
Add repository remotes for all astro packages (#458)
* Add repository remotes for all astro packages

* Add repository.directory key instead of adding the path to repository.url

* Include changeset

* Add repository key to create-astro
2021-06-16 14:09:35 -04:00
matthewp
7fdb7ceca6 [ci] yarn format 2021-06-16 17:38:46 +00:00
Matthew Phillips
5601efa257
Prevent HMR client from being part of bundle (#464) 2021-06-16 13:37:29 -04:00
Brad Cornes
3ada25d7d9
Pass configured Tailwind config file to the tailwindcss plugin (#352)
* fix tailwind config filename

* pass configured config file to tailwindcss

* add changeset

* remove `tailwindConfig` from `CompileOptions` interface
2021-06-16 11:36:19 -06:00
github-actions[bot]
c0804fc8cd
Version Packages (#450)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-16 08:41:21 -04:00
Matthew Phillips
2023a26725
Fix issue with proxy imports not reloading on change (#462)
Underlying issue fixed in Snowpack here: https://github.com/snowpackjs/snowpack/pull/3449
2021-06-16 08:35:09 -04:00
Nurettin Kaya
251b0b5c06
Less verbose HMR script (#457)
* Less verbose HMR script

* push changeset
2021-06-16 08:17:06 -04:00
Drew Powers
54c291efa0
Handle script module resolution (#438)
Fixes #104
2021-06-15 15:06:29 -06:00