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
Drew Powers
272769d723
Improve asset resolution in Astro ( #437 )
...
* Improve asset resolution in Astro
Fixes #96
* Add docs, changeset
* Fix collection resolution
2021-06-15 14:53:16 -06:00
natemoo-re
266e447e01
[ci] yarn format
2021-06-15 16:34:46 +00:00
Nate Moore
490f2bebbc
Add <>
fragment support for expressions ( #433 )
...
* feat: add support for `<>` and `</>` Fragments
* docs: explain Fragments
* test: add fragment test
2021-06-15 11:33:27 -05:00
github-actions[bot]
28c2d74dc3
Version Packages ( #446 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-15 08:25:29 -04:00
github-actions[bot]
5222460719
Version Packages ( #431 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-14 16:12:55 -04:00
matthewp
ddd86f8ab2
[ci] yarn format
2021-06-14 20:11:42 +00:00
Matthew Phillips
016833a3bc
Honor user's hmr settings ( #436 )
...
* Honor user's hmr settings
This contains 2 fixes:
* If the user sets the hmrPort in their own snowpack config we use that port.
* If the user sets `window.HMR_WEBSOCKET_URL` we defer to that
* Adds the changeset
2021-06-14 16:10:29 -04:00
matthewp
40720b2c1e
[ci] yarn format
2021-06-14 18:18:59 +00:00
Matthew Phillips
73a43d9301
Prevent postcss from crashing when scoping class without a body ( #430 )
...
* Prevent postcss from crashing when scoping class without a body
For some reason postcss will keep running the plugin over and over on a class without a body if we modify the `selector` (this triggers it as being "dirty"). It doesn't do this for selectors with a body. But the fix was easy enough, only scope a rule once.
Closes #340
* Add a changeset
2021-06-14 14:17:56 -04:00
github-actions[bot]
3d3d4cfe0b
Version Packages ( #428 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-14 13:28:40 -04:00
Matthew Phillips
af03c90c2b
Fix usage of arrow functions as components ( #426 )
...
* Fix usage of arrow functions as components
This fixes the React and Preact component as arrow function use-case by checking for the prototype property (arrow functions don't)
* Check the prototype
2021-06-14 13:24:37 -04:00
github-actions[bot]
5602aabfe0
Version Packages ( #425 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-14 12:54:33 -04:00
Brad Cornes
e0989c696a
Fix scoped CSS selector when class contains a colon ( #383 )
...
* fix scoped selector when using escaped colon
* update scoped styles test
* add changeset
* update `scopeRule` test
* update `scopeRule` test
* update css minifier to account for windows-style line breaks
2021-06-14 10:36:33 -06:00
Matthew Phillips
2d854092a4
Serialize boolean attributes without a value ( #422 )
...
* Serialize boolean attributes without a value
Fixes #307
* Update the attrs test
* Adds a changeset
* Adds test that components receive booleans
2021-06-14 12:29:34 -04:00
matthewp
3db6914137
[ci] yarn format
2021-06-14 16:01:54 +00:00
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