astro/examples/snowpack
Matthew Phillips 2082001ff8
Add snowpack as an example project. (#11)
* Initial tests set up

This adds tests using uvu (we can switch if people want) and restructures things a bit so that it's easier to test.

Like in snowpack you set up a little project. In our tests you can say:

```js
const result = await runtime.load('/blog/hello-world')
```

And analyze the result. I included a `test-helpers.js` which has a function that will turn HTML into a cheerio instance, for inspecting the result HTML.

* Bring snowpack example in

* Formatting
2021-03-19 17:17:38 -04:00
..
astro Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
public Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
.gitignore Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
.prettierrc Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
.stylelintrc.js Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
astro.config.mjs Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
LICENSE Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
package-lock.json Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
package.json Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
README.md Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
snowpack.config.js Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
vercel.json Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00

Astro Demo

Getting setup

  1. Checkout 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