Nate Moore
86419d9ed7
Ignore test fixture for changesets ( #2804 )
...
* test: move fixtures to `@test/` scope
* chore: ignore `@test/` scope
* chore: add changeset
* test: renamed missed package
* chore: delete test file
* fix: @test package references
* fix: @test package references
2022-03-15 16:17:23 -05:00
Ofer Shaal
60fe7bd41e
Gitpod setup improvements ( #2789 )
...
* install latest pnpm version in docker image
* Add astro-build vscode extension in Gitpod setup
* automatically open preview when port 3000 is used
* run astro build during prebuild
* Run starter demo when starting this workspace
* and $ASTRO_NEW to run specific example
* open index.astro of selected project
* Add sleep 1 before running code command
* use `gp await-port` instead of sleep
2022-03-15 16:03:26 -05:00
Fred K. Schott
6eb494796e
update HTML escape logic ( #2793 )
2022-03-15 15:33:55 -05:00
Nate Moore
2b76ee8d75
Export defineConfig helper ( #2803 )
...
* feat: add astro/config entrypoint
* chore: update examples to use `defineConfig` util
* chore: prettier fix
* chore: add changeset
2022-03-15 15:27:17 -05:00
Ben Holmes
2d95541b52
Fix missing style imports on initial load ( #2791 )
...
* fix: missing style imports on initial load
* chore: changeset
* fix: update comment on using URL map
* fix: use getModulesByFile to match on ID properly
* refactor: use imperative loop for performance
* fix: update scan from each matching mod
* fix: update scan from importedMod loop
* fix: avoid scanning all related mods
2022-03-15 15:02:29 -04:00
Fred K. Schott
11fb3745dd
[windows:ci] handle CLI output in a cross-compat way ( #2801 )
...
* handle readline in a cross-compat way
* Create modern-feet-lay.md
2022-03-15 10:30:25 -07:00
matthewp
fc50fbb47a
[ci] format
2022-03-15 16:05:38 +00:00
Matthew Phillips
f892aeb52f
Update the lockfile ( #2800 )
2022-03-15 12:04:37 -04:00
github-actions[bot]
973d398074
[ci] release ( #2786 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-15 11:40:51 -04:00
Matthew Phillips
58d8686e94
Fix for allowing space in folder name ( #2797 )
...
* Fix for allowing space in folder name
* Adds a changeset
* Prepend a forward slash, for windows
2022-03-15 11:26:46 -04:00
matthewp
1325fe90fc
[ci] format
2022-03-15 12:38:13 +00:00
Fred K. Schott
c36527f46d
fix flakey windows tests ( #2795 )
2022-03-15 08:37:29 -04:00
FredKSchott
0e4662df01
[ci] collect stats
2022-03-15 12:02:12 +00:00
natemoo-re
2b52c72b5d
[ci] format
2022-03-14 23:20:37 +00:00
Nate Moore
6b34840d3d
Fix set:html
behavior with null
( #2790 )
...
* feat: improve set:html behavior for null/undefined
* chore: add changeset
* refactor: improve set:html and set:text documentation
* test: improve set:html tests
* refactor: better types for server API
2022-03-14 18:19:53 -05:00
Fred K. Schott
de2b246237
update lockfile ( #2792 )
2022-03-14 15:04:34 -07:00
Fred K. Schott
80066c01c2
cleanup the repo, remove outdated files and folders ( #2771 )
2022-03-14 11:41:57 -07:00
FredKSchott
75f4c17e4c
[ci] format
2022-03-14 17:24:30 +00:00
Fred K. Schott
2314eba9a4
[ci] update lockfile ( #2773 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-03-14 10:23:35 -07:00
Fred K. Schott
b4d34e2d2c
improve build perf ( #2772 )
2022-03-14 10:23:05 -07:00
Ben Holmes
2c4fd919fa
Fix: Astro.props missing properties ( #2785 )
...
* Fix: Astro.props missing properties
* chore: add changeset
2022-03-14 13:03:44 -04:00
FredKSchott
77e5733deb
[ci] collect stats
2022-03-14 12:01:47 +00:00
FredKSchott
df4ebd479e
[ci] collect stats
2022-03-13 12:01:50 +00:00
FredKSchott
659ef9bd93
[ci] collect stats
2022-03-12 12:01:40 +00:00
natemoo-re
d1a7f6a1c5
[ci] format
2022-03-11 22:48:55 +00:00
github-actions[bot]
30e78a0bd8
[ci] release ( #2770 )
...
* [ci] update lockfile (#2763 )
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: exit prerelease mode
* [ci] release
* chore: update lockfile
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-11 16:47:57 -06:00
Nate Moore
47f5576a3f
chore: exit prerelease mode
2022-03-11 16:39:13 -06:00
Fred K. Schott
1634172ff9
[ci] update lockfile ( #2763 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-11 16:38:28 -06:00
Matthew Phillips
49c0d9970f
Fix dev resolution of client modules on Windows ( #2768 )
...
* Fix dev resolution of client modules on Windows
* Adds a changeset
2022-03-11 17:28:48 -05:00
bholmesdev
d4dbfe8974
[ci] format
2022-03-11 22:26:21 +00:00
Ben Holmes
77b9c95352
Feat: expose server on local network with new --host flag ( #2760 )
...
* feat: update config to support bool --hostname
* fix: show localhost for --hostname=true
* feat: address logging feature parity w/ Vite
* chore: update type docs
* refactor: extract local, network prefs to variable
* feat: add --host to --help output
* feat: deprecate --hostname, add --host
* feat: add --host tests
* feat: update preview to support new flags
* fix: show --host in dev server log
* feat: update config tests for --host flag
* chore: test lint
* chore: update lock with new fixture
* chore: add changeset
* refactor: add more details to JSdocs
* fix: update path tests
* feat: only expose when --host is not local
* fix: make flag --help less verbose
* fix: address @types comments
* fix: lint
* chore: remove unused import
* fix: use host flag for config test
* fix: ensure local logs come before network
* refactor: switch up that network logging one last time!
* feat: update unit tests
* chore: remove debugging block
* fix: only parse network logs if network is present
2022-03-11 17:25:26 -05:00
Nate Moore
2bb2c2f7d1
Update compiler ( #2767 )
...
* chore: update compiler
* chore: add changeset
2022-03-11 16:20:20 -06:00
bholmesdev
4c975dc4da
[ci] format
2022-03-11 16:57:36 +00:00
Fred K. Schott
6ce97b1ebe
fix sitemapFilter docs ( #2762 )
2022-03-11 11:56:54 -05:00
FredKSchott
ba68daa235
[ci] collect stats
2022-03-11 12:02:13 +00:00
natemoo-re
3a6ef130dd
[ci] format
2022-03-10 23:36:11 +00:00
Nate Moore
fb7b09253f
chore: update lockfile
2022-03-10 17:35:02 -06:00
github-actions[bot]
e032e89a64
[ci] release (next) ( #2754 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-10 17:31:45 -06:00
natemoo-re
a940354b38
[ci] format
2022-03-10 23:26:18 +00:00
Nate Moore
499fb6a335
CLI: add prerelease warning ( #2758 )
...
* feat(cli): add prerelease and outdated warnings
* refactor: cleanup getLatestVersion code
* refactor: simplify isPrerelease logic
* chore: add changeset
* fix: do not require devStart for preview
* refactor: extract prerelase/outdated into own templates
* feat: remove upgrade warning
* feat: make prerelease less scary
* chore: update prerelease wording
* chore: update feedback copy
2022-03-10 17:25:06 -06:00
Fred K. Schott
da826a6ba4
Update util.ts ( #2761 )
2022-03-10 15:17:24 -08:00
Nate Moore
5f55af9cce
fix( #2753 ): unescape define:vars
( #2756 )
...
* fix(#2753 ): unescape `define:vars`
* test: add directives suite
* chore: update lockfile
2022-03-10 14:36:07 -06:00
natemoo-re
7b18d4c226
[ci] format
2022-03-10 20:15:34 +00:00
Nate Moore
10843aba63
Add sitemap filter option ( #2755 )
...
* Add filter for sitemap
* chore: add changeset
* fix: types
* docs: add sitemapFilter docs
Co-authored-by: David Rothmann <david@rothmann.it>
2022-03-10 14:14:45 -06:00
Fred K. Schott
602bf2f181
fix eperm ci issue on windows ( #2757 )
2022-03-10 13:40:27 -06:00
Ben Holmes
a14075e2a4
Feat: show 404 when getStaticPaths
doesn't match URL ( #2743 )
...
* WIP: return 404 for unmatched getStaticPaths route
* feat: regex on static paths to 404 in dev
* Revert "WIP: return 404 for unmatched getStaticPaths route"
This reverts commit 9c395a2586ca40d44c3ab18edc7ffbc1c4660ed8.
* feat: call getParamsAndProps pre-ssr to catch errs
* fix: remove unused cache regex check
* fix: revert getPattern changes
* fix: remove unused preload props
* fix: log 404 for custom 404 pages
* refactor: rename fixture for clarity
* feat: add getStaticPaths status code tests
* fix: pas rootRelativeUrl to handle subpaths
* fix: update dev-routing tests from 500 -> 404
* refactor: make error handling more explicit
* lint: use typescript no shadow to fix enum issue
* chore: add changeset
* refactor: clarify test names
* refactor: remove variable reassignment
* fix: update dev-routing tests 500 > 404
* refactor: update test file structure
* Fix: revert to old logging
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Chore: use `const enum` instead
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: format
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-10 13:02:37 -05:00
natemoo-re
7f99d0de9e
[ci] format
2022-03-10 17:54:39 +00:00
Fred K. Schott
3d56123f25
Refactor fs utils, fix flakey windows tests ( #2749 )
...
* cleanup our fs util usage
* fix fs url support for node v14
* update to fix windows
* making sure the dir exists before calling readdirSync
* chore: remove debug code
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-03-10 11:53:59 -06:00
Ian Bull
55f007f30a
Support Prism in the blog template example ( #2622 )
...
The Prism syntax highlighter failed to render properly when Astro was
initialized with the blog template. This was because the Prism CSS
conflicted with the default blog template.
This change-set removes the Viewport Width from the `pre` transform as
this property conflicted with the prism CSS. This change-set also
includes Prism in the Blog Post layout and adds a small javascript
example to the sample post.
2022-03-10 11:49:52 -06:00
natemoo-re
5d7a92b563
[ci] format
2022-03-10 15:56:29 +00:00