summaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-04-30Migrate to `yarn` monorepo (#157)Gravatar Nate Moore 78-9143/+0
* chore: use monorepo * chore: scaffold astro-scripts * chore: move tests inside packages/astro * chore: refactor tests, add scripts * chore: move parser to own module * chore: move runtime to packages/astro * fix: move parser to own package * test: fix prettier-plugin-astro tests * fix: tests * chore: update package-lock * chore: add changesets * fix: cleanup examples * fix: starter example * chore: update changeset config * chore: update changeset config * chore: setup changeset release workflow * chore: bump lockfiles * chore: prism => astro-prism * fix: tsc --emitDeclarationOnly * chore: final cleanup, switch to yarn * chore: add lerna * chore: update workflows to yarn * chore: update workflows * chore: remove lint workflow * chore: add astro-dev script * chore: add symlinked README
2021-04-30Add portfolio example (#140)Gravatar Drew Powers 1-4/+4
* Add portfolio example * Feedback
2021-04-30Fix Svelte bundled behavior (#151)Gravatar Nate Moore 3-4/+18
* build: add svelte to dynamic component imports * fix: svelte bundling * fix: ensure svelte runtime is bundled with build * fix: svelte runtime in dev mode * fix: include svelte runtime in imports Co-authored-by: Duncan Healy <duncan.healy@gmail.com>
2021-04-30fix: typoGravatar Nate Moore 1-1/+1
2021-04-29chore: update to snowpack@3.3.7 (#150)Gravatar Nate Moore 1-1/+1
2021-04-29build: add warning if no public folder found #96 (#144)Gravatar duncanhealy 1-1/+4
* build: add warning if no public folder found #96 * build: change color to yellow * build: warn if public folder missing and not set to "public"
2021-04-29fix: @vue/server-renderer tree-shaking (#148)Gravatar Nate Moore 1-0/+3
2021-04-28Fix: plain string children bug (#138)Gravatar Nate Moore 1-4/+9
* fix: string children bug * test: add string children test * test: add other child test scenarios
2021-04-27chore: update docs to new defaults (#133)Gravatar Nate Moore 2-3/+3
2021-04-27Move the `request` object from import.meta to Astro (#134)Gravatar Matthew Phillips 3-5/+8
* Move the `request` object from import.meta to Astro This moves the `request` object to the Astro "global" (really just a render-level variable). * Document Astro.request
2021-04-26Update defaults directory structure to `src` and `dist` (#132)Gravatar Nate Moore 1-2/+2
* chore: update defaults in docs * chore: update config defaults * test: update tests to config defaults * chore: update gitignore to new defaults * docs: update readme to new defaults * chore: update examples to new defaults * chore: update default exclude in lang server * chore: update tests * test: fix failing tests * chore: update www defaults
2021-04-26Support 500 pages in the dev server (#131)Gravatar Matthew Phillips 4-14/+159
* Support 500 pages * Document custom 400/500 pages * Remove search from any pages not the 500 page * fix(kitchen-sink): add snowpack.config.js * fix(examples): add snowpack.config.js * style: redesign built-in 500 page Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-23Support the /404 route in the dev server (#128)Gravatar Matthew Phillips 1-2/+13
* Support the /404 route in the dev server * Fix status code * Formatting
2021-04-23Restore parse errors (#130)Gravatar Matthew Phillips 2-4/+17
2021-04-23Add better CLI logging for dev/build (#126)Gravatar Matthew Phillips 3-16/+57
* Add better CLI logging for dev/build This adds better CLI logging for dev and build. * Fix the sorting
2021-04-23Add RSS generation (#123)Gravatar Drew Powers 6-25/+171
2021-04-22Allow multiple JSX children appear in Mustache tag (#125)Gravatar Kevin (Kun) "Kassimo" Qian 5-22/+29
* fix(www): link styles (#100) Co-authored-by: Nate Moore <nate@skypack.dev> * Add `assets/` (#102) * chore: add assets * docs: update readme Co-authored-by: Nate Moore <nate@skypack.dev> * docs: fix readme * docs: fix readme * chore: remove github banner * Allow multiple JSX in mustache * Manually discard package-lock update (due to local use of npm v7) * Tidy up * Revert mode ts-ignore Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-22Fix typescript errors in the build (#124)Gravatar Matthew Phillips 2-5/+6
* Fix build * Put sitemap on the buildOptions
2021-04-22CLI docs (#121)Gravatar Matthew Phillips 4-11/+43
* Start of cli docs * Document the CLI Also adds support for the `--config` option and `--port` option for the dev server. * Add tests for --config and --port flags * Add port to validateConfig
2021-04-21Add sitemap generation (#120)Gravatar Drew Powers 5-29/+108
* Add sitemap generation * Update README * Fix index handling, sort sitemap * Add --no-sitemap CLI flag (and config option)
2021-04-21Prettier support for `.astro` files (#106)Gravatar Nate Moore 1-1/+1
* docs: fix readme * chore: scaffold prettier plugin * chore(prettier): switch to cjs * test(prettier): scaffold prettier tests * test(prettier): add simple prettier tests * feat(prettier): first pass * refactor: expose parser as CJS export * test(prettier): add long expression * refactor(prettier): use Astro parser + built-in prettier doc for prettier plugin * chore: remove parser from git * chore: add prettier-plugin-astro `build` to workflow * chore: update package-lock * chore: do not build prettier-plugin-astro * fix: update engines * chore: remove NPM restriction * chore: fix workflow paths * chore: update build script * test: fix prettier expr test * chore: fix parser build on windows * refactor: add parser tsconfig, extending base config * chore: relax ban-ts-comment * chore: fix lint issue Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-19[ci] npm run formatGravatar matthewp 1-1/+1
2021-04-19Fix building of dynamic Svelte components (#115)Gravatar Matthew Phillips 2-1/+12
Svelte component resolution wasn't handled correctly during the build. Note that in the future we need to consolidate a "framework" API, so this stuff is not sprinkled throughout the codebase.
2021-04-19Fix visible components (#112)Gravatar Matthew Phillips 1-2/+2
* Fix visible components The wrapper component is grabbed with querySelector, so no need for `.item()` call which was throwing. * Add back in display contents
2021-04-19[ci] npm run formatGravatar matthewp 1-19/+13
2021-04-19Fix dynamic React components (#111)Gravatar Matthew Phillips 5-28/+42
Another change in snowpack@3 caused this bug. It's not actually a bug in snowpack. Previously snowpack was keeping its list of installed packages in a global cache. In 3.3 it stopped doing so. We were accidentally relying on that global cache to be able to resolve dynamic components. This fixes it so that we use the frontend snowpack instance to resolve dynamic components. Doing so means they are available when we try to load them.
2021-04-16[ci] npm run formatGravatar matthewp 1-6/+14
2021-04-16Pass mode into snowpack runtime (#99)Gravatar Matthew Phillips 2-5/+5
* Pass the `mode` through to snowpack This allows the production packages to be prepared. * Use snowpack 3.3.1 * Update path to prism loadComponents external ref * Upgrade to snowpack 3.3.2
2021-04-15[ci] npm run formatGravatar natemoo-re 10-186/+184
2021-04-15Support children inside of components (#72)Gravatar Nate Moore 13-28/+323
* chore(examples): add kitchen-sink * feat: support children in rendered components * feat: add support for rendering children in Svelte * fix: cleanup p/react fragment children * chore: add @ts-nocheck to svelte files * chore: update lockfiles * fix: types * feat: memoize frontend/renderer/utils * fix: disable eslint for compiled SvelteWrapper * fix: add missing dep Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-14Add collections to build (#94)Gravatar Drew Powers 2-29/+133
2021-04-14Add Windows Support (#93)Gravatar Drew Powers 5-14/+20
* Add Windows to test suite * Try implicit URL
2021-04-14Improve Tailwind docs & Tailwind support (#92)Gravatar Drew Powers 2-3/+4
2021-04-13Add Astro.fetchContent API (#91)Gravatar Drew Powers 5-17/+38
2021-04-13fix: bundle client-side code for components used in .md pages (#78)Gravatar Matt Mulder 2-10/+21
2021-04-13add content-type to astro html (#85)Gravatar Jonathan Neal 1-0/+1
2021-04-12Renaming to import.meta.fetchContent (#70)Gravatar Drew Powers 8-99/+409
* Change to import.meta.glob() Change of plans—maintain parity with Snowpack and Vite because our Collections API will use a different interface * Get basic pagination working * Get params working * Rename to import.meta.fetchContent * Upgrade to fdir
2021-04-12chore fix lint reduce errors generated (#83)Gravatar duncanhealy 12-4/+25
* add dep domhandler imported in in src/build/static * lint and jsDoc error * move domhandler to devDep * chore: add package lock * escape string jsDoc * chore: add astro dep in until prism import is refactored * chore: add snowpack example package lock
2021-04-10fix plugins relative issueGravatar Fred K. Schott 1-1/+10
2021-04-10update package.jsonGravatar Fred K. Schott 1-2/+2
2021-04-10cleanup landing page, and small fixGravatar Fred K. Schott 1-1/+3
2021-04-09Use import specifier rather than filename (#71)Gravatar Drew Powers 1-1/+4
2021-04-09[ci] npm run formatGravatar matthewp 4-39/+36
2021-04-09Parse inner JSX as Astro (#67)Gravatar Matthew Phillips 17-152/+333
* Parse inner JSX as Astro This completes the compiler changes, updating the parser so that it parses inner "JSX" as Astro. It does this by finding the start and end of HTML tags and feeds that back into the parser. The result is a structure like this: ``` { type: 'MustacheTag', expression: [ { type: 'Expression', codeStart: 'colors.map(color => (', codeEnd: '}}' children: [ { type: 'Fragment', children: [ { type: 'Element', name: 'div' } ] } ] } ] } ``` There is a new Node type, `Expression`. Note that `MustacheTag` remains in the tree, all it contains is an Expression though. I could spend some time trying to remove it, there's just a few places that expect it to exist. * Update import to the transform * Transform prism components into expressions
2021-04-09[ci] npm run formatGravatar matthewp 1-3/+5
2021-04-09Improve renderer types (#69)Gravatar Matthew Phillips 6-10/+20
* Improve renderer types Looking at the render code I noticed that the Component rendering is not typed. This adds that, might help prevent a bug in the future. * Create the supported renderer type
2021-04-08[ci] npm run formatGravatar matthewp 1-1/+1
2021-04-08Add support for syntax highlighting of code blocks (#65)Gravatar Matthew Phillips 4-5/+91
* Add support for syntax highlighting of code blocks * Escape usage of backtick strings * Add workspace root for snowpack * Use prismjs/components as an external module
2021-04-06Blog Support 1/3: Data fetching (#62)Gravatar Drew Powers 2-16/+112
* Add example blog * Add author data * Improve navigation * Style nav * Add friendly error message * Throw error if import glob used for non-Markdown files * Use import.meta.collection() API instead * README fixes
2021-04-06[ci] npm run formatGravatar matthewp 1-1/+1