summaryrefslogtreecommitdiff
path: root/examples/snowpack (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-03-25First pass at the build (#27)Gravatar Matthew Phillips 6-6/+7
This updates `astro build` to do a production build. It works! No optimizations yet.
2021-03-25add component state, top-level await support (#26)Gravatar Fred K. Schott 6-20/+24
2021-03-24Redesign pages, remove layout nesting (#24)Gravatar Fred K. Schott 16-627/+678
* wip * new svelte-style prop declaration is working * got it working! * revert h changes * format * style lang update
2021-03-24hmx ☞ astro (#22)Gravatar Matthew Phillips 60-65/+65
This changes all hmx files to astro files and updates all code to not reference hmx any more.
2021-03-24Fix snowpack test (#21)Gravatar Matthew Phillips 1-18/+18
Using the new `---` syntax, it must be at the top of the file. If it's not it will loop indefinitely.
2021-03-23fix typoGravatar Fred K. Schott 1-2/+2
2021-03-23add support for frontmatter scriptsGravatar Fred K. Schott 14-30/+30
2021-03-23update package-lockGravatar Fred K. Schott 1-122/+117
2021-03-23Allow HMX components in markdown (#19)Gravatar Matthew Phillips 1-5/+1
* Allow HMX components in markdown This adds support for HMX components in markdown. The mechanism for importing is via frontmatter. We could do this differently (setup script maybe?) but since this was the easiest to implement I thought it was a good first-pass option. * Remove node-fetch from snowpack config * Assert that the runtime is created successfully * Add back in the micromark extension for encoding entities * Encode both codeTextData and codeFlowValue * Install snowpack app's deps
2021-03-23Use <style lang>, add node_module resolution to SassGravatar Drew Powers 8-14/+110
2021-03-23Add support for React components. (#18)Gravatar Matthew Phillips 4-1/+167
* 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-22[wip] Add styles to Snowpack app (#13)Gravatar Drew Powers 22-1130/+1681
* Add styles to Snowpack app * Bubble up file build errors * Fix merge error
2021-03-22add typescript support for expressionsGravatar Fred K. Schott 1-1/+1
2021-03-21add example of props in tsGravatar Fred K. Schott 2-4/+16
2021-03-21another pass at head/body handling in pagesGravatar Fred K. Schott 9-392/+344
2021-03-21add fetch supportGravatar Fred K. Schott 2-4/+11
2021-03-21get test runner runningGravatar Fred K. Schott 3-22/+19
2021-03-21lots of improvementsGravatar Fred K. Schott 16-248/+259
2021-03-19Add snowpack as an example project. (#11)Gravatar Matthew Phillips 197-0/+25044
* 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