Commit graph

1371 commits

Author SHA1 Message Date
github-actions[bot]
9984f8ea24
[ci] release (#3242)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 22:30:12 +00:00
tony-sull
527a3634d4 [ci] format 2022-04-29 21:16:50 +00:00
Tony Sullivan
d25dc4c448
Fixes variable definitions in <style define:vars> (#3241)
* adding SSRResult.styles back to the rendered head

* adding test for define:vars in static build

* chore: adding changeset
2022-04-29 21:15:56 +00:00
github-actions[bot]
f244b1c6e4
[ci] release (#3238)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 15:16:18 -04:00
Ben Holmes
c8f5fa35c4
Feat: [create astro] git step (#3227)
* feat: add git init step

* fix: update unit tests

* feat: simplify next steps for copy pasteability

* docs: add clarifying comment on test stdin spoofing

* docs: remove "empty" from git repo message

* fix: update git step text for test

* fix: remove redundant --dryrun flag

* refactor: simplify next steps with &&

* chore: changeset
2022-04-29 11:45:43 -04:00
github-actions[bot]
ed7aba2e8b
[ci] release (#3229)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 09:31:47 -04:00
Rafid Muhymin Wafi
ae7fc463b5
removed unnecessary space from warning 2022-04-28 17:31:22 +06:00
bholmesdev
e2f7ef8b44 [ci] format 2022-04-28 00:59:36 +00:00
Ben Holmes
b7cd695884
Feat: [create astro] replace component selector with "astro add" (#3223)
* feat: remove component framework selector

* feat: update templates to use "basics"

* feat: add "astro add" cli step

* tests: astro add step

* fix: reset env for pnpm tests

* fix: update install step test

* chore: remove "frameworks" step from tests

* deps: remove node-fetch from create-astro

* chore: changeset

* fix: use "preferLocal" for astro add command

* refactor: remove POSTPROCESS_FILES

* feat: add --yes flag to simplify astro add

* feat: bring back minimal option as "completely empty"
2022-04-27 20:58:18 -04:00
github-actions[bot]
7937852395
[ci] release (#3215)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-27 16:23:53 -04:00
Juan Martín Seery
3d6e382b58
fix: replaced deprecated String.substr with String.slice (#3224) 2022-04-27 15:43:43 -03:00
Juan Martín Seery
41c70ae503
chore: remove deprecation message when using cheerio's default export (#3225) 2022-04-27 15:43:31 -03:00
Ben Holmes
00fc1326ed
Refactor/clean create astro logs (#3212)
* refactor: simplify dir error log to avoid wrapped text

* refactor: remove redundant "issue" callout

* chore: changeset

* chore: update tests for new dir log
2022-04-26 20:38:31 -04:00
Nate Moore
15d9408678
Update @proload/core (#3211)
* chore: bump proload

* chore: update @proload/core
2022-04-26 17:26:01 -05:00
Nate Moore
9028450663 Revert "fix: replace serialize-javascript & random-bytes with custom internal modules"
This reverts commit f0d22b9332.
2022-04-26 18:12:17 -04:00
okikio
cbd9e6222e [ci] format 2022-04-26 21:53:43 +00:00
Okiki
f0d22b9332 fix: replace serialize-javascript & random-bytes with custom internal modules
serialize-javascript relies on random-bytes and random-bytes relies on nodes crypto module, unfortunately the crypto module isn't available on the browser, so it breaks the repl. When one tries to upgrade the repl to the latest version of Astro, the browser complains about the missing crypto module. The changes shouldn't affect the behaviour of Astro in any meaning full way.
2022-04-26 21:52:35 +00:00
github-actions[bot]
8d8433ee50
[ci] release (#3182)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-26 16:49:09 -04:00
matthewp
f0f938ce7d [ci] format 2022-04-26 20:01:23 +00:00
Juan Martín Seery
eaad17694f
fix(vercel): trailingSlash fix for non-html pages (#3185)
* fix(vercel): `trailingSlash` fix for non-html pages

* Changeset
2022-04-26 16:00:26 -04:00
Matthew Phillips
22cb4b7b32
Prevent watcher from running during the build (#3207)
* Prevent watcher from running during the build

* Adds a changeset
2022-04-26 15:59:31 -04:00
Erika
fdd607c575
Add missing is:raw in AstroBuiltinAttributes (#3209) 2022-04-26 15:26:20 -04:00
Ben Holmes
7a61977db1
Feat: support astro add without npm installing (#3183)
* deps: update to latest proload

* feat: avoid parsing config on resolveConfigUrl

* chore: changeset

* fix: bump proload

* fix: bump proload

* fix: bump proload

* fix: bump proload

* fix: bump proload

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-26 14:35:44 -04:00
Erika
e4bb2767d5
Add Astro attributes to svg elements (#3205) 2022-04-26 11:29:25 -04:00
bholmesdev
9927e0f120 [ci] format 2022-04-26 15:25:23 +00:00
Ben Holmes
38e5e9e982
Feat: create astro add install step (#3190)
* feat: add instlal step with pkg manager detection

* feat: add package emoji for style points

* feat: update next steps to match pkg manager

* refactor: extract some create-astro test utils

* refactor: extract promp msgs to utils

* chore: add install step tests

* chore: changeset

* fix: remove directory test skip

* fix: unset env variables after install step test

* deps: add execa to create-astro

* refactor: use execa for install step

* chore: remove old comment

* fix: rework install step test for node 14?

* chore: remove "politely stolen" footnote

* temp: show stdout dialog

* feat: remove debugging logs, add dryrun flag for testing

* chore: more stray logs

* fix: remove rmdir
2022-04-26 11:24:24 -04:00
Juan Martín Seery
1a86e77c37
fix(markdown): file.url fixes (#3198)
* fix(markdown): file.url fixes

* Added tests

* Changed the default of `base` from `./` to `/`

* Make the url work with subpath

* Changeset

* Forgot to change this comparison
2022-04-25 13:38:46 -03:00
Fred K. Schott
ac5665c161 add vite to license 2022-04-24 16:42:39 -07:00
Juan Martín Seery
205d1f07f1
feat(markdown): Improved types (#3191)
* feat(markdown): Improved types

* More MarkdownMetadata
2022-04-24 16:13:33 -07:00
Ben Holmes
2b702d6aba
Fix: astro add generating config outside project root (#3186)
* fix: astro.config generated outside project dir

* chore: changeset
2022-04-22 15:17:16 -04:00
Ben Holmes
eda4979997
feat: remove online editor configs (#3175) 2022-04-22 15:01:16 -04:00
tony-sull
7ccda57c1d [ci] format 2022-04-22 18:00:08 +00:00
Tony Sullivan
ce9a61e9fc
Support custom svelte compiler options in @astrojs/svelte (#3181)
* updating svelte integration to allow custom user config

* test: adding a test to verify that svelte options are piped through the integration

* updating the README with docs on overridding svelte options

* chore: adding changeset

* fix: copy/paste bug in test validation

* removing temporary debug scripts
2022-04-22 17:59:20 +00:00
matthewp
738fb958c3 [ci] format 2022-04-22 14:04:54 +00:00
Fred K. Schott
bd76716c88
[ci] update lockfile (#3162)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-04-22 10:04:01 -04:00
Juan Martín Seery
725c44a762
feat(vercel): Support trailingSlash (#3176) 2022-04-22 10:03:53 -04:00
Matthew Phillips
19667c45f3
Netlify Edge: forward requests for static assets (#3170)
* Netlify Edge: forward requests for static assets

* Adds a changeset

* Don't run edge tests, yet
2022-04-22 10:03:25 -04:00
Fred K. Schott
9c0fc6877a
Update Vercel adapter readme 2022-04-21 14:31:45 -07:00
Fred K. Schott
0b432c087a
Update README.md 2022-04-21 14:24:09 -07:00
github-actions[bot]
f3586cff41
[ci] release (#3173)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 16:00:18 -05:00
natemoo-re
84b863df6a [ci] format 2022-04-21 20:38:07 +00:00
github-actions[bot]
84939b2ff2
[ci] release (#3172)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 15:37:18 -05:00
Ben Holmes
7c49194ca2
Feat: [create astro] add directory prompt (#3168)
* wip: add prompt for directory with validation

* feat: wire up dir response to cwd

* feat: improve error handling on non-empty dirs

* fix: update test helpers to execaSync

* chore: add .skipped to old tests for clarity

* deps: add mocha and chai to create-astro

* feat: add directory step test with fixture

* feat: update turbo to run create-astro tests again 🥳

* chore: changeset
2022-04-21 16:36:48 -04:00
Nate Moore
908fffb5ec
chore: upgrade compiler (#3171) 2022-04-21 15:26:14 -05:00
natemoo-re
b6f14c3b14 [ci] format 2022-04-21 20:13:54 +00:00
Nate Moore
70263cf748
fix(preact): use updateConfig hook (#3166) 2022-04-21 15:13:09 -05:00
Nate Moore
f73d33cb18
chore(webapi): fix types (#3167) 2022-04-21 14:54:26 -04:00
github-actions[bot]
bd66527e7d
[ci] release (#3169)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 14:08:37 -04:00
matthewp
c4203ce0fc [ci] format 2022-04-21 18:03:47 +00:00
Tony Sullivan
637919c8b6
Improvements to build and dev when building for subpaths (#3156)
* `astro build` should include the `base` provided in astro config

* test: updating build test to expect the base path in links/scripts

* ignore the default "base" value when building links/scripts

* fix: handling config that provides a base but no site

* fix: config.site was being ignored since it's a URL not a string

* hack: handle base path in dev for /public assets

* fix: dev redirect needs to ignore base default of ./

* fix: extra safety checks for the base path redirect

* refactor: simplifying it to remove the regex

* one last safety check - only redirect GET and use a 302 status

* fix: lost the leading slash when redirecting

* nit: adding comments to the test explaining how base is verified

* Remove extra console.log

* Adds a changeset

Co-authored-by: unknown <matthew@skypack.dev>
2022-04-21 14:03:05 -04:00