Commit graph

615 commits

Author SHA1 Message Date
github-actions[bot]
e4fe7c0d02
Version Packages (#567)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-29 16:46:41 -04:00
Matthew Phillips
6e6e203715 Remove outdated changeset 2021-06-29 16:44:37 -04:00
Matthew Phillips
1e735bb331
Pass in scoped class name to child components (#579)
* Pass in scoped class name to child components

If a class is being passed into child components, pass in the scoped class name as well.

* Adds the changeset
2021-06-29 16:40:30 -04:00
Nate Moore
f721275f33
Fix <Markdown {content} /> closing parent tag (#575)
* test(#494): add failing test

* chore: update with-markdown example

* fix(#494): avoid early close with <Markdown content />

* chore: add changeset
2021-06-29 15:33:56 -05:00
Nate Moore
8b4760c24f
fix: changeset (#580) 2021-06-29 15:31:29 -05:00
Fred K. Schott
9c7921300c Merge branch 'docs-sync-1' 2021-06-29 13:12:27 -07:00
natemoo-re
4df98a79f8 [ci] yarn format 2021-06-29 16:38:55 +00:00
Nate Moore
e28d5cb9de
Allow .astro files to throw new Error() (#572)
* fix(#526): enable `throwExpressions`

* chore: add test for throwing inside of `.astro`

* fix: improve build error handling

* chore: add test when throwing on `build`

* chore: fix changeset bot

* chore: add changeset
2021-06-29 11:37:36 -05:00
Nate Moore
42a6ceb587
Fix changesets action (#576)
* chore: move examples to `@example/`, normalize `package.json`

* chore: update lockfile

* chore: add empty changeset
2021-06-29 11:05:33 -05:00
FredKSchott
b580f5a592 [ci] yarn format 2021-06-28 22:30:35 +00:00
Fred K. Schott
5591d4eb9f
update the blog example (#565) 2021-06-28 15:29:16 -07:00
Nate Moore
7063c04dec
Restructure examples (#568)
* rename kitchen sink, pull out react example

* split out the rest of the examples

* align versions

* chore: rename examples

* chore: normalize gitignore

* chore: update package versions

* chore: move framework examples to `framework` namespace

* docs: add README to examples

Co-authored-by: Austin Crim <crim.austin@principal.com>
2021-06-28 10:46:10 -05:00
Adam Ochayon
13f50564cb
Fix: Redundant acronym for ESM (#570) 2021-06-28 08:08:56 -07:00
Brian Hinton
0c6edf1fe0
bug: changed initialization order of the author (#563) 2021-06-28 07:23:18 -05:00
natemoo-re
3c4e6c5913 [ci] yarn format 2021-06-28 12:04:07 +00:00
Austin Crim
3c26035f53
Split out specific framework examples (#559)
* rename kitchen sink, pull out react example

* split out the rest of the examples

* align versions

Co-authored-by: Austin Crim <crim.austin@principal.com>
2021-06-28 07:02:59 -05:00
natemoo-re
436783d059 [ci] yarn format 2021-06-28 11:23:20 +00:00
Tony @ Navillus
aa8605761b
Fix collections regex (#557)
* fix: 🐛 Fixes bug #532

Matching for collection routes should look for exact filename matches

* test:  Adding test coverage to make sure collection routes are matched exactly

* chore: Adding changeset
2021-06-28 06:22:15 -05:00
Fred K. Schott
279a252462 astro-docs sync 2021-06-27 23:30:57 -07:00
Fred K. Schott
11cf22999d
Update ---bug_report.yml 2021-06-25 21:37:03 -07:00
Fred K. Schott
7b21dc0063
Update README.md (#550) 2021-06-25 15:32:25 -07:00
Caleb Jasik
05d6fc66bb
prettier-plugin: Add a test for JSX embedded in an attribute. This test currently fails. (#508)
* Add a test for JSX embedded in an attribute. This test currently fails.

* Oops forgot the semicolons on the correct output

* Add `--scope prettier-plugin-astro` so that the prettier plugin is tested on default CI

* Replace `assert.equal` with `assert.fixture` to remain inline w/ main

* Update astro-prettier.test.js

* Skip the other failing test.

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-06-25 15:21:03 -07:00
Mike Sausa
8aca0fabaf
Fix pokemon results typo in collections docs (#541) 2021-06-25 15:19:50 -07:00
Tony @ Navillus
245632bc31
Update collections.md (#549)
Updating the Individual Pages from a Collection example to fix a few typos.

- The pokemon API returns an object with an array named `results` (plural)
- `data()` needs to wrap the object in an Array
- accessing item data needs to use `collection.data[0]` to grab data from the `data()` Array
2021-06-25 14:07:11 -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
Matthew Phillips
21dc28cb8e
Add changeset for react renderer change (#544) 2021-06-25 09:49:07 -04:00
Matthew Phillips
52bf970d6e
Remove broken changeset (#542)
This changeset has "mixed ignored and not ignored change", whatever this means. This is a changeset for examples, which we don't publish, so its unnecessary.
2021-06-25 09:38:46 -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
natemoo-re
02ecaf3d33 [ci] yarn format 2021-06-24 22:40:29 +00:00
Agustin Mulet
81c01d121f
Added example of Astro usage with nanostores (#539)
* Adding astro-nanostores example

* Changed package name and removed lock file
2021-06-24 17:39:17 -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
Fred K. Schott
1eda589be1
Update ---bug_report.yml 2021-06-24 12:02:24 -07:00
Fred K. Schott
18846ef293
Update ---bug_report.yml 2021-06-24 12:01:33 -07:00
Fred K. Schott
22faa0f0f8
Update ---bug_report.yml 2021-06-24 12:00:46 -07:00
Nate Moore
40ae924e63
Update ---bug_report.yml 2021-06-24 10:30:06 -05:00
Nate Moore
36a461861f
Update ---bug_report.yml 2021-06-24 10:29:22 -05:00
Nate Moore
428ab5d0c2
Update ---framework-library-support.yml 2021-06-24 10:15:07 -05:00
Nate Moore
f56280afa3
Update ---framework-library-support.yml 2021-06-24 10:13:51 -05:00
Nate Moore
4b7adf6ae8
Delete ---framework-library-support-request.md 2021-06-24 10:13:36 -05:00
Nate Moore
99dc5eb686
Update ---feature-request.yml 2021-06-24 10:13:11 -05:00
Nate Moore
420ed08155
Update ---framework-library-support.yml 2021-06-24 10:11:08 -05:00