0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
Commit graph

2883 commits

Author SHA1 Message Date
Tony Sullivan
3b80f6fcf6 nit: adding comments to the test explaining how base is verified 2022-05-03 11:26:18 -05:00
Tony Sullivan
a64f4fec32 fix: lost the leading slash when redirecting 2022-05-03 11:25:56 -05:00
Tony Sullivan
4854a3f612 one last safety check - only redirect GET and use a 302 status 2022-05-03 11:25:56 -05:00
Tony Sullivan
63209ac803 refactor: simplifying it to remove the regex 2022-05-03 11:25:56 -05:00
Tony Sullivan
4755ce9dba fix: extra safety checks for the base path redirect 2022-05-03 11:25:56 -05:00
Tony Sullivan
49934fa565 fix: dev redirect needs to ignore base default of ./ 2022-05-03 11:25:56 -05:00
Tony Sullivan
a9132217eb hack: handle base path in dev for /public assets 2022-05-03 11:25:55 -05:00
Tony Sullivan
3e54ee720c fix: config.site was being ignored since it's a URL not a string 2022-05-03 11:25:44 -05:00
Tony Sullivan
326aced56a fix: handling config that provides a base but no site 2022-05-03 11:25:44 -05:00
Tony Sullivan
d8f02be588 ignore the default "base" value when building links/scripts 2022-05-03 11:25:44 -05:00
Tony Sullivan
bfb01149b3 test: updating build test to expect the base path in links/scripts 2022-05-03 11:25:42 -05:00
Tony Sullivan
2766f326e8 astro build should include the base provided in astro config 2022-05-03 11:25:28 -05:00
Kevin Zuniga Cuellar
59f07e8dd5
update pnpm version from 6.23.6 to 7 (#3267) 2022-05-03 11:34:08 -04:00
Okiki Ojo
6ca2128aee
Fix/deno gitpod (#3213)
* chore(.gitignore): remove pnpm error logs from git

* ci: install deno in gitpod
tests won't run in gitpod without deno
2022-05-03 10:56:16 -04:00
matthewp
5aec49e5e8 [ci] format 2022-05-03 14:56:07 +00:00
Pascal Schilp
adada1ba01
Feat/ssr manifest (#3262)
* feat: expose pagesVirtualModuleId

* feat: add astro:build:ssr hook

* fix: missing import for pagesVirtualModuleId

* test: fix tests

* refactor: move exports to index.ts

* chore: changeset
2022-05-03 10:55:25 -04:00
Juan Martín Seery
dd9ffc317f
chore: pnpm v7 (#3259) 2022-05-03 10:31:16 -03:00
github-actions[bot]
8b17d3ebcf
[ci] release (#3243)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 09:16:57 -04:00
matthewp
f7335c76a7 [ci] format 2022-05-03 13:08:46 +00:00
Matthew Phillips
f76038ac7d
Telemetry (#3256)
* feat: add @astrojs/telemetry

* feat: add telemetry events, add queueing system

* feat(telemetry): record CLI events

* chore: add note

* feat: support generic TELEMETRY_DISABLED env var

* Fix test script

* shim telemetry in tests

* Shim telemetry in other commands

* Stub telemetry in the memory leak test

* Disable telemetry in smoke tests

* Adds a changeset

* Run the formatter

* few updates

* Include config keys

* Add shallow viteKeys array:
:

* Add vite keys and tests

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-03 09:07:28 -04:00
Matthew Phillips
48a35e6042
Consolidate inline hydration scripts into one (#3244)
* Consolidate inline hydration scripts into one

* Adds changeset

* Update custom element test

* Provide a better name for tracking if we have added a hydration script
2022-05-03 09:07:16 -04:00
FredKSchott
4599f1fc94 [ci] collect stats 2022-05-03 12:02:13 +00:00
Chris Swithinbank
6033c765e7
Replace outdated translations contribution guide (#3245) 2022-05-03 11:45:18 +02:00
FredKSchott
c3f411a7f2 [ci] collect stats 2022-05-02 12:03:59 +00:00
FredKSchott
43bb1ee66b [ci] collect stats 2022-05-01 12:02:17 +00:00
FredKSchott
28bfe3daf2 [ci] collect stats 2022-04-30 12:05:15 +00:00
Juan Martín Seery
de123b28b3
refactor(markdown): removed rehype-slug in favor of our own implementation (#3234)
* Moved types arround

* Removed `rehype-slug` in favor of our own implementation

* Changeset

* Removed rehype-slug from examples

* Remove rehype-slug from tests

* Updated reference

* rehypeCollectHeaders is a function again

* Reverted rehype-slug removes

* Re-added rehype-slug to reference
2022-04-29 21:07:09 -03:00
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
Juan Martín Seery
6cd9ef577e
chore: remove unintended changelogs (#3233)
* Removed unused CHANGELOGS

* Added `astro-scripts` to changeset ignore

* Reverted config.json
2022-04-29 08:41:16 -07: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
FredKSchott
eb5c9a8b14 [ci] collect stats 2022-04-29 12:02:09 +00:00
Fred K. Schott
465b3a7970
Update example tsconfig (#3107) 2022-04-28 11:42:55 -04:00
FredKSchott
e90be57c25 [ci] collect stats 2022-04-28 12:07:04 +00: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
f23d6c528e
chore: changeset (#3221) 2022-04-27 10:14:07 -04:00
FredKSchott
b3272f758f [ci] collect stats 2022-04-27 12:02:25 +00: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
Ben Holmes
8f2f4de5dc
Feat: new just the basics template (#3206)
* feat: new just-the-basics example

* chore: update package name

* chore: update lockfile

* refactor: simplify meta tags

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* refactor: use `system-ui` for base font

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Update examples/just-the-basics/src/components/Layout.astro

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* refactor: just-the-basics -> basics (now 10% more basic!)

* refactor: add type checking to layout prop

* nit: change "astro-text" to "text-gradient"

* refactor: simplify CSS grid

* feat: make transition easing 10% fancier

* change to text gradient because people gooootta have opinions huh

* nit: rename CSS class to "instructions"

* refactor: use ul > li for containers

* chore: update lockfile

* feat: style tweaks

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-26 20:37:58 -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