Commit graph

539 commits

Author SHA1 Message Date
Juan Martín Seery
cfeaa9414a
fix: import local plugins into markdown (#2534)
* Replaced "UnifiedPluginImport" for a function

* Updated tests

* Updated docs

* Updated examples

* Added changeset

* Fixed tests

* Removed unused "UnifiedPluginImport"

* Duplicated add-classes.mjs
2022-02-04 13:49:50 -05:00
Matthew Phillips
b210fd008b
Append to list of HMR modules, don't override (#2532)
* Append to list of HMR modules, don't override

* Changeset
2022-02-03 16:41:48 -05:00
Fred K. Schott
ef1d81effd
add back dev server host support (#2531) 2022-02-03 13:40:40 -08:00
github-actions[bot]
e49f581bc2
[ci] release (next) (#2523)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-02 12:11:57 -05:00
Matthew Phillips
3e8844fa87
Fix support for scss in static build (#2522)
* Fix support for scss in static build

* Adds a changeset

* Pass the normalizedID to transformWithVite
2022-02-02 11:35:13 -05:00
github-actions[bot]
dd1a14a2eb
[ci] release (next) (#2492)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-01 08:52:57 -05:00
Juan Martín Seery
6fe1b0279f
Add Shiki as an alternative to Prism (#2497)
* [ci] yarn format

* Added shiki to markdown-remark

* Upgraded astro shiki

* Added minimal example

* Changed defaults to match <Code />

* Replace `shiki` with `astro` classes

* Added documentation

* Updated Astro code to use new `codeToHtml`

* Added changesets

* Added basic test

* Updated tests a bit

Co-authored-by: JuanM04 <JuanM04@users.noreply.github.com>
2022-01-31 16:14:07 -06:00
Nate Moore
618a16f59d
Deprecate unescaped HTML inside of expressions (#2489)
* feat: implement automatic escaping

* feat: deprecate automatic escaping

* fix: cast unescapeHTML as string

* fix: slot fallback behavior

* fix: unescaped content

* Update escape.ts

* Update escape.ts

* feat: update internal components to use `set:html`

* chore: update compiler

* chore: update changeset
2022-01-31 16:13:22 -06:00
Matthew Phillips
b9da87a108
Enter prerelease mode (#2510) 2022-01-31 17:03:42 -05:00
Matthew Phillips
3d2c184962
Fix define:vars in the static build flag (#2511)
* Fix define:vars in the static build flag

* Adds a changeset

* linting
2022-01-31 16:56:14 -05:00
Jonathan Neal
187d5128af
Fix issue rendering content within HTMLElement (#2506) 2022-01-31 16:50:55 -05:00
Fred K. Schott
d7149f9b2f
refactor dev to use vite server (#2494) 2022-01-31 14:44:40 -05:00
Fred K. Schott
c9bb1147cb
[MINOR] standardize trailing subpath, fix fetchContent url issue (#2471)
* standardize trailing subpath, and fix fetchcontent issue

* debug windows ci

* improve ci test

* fix windows test issue?

* fix only usage

* end debugging
2022-01-28 20:29:53 -05:00
Matthew Phillips
6bd165f84c
Handle project folders containing a space in the static build (#2486)
* Handle project folders containing a space

* Adds a changeset

* Bump the test package version

* Use server relative paths as entries

* Fix windows

* A hoisted fix

* Correctly handle facadeIds on windows
2022-01-28 20:29:28 -05:00
github-actions[bot]
1cac6c974a
[ci] release (#2482)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-28 20:06:07 -05:00
Jonathan Neal
c7a6ed9a8d
Changesets (#2491)
* changeset for #2487

* changeset for #2473
2022-01-28 19:57:22 -05:00
Matthew Phillips
69d5b70900
Fix use of preprocessors with the static build (#2490)
* Fix use of preprocessors with the static build

* Adds a changeset
2022-01-28 17:10:52 -05:00
Nate Moore
005751a920
Add escapeHTML to astro/internal (#2479)
* feat: add escapeHTML to astro/internal

* Update packages/astro/src/runtime/server/escape.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>

* Update escape.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2022-01-27 20:36:47 -06:00
github-actions[bot]
10db1ca75e
[ci] release (#2454)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-27 11:40:08 -05:00
Matthew Phillips
462e315956
Fix HMR in static build + @import HMR (#2440)
* Fix HMR in static build + @import HMR

* Changeset

* Add a comment on what cleanUrl is doing

* Running prettier

* Improve comments on how the static build compilation

works differently.
2022-01-24 12:58:10 -05:00
github-actions[bot]
3059cc8e39
[ci] release (#2437)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-24 09:39:26 -05:00
Matthew Phillips
dfe1f8b4e7
Pass user's viteConfig.ssr to the build (#2442)
* Pass user's viteConfig.ssr to the build

* Changeset
2022-01-24 08:55:26 -05:00
Nate Moore
ed0b46f96f
Fix pre-generated RSS URLs (#2443)
* Allow pre-generated urls to be passed in rss feeds

* Fix variable name

* Add isValidURL helper function

* Remove scary RegEx and tidy up code

* add test for using pregenerated urls

* fix: allow rss to be called multiple times

* test: normalize rss feed in test

* chore: add changeset

Co-authored-by: Zade Viggers <74938858+zadeviggers@users.noreply.github.com>
Co-authored-by: zadeviggers <zade.viggers@gmail.com>
2022-01-21 16:38:48 -06:00
Chris Swithinbank
ebe414f05b
Resolve sitemap URLs in relation to full site path (#2423)
* Resolve sitemap URLs in relation to full site path

Fixes #2422

* Test generated sitemap contains base directory in URLs

* Add changeset

* test: Add `clean` helper to loaded fixture API

Adds a method that when called will remove the loaded fixture’s dist directory using `rimraf`.

* test: Clean up between sitemap/RSS tests

* See if letting rimraf retry more helps…

* Add logging to double check nothing’s running in parallel

* Remove logging & double check clean up actually succeeds

* Try using basic Node.js to clean up dist

* Remove logging/checks

* Remove stray unnecessary `async` keyword
2022-01-20 19:27:47 -05:00
github-actions[bot]
4c802e25a0
[ci] release (#2433)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-20 19:23:30 -05:00
Matthew Phillips
f2b8372c0c
Supports hoisted scripts in the static build (#2414)
* Supports hoisted scripts in the static build

* Adds a changeset

* Update packages/astro/src/core/build/internal.ts

Co-authored-by: Evan Boehs <evan@boehs.org>

* Update based on feedback

* Fix lint

* Fix getting hoist script for Windows

* Try with the pre compiler

* use compiler 0.8.2

* update compiler version

* update yarn.lock

Co-authored-by: Evan Boehs <evan@boehs.org>
2022-01-20 19:13:05 -05:00
Mikkel Tønder
fda857eb22
Add a verbose flag to create-astro (#2429)
* Add verbose logging to create-astro

* Tell user to use the verbose flag when encountering the MISSING_REF error

* Create changeset

* Add information in README

* Format

* Use switch statement instead of if and if else blocks

* Update packages/create-astro/src/logger.ts

Make if statement easier to read

Co-authored-by: Evan Boehs <evan@boehs.org>

Co-authored-by: Evan Boehs <evan@boehs.org>
2022-01-20 19:00:22 -05:00
Matthew Phillips
9e1bc1752f
Upgrade compiler to latest (#2432)
* Upgrade compiler to latest

* Updates the changeset
2022-01-20 15:37:09 -05:00
github-actions[bot]
e3731e5fa8
[ci] release (#2430)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-20 10:04:29 -05:00
Matthew Phillips
3ad236ba01
Pin to the compiler 0.8.1 (#2428)
* Pin to the compiler 0.8.1

* Changeset
2022-01-20 09:49:33 -05:00
github-actions[bot]
5d79bd7e93
[ci] release (#2420)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-19 22:12:32 -05:00
Nate Moore
85ad1aab67
feat: add support for styled RSS feeds (#2371) 2022-01-19 15:34:52 -05:00
Pranav Karawale
24aa3245ae
Implement support for draft pages (#2392)
* feat: support draft pages

* implemented support for draft pages
* added integration test
* updated relevant documentation (english only)

* docs: explicitly mention "markdown draft pages"

* chore: add changeset

* chore: modify changeset

- changed type to 'patch'
- added more description
2022-01-19 15:18:51 -05:00
Matthew Phillips
5208c88aeb
Add Astro.resolve deprecation warning for the static build (#2416)
* Add Astro.resolve deprecation warning for the static build

* Adds a changeset
2022-01-19 08:25:42 -05:00
github-actions[bot]
bcec8adc9a
[ci] release (#2412)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-18 08:38:15 -05:00
Matthew Phillips
bcc617f9dc
Update examples to move away from Astro.resolve on styles (#2393)
* Update examples to move away from Astro.resolve on styles

* Prepend the subpath

* Adds a changeset

* Switch to @import for the starter
2022-01-18 08:34:12 -05:00
github-actions[bot]
d3be8d944d
[ci] release (#2394)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-14 16:19:25 -05:00
Matthew Phillips
c8a257adc4
Improve static build performance on large sites (#2391)
* Improve static build performance on large sites

* Changeset

* Remove debugging code

* Pass through the rss fn
2022-01-14 16:14:04 -05:00
github-actions[bot]
f5ce6edb5b
[ci] release (#2372)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-14 14:40:12 -05:00
Matthew Phillips
a7967530df
Fixes Lit support in the static build (#2370)
* [ci] collect stats

* [ci] update lockfile (#2388)

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>

* Fixes for blog and docs examples (#2373)

* Fixes for blog and docs examples

* Adds a changeset

* Upgrade the compiler version

* Use a global style tag

* Skip on windows temporarily

* [ci] yarn format

* Fixes Lit support in the static build

* Adds a changeset

* test

* Upgrade lit-labs/ssr

* Conditional

* Testing again

* remove debugging code

* changeset

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-01-14 14:02:44 -05:00
Matthew Phillips
92532b8882
Fixes for blog and docs examples (#2373)
* Fixes for blog and docs examples

* Adds a changeset

* Upgrade the compiler version

* Use a global style tag

* Skip on windows temporarily
2022-01-14 12:11:56 -05:00
Matthew Phillips
20eaddb2a7
Fix for using React in the static build (#2369)
* Fix react in the static build

* Adds a changeset
2022-01-13 13:28:29 -05:00
github-actions[bot]
834e5299f1
[ci] release (#2366)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-13 09:37:44 -05:00
Matthew Phillips
2aa5ba5c52
Fix use of frameworks in the static build (#2367)
* Fix use of frameworks in the static build

* Adding a changeset

* fix typescript

* Empty out the directory before running the builds

* Use a util to empty the directory

* Only empty the outdir if needed

* Move prepareOutDir to its own module

* Prepare outDir is actually sync
2022-01-13 09:23:03 -05:00
Matthew Phillips
20d0cce681
Fix for shared CSS when using the static build (#2365)
* Fix for shared CSS when using the static build

* Adds a changeset
2022-01-12 12:02:36 -05:00
github-actions[bot]
983bf72aa1
[ci] release (#2340)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-12 11:30:01 -05:00
Matthew Phillips
7e0b32c569
Fix: static-build with .md pages (#2363)
* Fix: static-build with .md pages

This fixes the `--experimental-static-build` flag to work with markdown
pages.

* Adds a changeset

* Account for difference in specifier on windows
2022-01-11 16:52:46 -05:00
Nate Moore
b21dd19cb6
chore: remove www (#2361) 2022-01-11 12:59:06 -06:00
Matthew Phillips
1007497297
Fix build output in static build mode (#2358)
* Fix build output in static build mode

* Adds a changeset

* Formatting
2022-01-11 11:24:57 -05:00
toSayNothing
f482c626a6
Fix renderer-solid (fix #2336) (#2359) 2022-01-11 10:31:26 -05:00