astro/examples/snowpack
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
..
public Improve Snowpack docs styling (#180) 2021-05-07 10:38:38 -06:00
src Move hydration directives to special attributes (#618) 2021-07-08 14:07:56 -04:00
.gitignore Restructure examples (#568) 2021-06-28 10:46:10 -05:00
.npmrc force pnpm to hoist packages inside astro #342 #190 (#530) 2021-06-24 09:48:25 -04:00
.prettierrc Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
astro.config.mjs Pre-release refactors (#289) 2021-06-02 11:35:28 -05:00
LICENSE Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
package.json Version Packages (#626) 2021-07-07 20:34:17 -04:00
README.md Format (#167) 2021-05-03 12:26:10 -06:00
vercel.json Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00

Astro Demo

Getting set up

  1. Check out Astro at: https://github.com/snowpackjs/astro

    1. Install and build Astro:
    npm install
    npm run build
    
    1. Link Astro:
    npm link
    
  2. In this project link Astro and install other deps:

npm link astro
npm install
  1. Run the Astro dev environment.
npm run start
  1. Build the website. (Not yet working.)
npm run build