Commit graph

27 commits

Author SHA1 Message Date
natemoo-re
eb7615f25a [ci] format 2023-09-06 15:25:56 +00:00
Erika
b3b640435b
nit: export props has been unnecessary.. forever (#7646) 2023-07-14 09:57:06 -04:00
Mohammed Elhaouari
5fbb359afb
Remove "as Props" from the astro examples (#4494) 2022-08-26 10:16:17 -04:00
Nate Moore
41b81d0d7e
Switch examples favicon to use svg (#4331)
* chore(examples): switch favicon to svg

* chore: astro.svg => favicon.svg

* Update examples/basics/README.md

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-08-17 15:19:04 -05:00
Nate Moore
f207c417e0
Add Astro.generator (#4012)
* feat: add generator property and component

* chore: remove `Generator` component

* chore: update generator description

* chore: include generator in examples

* chore: update lockfile

* chore: format

* fix: do not reference core from server runtime

* chore: remove component test

Co-authored-by: Nate Moore <nate@astro.build>
2022-08-08 12:34:05 -05:00
FredKSchott
4de35f3b70 [ci] format 2022-08-06 04:39:26 +00:00
Erika
c9b679e56e
Move types to a .d.ts file inside examples projects (#4171)
* Move types to a .d.ts file to avoid making types explicit

* Rename to proper types

* Move to proper place

* Add noEmit to tsconfig.json

* Add back removed code by accident
2022-08-05 17:46:52 -04:00
bholmesdev
c8ca528bba [ci] format 2022-07-11 19:44:42 +00:00
Ben Holmes
faf3f3a8d1
Update with-nanostores example to match docs walkthrough (#3840)
* feat: replace with-nanostores with new example

* docs: update README with docs call-out

* chore: small formatting inconsistencies

* nit: standardize to spaces :'(

* nit: standardize to tabs!

* refactor: use html "hidden" property

* nit: beta.66 for sanity
2022-07-11 15:42:10 -04:00
Marcus Otterström
59e8c71786
Format astro files in examples (#3862) 2022-07-08 22:08:32 +02:00
Fred K. Schott
1335797903
update prettier width (#2968) 2022-04-02 14:15:41 -06:00
Tony Sullivan
4b53a53c1b
Update examples for 0.24.0 (#2740)
* removing Astro.resolve, adding sass dev dependencies

* updating tailwind example to use ESM style imports

* moving from `<style global>@import` to ESM imports

* updating lockfile to pick up examples sass deps

* chore(lint): ESLint fix

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-09 13:52:31 -08:00
Nate Moore
1abb9ed080
Upgrade Vite to latest (#2424)
* chore: unvendor vite

* chore: upgrade vue and svelte

* feat(renderer-solid): upgrade for vite@2.7.x

* chore: update yarn.lock

* fix(solid): upgrade solid renderer for vite@2.7.x

* test: improve css test

* chore: upgrade to vite@2.8.0-beta.3

* fix: replace hacky serialization with 'serialize-javascript'

* fix: externalize serialize-javascript

* fix: explicitly add execa@6.x.x to devDependencies

* test(css): skip css?url test

* chore: update vite-plugin-svelte

* fix: ssr option

* chore: update changeset

* chore: remove changeset

* chore: add changeset

* chore: add back missing changeset

* chore: update vite

* chore: update to latest vite

* test: update proload?

* chore: update dependencies

* fix: remove preact from nanostores example

* fix: update static-build-pkg to use `.mjs` extension

* fix: exclude './server.js' from custom-elements test

* chore: remove unused file
2022-02-08 17:38:00 -06: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
Jonathan Neal
6ddd7678ff
Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00
FredKSchott
fbbeee41aa [ci] yarn format 2021-12-13 18:37:58 +00:00
Agustin Mulet
23b7756d6b
Adding Solid to with-nanostores example (#2079) 2021-12-13 10:37:06 -08:00
Fred K. Schott
8d934059f8
move styles to src (#2003) 2021-11-24 11:10:12 -08:00
Withered Flowers
1ec3f28b63
Patch: Example Nanostores Update (#1955)
* Mention astro.new in docs (#1935)

* Fix - Deprecated nanostores functions

createStore and getValue is deprecated in nanostores,
changed it to atom and atom.get()

* fix: change code to nanostores non-deprecated functions

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-11-21 11:31:42 -06:00
Fred K. Schott
5e0e276609 cleanup example favicons 2021-08-16 14:34:08 -07:00
Rafid Muhymin Wafi
b03f1f71b7
Adding favicon to examples (#1084) 2021-08-16 14:28:38 -07:00
Jonathan Neal
c7aca2c9b2
Reduce meta viewport tag (#1006) 2021-08-04 08:30:58 -04:00
FredKSchott
50f82e1a53 [ci] yarn format 2021-07-20 04:07:49 +00:00
Caleb Jasik
6d06fce6d2
Update docs in compiler messages (#710)
* `github.com/snowpackjs/astro/blob/main/docs/*.md` -> `docs.astro.build/*/`

* convert links to docs site links

* Fix broken links that didn't work w/ the regex.

* Add changeset

* Delete five-weeks-destroy.md

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-07-16 07:01:31 -04:00
Tony Sullivan
0a7b6deaec
Move hydration directives to special attributes (#618)
* feat: ♻️ updating hydration to work with the directive syntax

* test:  Updating tests for the hydration directive syntax

* refactor: Updating example projects for the hydration directive syntax

* test:  Found a test fixture still needing an update to the hydration directive syntax

* style: Prettier strikes again!  Reverting code formatting changes

* refactor: ♻️ moving directive matching to a Set

* refactor: Updating syntax to `client:load`

* refactor: ♻️ Simplifying the `client:` directive match

Per PR feedback from @matthewp

* chore: errant console.warn() snuck into the last commit

* feat: 🔊 Adding a super fancy build warning to update to the directive syntax

* refactor: ♻️ Removing unnecessary checks when matching supported hydration directives

`val` isn't being used for now, but leaving it in the attr destructuring as a reminder since it'll be needed for `client:media`

* test:  Including the original hydration syntax in a test to make sure it builds

* style: 📝 Adding a comment to make it clear why the old hydration syntax is included in a the test markup

* fix: 🐛 updating `head` logic to recognize hydration directive syntax

* docs: Adding changeset

* refactor: 🔥 Removing unnecessary `!hasComponents` check

* docs: 📝 Adding more detail to the changset

Co-authored-by: Tony Sullivan <tony.f.sullivan@gmail.com>
2021-07-08 14:07:56 -04:00
Fred K. Schott
8f74b3bdbb
update example astro inline docs (#592) 2021-07-01 08:43:02 -04:00
Nate Moore
7063c04dec
Restructure examples (#568)
* rename kitchen sink, pull out react example

* split out the rest of the examples

* align versions

* chore: rename examples

* chore: normalize gitignore

* chore: update package versions

* chore: move framework examples to `framework` namespace

* docs: add README to examples

Co-authored-by: Austin Crim <crim.austin@principal.com>
2021-06-28 10:46:10 -05:00