summaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-03-21another pass at head/body handling in pagesGravatar Fred K. Schott 5-43/+20
2021-03-21add fetch supportGravatar Fred K. Schott 1-1/+2
2021-03-21get test runner runningGravatar Fred K. Schott 3-11/+9
2021-03-21lots of improvementsGravatar Fred K. Schott 11-173/+225
2021-03-19Initial tests set up (#10)Gravatar Matthew Phillips 32-4097/+4195
* Begin debugging * 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. * Add CI * Remove extra console logs * Formatting
2021-03-19Inject styling in HTML AST (#9)Gravatar Drew Powers 8-141/+219
* Inject styling in HTML AST * Restore optimize structure
2021-03-18Respect comments when scanning importsGravatar Drew Powers 8-56/+66
Use es-module-lexer for import scanning in HMX scripts
2021-03-18Refactor to enable optimizer modules (#8)Gravatar Matthew Phillips 6-357/+515
* Refactor to enable optimizer modules This refactors HMX compilation into steps: 1. Parse - Turn HMX string into an AST. 2. Optimize - Walk the AST making modifications. 3. Codegen - Turn the AST into hyperscript function calls. There's still more logic in (3) than we probably want. The nice there here is it gives a Visitor API that you can implement to do optimizations. See src/optimize/styles.ts for an example. * Allow multiple visitors per optimizer
2021-03-18Add style transforms (#7)Gravatar Drew Powers 4-22/+161
* Add style transforms * Let crawler be sync
2021-03-17Setup error logging and provide our first parse errors (#6)Gravatar Matthew Phillips 4-17/+165
This adds parse error in a nicely formatted way, and moves the existing console.logs into a fork of the Snowpack logger. The new logger is not a singleton and won't preformat the message.
2021-03-16Clean up TS typesGravatar Drew Powers 161-4938/+157
2021-03-16TypeScript support (#5)Gravatar Matthew Phillips 1-7/+30
This makes it so that setup scripts are treated as TypeScript.
2021-03-16Bring compiler into Astro (#4)Gravatar Matthew Phillips 34-21479/+4533
* include source compiler * Import from JS * Conditionally use the instance contents Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2021-03-16Fix a few lint errorsGravatar Drew Powers 2-4/+4
2021-03-16Annoying Lint PRâ„¢ (#3)Gravatar Drew Powers 109-21126/+20408
* Add Prettier + ESLint * Format files
2021-03-16Progress on preparsingGravatar Matthew Phillips 3-1/+350
2021-03-15Prevent snowpaack from running on a portGravatar Matthew Phillips 1-4/+10
2021-03-15Make our h handle void tags properlyGravatar Matthew Phillips 1-0/+8
2021-03-15Fix caseGravatar Matthew Phillips 1-1/+1
2021-03-15Add a proper cliGravatar Matthew Phillips 1-0/+105
2021-03-15magicthing -> astroGravatar Matthew Phillips 3-9/+9
2021-03-15initial commitGravatar Matthew Phillips 168-0/+27379