0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples/snowpack
Matthew Phillips 854d0feb34
Add support for React components. (#18)
* Add support for React components.

This adds support for react components via a new `extensions` config in astro.config.mjs. In the future we can extend this to do things like look at the import statements, as Snowpack does.

* Fix the tests
2021-03-23 13:47:54 -04:00
..
astro Add support for React components. (#18) 2021-03-23 13:47:54 -04:00
public [wip] Add styles to Snowpack app (#13) 2021-03-22 18:06:58 -06: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 support for React components. (#18) 2021-03-23 13:47:54 -04:00
LICENSE Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
package-lock.json Add support for React components. (#18) 2021-03-23 13:47:54 -04:00
package.json Add support for React components. (#18) 2021-03-23 13:47:54 -04:00
README.md Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
snowpack.config.js [wip] Add styles to Snowpack app (#13) 2021-03-22 18:06:58 -06: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