Commit graph

611 commits

Author SHA1 Message Date
ewatch
271b45f16b adapt interpretation of config default value for buildOptions.draft
adds logic for collections
2021-06-28 11:48:32 -04:00
ewatch
cba4f2bd5c adds tests for markdown draft / published attributes 2021-06-28 11:48:32 -04:00
ewatch
4273c10a38 removes CLI argument 2021-06-28 11:48:32 -04:00
ewatch
6ef9664f98 removes debug output 2021-06-28 11:48:32 -04:00
ewatch
eadf186e42 adds draft configuration option to starter 2021-06-28 11:48:32 -04:00
ewatch
5c6c6c39bc adds handling for draft and published pages 2021-06-28 11:48:32 -04:00
ewatch
2aec0b8a6f adds handling for --no-drafts / --drafts cli command 2021-06-28 11:48:32 -04:00
ewatch
61ec2c54c0 adds default value for buildOptions.draft 2021-06-28 11:48:32 -04: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
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
Nate Moore
b25943611a
Update ---framework-library-support.yml 2021-06-24 10:09:51 -05:00
Nate Moore
3dcb74c01d
Update ---framework-library-support.yml 2021-06-24 10:09:40 -05:00
Nate Moore
dbcb5093bb
Update ---framework-library-support.yml 2021-06-24 10:08:17 -05:00
Nate Moore
792eebfd12
Rename ---framework-library-support to ---framework-library-support.yml 2021-06-24 10:06:33 -05:00