Matthew Phillips
0b16b2ddd0
Make doctype be case insensitive ( #419 )
...
* Make doctype be case insensitive
Fixes #413
* Make doctype completely case insensitive
* Make check for style scoping doctype override be case insensitive
* Check for doctype in the right place
2021-06-14 12:00:51 -04:00
github-actions[bot]
0ef0c99b10
Version Packages ( #418 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-14 08:43:03 -04:00
matthewp
a5d6e434ab
[ci] yarn format
2021-06-14 12:36:32 +00:00
Matthew Phillips
271cfe6ce3
Improved JSX framework detection ( #382 )
...
* Improved JSX framework detection
This improves the JSX detection and adds a bunch of test. The following is improved:
* If an error throws because of a coding mistake, those errors will be reported.
* We properly detect class components for both Preact and React. We don't have to "try to render" these.
It's still possible that error messages might be obscured in this scenario:
A Preact function component that uses hooks (or another preact specific feature) that has a coding mistake. The React renderer might throw when it uses the Preact hook. That error will be reported rather than the real coding mistake.
This is because we can't distinguish between errors that are due to the wrong framework and errors that the user caused.
I might reach out to the Preact community and see if they can think of a better solution to this problem. This will come up when other JSX based frameworks have renderers. I still think that having multiple frameworks in the same project is a feature worth trying to preserve.
* Move try/catch into the __astro_component
2021-06-14 08:35:25 -04:00
Fred K. Schott
ab2972be83
add engines for esm support ( #415 )
2021-06-14 08:20:14 -04:00
Fred K. Schott
37200eba7c
Update README.md
2021-06-13 14:30:39 -07:00
github-actions[bot]
416e8484b5
Version Packages ( #402 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-12 11:36:31 -07:00
Drew Powers
c374a549b5
Allow createCollection() to fetch remote data ( #400 )
...
* Allow createCollection() to fetch remote data
Fixes #378
* Update docs
* revert isomorphic-fetch, see if ci passes
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-06-11 18:31:36 -07:00
Drew Powers
9d3cd49410
Improve templates test ( #377 )
2021-06-11 15:07:30 -06:00
duncanhealy
8d72862a98
update node min version to 14.15.1 for codesandbox ( #395 )
2021-06-11 16:29:31 -04:00
github-actions[bot]
e7eab4e9d9
Version Packages ( #386 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-11 16:24:07 -04:00
Drew Powers
fb02a482c3
Fix baseUrl passed to Snowpack ( #391 )
2021-06-11 11:36:41 -06:00
Drew Powers
61b5590b95
Pass Astro site
to snowpack baseUrl
( #384 )
2021-06-11 10:57:32 -06:00
github-actions[bot]
6eacdbae42
Version Packages ( #381 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-11 09:15:16 -04:00
Matthew Phillips
1bab906539
Remove second snowpack instance ( #368 )
...
* Remove second snowpack instance
* Document import.meta.env.SSR
* Remove unnecessary Promise.all
2021-06-11 09:03:22 -04:00
Matthew Phillips
ce9336115e
Document the minimum node version ( #379 )
...
* Document the minimum node version
* Adds the changeset
2021-06-11 09:03:06 -04:00
matthewp
cc5d000fdc
[ci] yarn format
2021-06-10 18:11:17 +00:00
Matthew Phillips
afa09ee9dc
Add HMR port script when needed ( #375 )
...
* Always add HMR port script when HMR is enabled
* Add it only if there are client side components
* Fix the test
* Add a test where HMR port not set
* Upgrade snowpack version
* Fix snowpack semver
2021-06-10 14:10:15 -04:00
Drew Powers
a660e49f80
Add integration test for templates ( #372 )
2021-06-10 10:30:48 -06:00
Kevin (Kun) "Kassimo" Qian
5fbc1cb641
nit: ask user to modify devOptions.port when addr in use for dev ( #347 )
...
* nit: ask user to modify devOptions.port when addr in use for dev
* unnecessary import of red
* changeset
2021-06-09 16:48:25 -04:00
Jeff
74d67b52c1
Fix broken link in README ( #359 )
...
The link to the "Partial Hydration" section from "Markdown" was missing a hyphen. Since I was changing it, I also moved it to the list of link reference definitions at the bottom.
2021-06-09 16:37:59 -04:00
Fred K. Schott
5973cc763d
add anayltics script
2021-06-08 14:28:29 -07:00
Fred K. Schott
57e0938cfa
Update README.md
2021-06-08 13:06:09 -07:00
Nate Moore
8af8b86f0b
WIP: Launch Post ( #333 )
...
* feat: add blog to `www`
* feat: add BlogHeader
* wip: add heroImage support
* feat: update hero image styling
* finalize blog post
* use site index instead of blog index
* fix: don't use float
* chore: copy cleanup
* fix: scroll issue on landing page
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-06-08 14:01:46 -05:00
github-actions[bot]
3c71fad17d
Version Packages ( #337 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-08 13:56:29 -04:00
Fred K. Schott
5cda571999
watch files during development both frontend and backend ( #336 )
2021-06-08 10:54:10 -07:00
github-actions[bot]
8dd3f106ca
Version Packages ( #335 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-08 12:58:50 -04:00
Fred K. Schott
d6a7349e74
fix create-astro template issue ( #334 )
2021-06-08 12:56:37 -04:00
Fred K. Schott
91ce5383a9
Update README.md
2021-06-08 09:29:53 -07:00
matthewp
9c7f07aebd
[ci] yarn format
2021-06-08 15:24:57 +00:00
github-actions[bot]
955be013b2
Version Packages ( #331 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-08 11:23:33 -04:00
matthewp
a7594cfcdf
[ci] yarn format
2021-06-08 15:12:07 +00:00
Fred K. Schott
6bca7c83a7
redesign create-astro ( #301 )
...
* redesign create astro
* add changeset
* Use npm start
* Update the astro version
* Adds the changeset
Co-authored-by: Fred Schott <fks@Freds-MBP.attlocal.net>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2021-06-08 11:10:56 -04:00
Matthew Phillips
9594447335
Bump create-astro version
2021-06-08 09:47:40 -04:00
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
matthewp
ec5587e626
[ci] yarn format
2021-06-08 13:46:37 +00: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
matthewp
9461ad4252
[ci] yarn format
2021-06-08 12:59:42 +00: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
matthewp
a893b4a921
[ci] yarn format
2021-06-08 12:34:27 +00: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
matthewp
20c4efe5a2
[ci] yarn format
2021-06-08 12:22:58 +00: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
Nate Moore
54a7cc2d44
Add README to packages/astro
( #313 )
...
* docs: move readme to `packages/astro`
* docs: symlink README
* docs: update README banner
2021-06-07 17:38:22 -05: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
187020a9ab
Add support for astro file scanning ( #320 )
...
This upgrades to snowpack@3.5.6 which brings along astro file scanning
2021-06-07 16:41:02 -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
6445c18117
Move the prism package to the scope name ( #317 )
...
* Move the prism package to the scope name
`astro-prism` -> `@astrojs/prism`
* move the version to 0.2.0
2021-06-07 15:35:23 -04:00
matthewp
cb3ff36105
[ci] yarn format
2021-06-07 18:26:17 +00: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
natemoo-re
24d7057dad
[ci] yarn format
2021-06-04 21:39:15 +00: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
matthewp
6f851fd779
[ci] yarn format
2021-06-04 18:29:15 +00: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
matthewp
aeba57d236
[ci] yarn format
2021-06-04 18:20:12 +00: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
Nate Moore
a2594ef572
fix: handle 301/302 in dev server ( #293 )
2021-06-03 11:55:36 -05:00
Matthew Phillips
deb90dc1d2
Increment create-astro version
2021-06-02 13:53:28 -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
Nate Moore
94eac19888
Pre-release refactors ( #289 )
...
* refactor: expose `astro/components` as component entrypoint
* refactor: remove `extensions` from all configs
* test: fix snowpack tests
* docs: update config doc
2021-06-02 11:35:28 -05:00
matthewp
4dd18deab9
[ci] yarn format
2021-06-02 15:54:54 +00: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
natemoo-re
e3df5e80e1
[ci] yarn format
2021-06-02 01:04:40 +00: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
natemoo-re
00c6dec8eb
[ci] yarn format
2021-06-01 23:42:10 +00: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
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
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
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
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