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 d5b15a3851
Support for custom elements (#45)
* Support for custom elements

Now you can use custom elements like so in Astro components:

```html
<script type="module" src="./datepicker.js">
<date-picker></date-picker>
```

These will be resolve relative to the current astro component. In the build these modules are run through the same bundle/minify process as components.

* Remove component from public

* Formatting

* Disable empty fn rule
2021-03-31 16:46:09 -04:00
..
astro Support for custom elements (#45) 2021-03-31 16:46:09 -04:00
public Improve styles (#30) 2021-03-25 18:23:45 -06:00
.gitignore First pass at the build (#27) 2021-03-25 14:06:08 -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 Bundling! 🤘 (#36) 2021-03-30 09:24:26 -04:00
LICENSE Add snowpack as an example project. (#11) 2021-03-19 17:17:38 -04:00
package-lock.json Fix nested parens bug (#39) 2021-03-30 10:37:04 -06:00
package.json Absorb Snowpack config inside Astro (#32) 2021-03-26 13:14:32 -06:00
README.md 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