summaryrefslogtreecommitdiff
path: root/examples/snowpack (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-06-07Version Packages (#318)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-05Version Packages (#299)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-04Version Packages (#298)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-04Version Packages (#295)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-02Version Packages (#291)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-02Version Packages (#285)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-06-02Pre-release refactors (#289)Gravatar Nate Moore 1-10/+5
* refactor: expose `astro/components` as component entrypoint * refactor: remove `extensions` from all configs * test: fix snowpack tests * docs: update config doc
2021-06-01Change astroRoot to pages (#277)Gravatar Drew Powers 1-1/+1
#271
2021-05-29Version Packages (next) (#280)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-28Version Packages (next) (#227)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-24ReleaseGravatar Matthew Phillips 1-2/+2
2021-05-24Fix markdown syntax issues (#234)Gravatar Matthew Phillips 2-2/+2
This fixes #233 among other things
2021-05-21Add Tailwind support to Astro Dev Server (#222)Gravatar Drew Powers 2-21/+1
* Improve PostCSS and Tailwind support * Update styling docs * Changelog * Fix test hanging
2021-05-17chore: release v0.10.0Gravatar Nate Moore 1-2/+2
2021-05-17chore: version packagesGravatar Nate Moore 1-2/+2
2021-05-17Version Packages (#213)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-13Version Packages (#195)Gravatar github-actions[bot] 1-2/+2
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-07Improve Snowpack docs styling (#180)Gravatar Drew Powers 31-930/+596
2021-05-06Add CSS bundling (#172)Gravatar Drew Powers 1-2/+2
* Add CSS bundling * Add Changeset * Update build script * Count better * Fix stats * Cleanup * Add test * Show profile ms under 750ms
2021-05-04chore: version packagesGravatar Nate Moore 1-2/+2
2021-05-04chore: version packagesGravatar Nate Moore 1-2/+2
2021-05-03Format (#167)Gravatar Drew Powers 6-31/+40
2021-04-30Migrate to `yarn` monorepo (#157)Gravatar Nate Moore 3-14341/+9
* 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-26Update defaults directory structure to `src` and `dist` (#132)Gravatar Nate Moore 76-3/+3
* 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 1-0/+1
* 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-23First Pass at LSP (#129)Gravatar Nate Moore 3-2/+3
* feat(lsp): add HTML features to LSP * chore: add language server license * feat(lsp): add folding ranges, scaffold TS features * feat(lsp): TypeScript Language Service setup * refactor(lsp): cleanup typescript completion providr * chore: format * chore: cleanup eslint * fix: license * chore: remove comment * chore: add marketplace info * chore: publish
2021-04-23Support the /404 route in the dev server (#128)Gravatar Matthew Phillips 1-1/+1
* Support the /404 route in the dev server * Fix status code * Formatting
2021-04-21Prettier support for `.astro` files (#106)Gravatar Nate Moore 1-9/+9
* 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-16Pass mode into snowpack runtime (#99)Gravatar Matthew Phillips 1-211/+1192
* 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-15Support children inside of components (#72)Gravatar Nate Moore 1-230/+343
* 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-12chore fix lint reduce errors generated (#83)Gravatar duncanhealy 2-682/+231
* 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-12Add back in astro as a dependency of the snowpack example (#81)Gravatar Matthew Phillips 2-204/+378
Removing the dependency breaks the site as using Markdown creates an import to a builtin Astro component. So we need astro as a dep. Not sure why it was changed anyways.
2021-04-10cleanup landing page, and small fixGravatar Fred K. Schott 1-3/+2
2021-04-08Add support for syntax highlighting of code blocks (#65)Gravatar Matthew Phillips 2-94/+33
* 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-02Fix body from being scoped (#56)Gravatar Drew Powers 1-26/+13
2021-04-01Fix complex MDX parsing (#50)Gravatar Matthew Phillips 5-25/+5
* Fix complex MDX parsing This allows fully MDX support using the micromark MDX extension. One caveat is that if you do something like use the less than sign, you need to escape it because the parser expects these to be tags otherwise. * Move micromark definition
2021-03-31Support for custom elements (#45)Gravatar Matthew Phillips 2-6/+23
* 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-31Implement fallback capability (#44)Gravatar Matthew Phillips 3-7/+8
* Implement fallback capability This makes it possible for a dynamic component to render fallback content on the server. The mechanism is a special `static` prop passed to the component. If `static` is true then the component knows it can render static content. Putting aside the word `static`, is this the right approach? I think giving components the flexibility to make the decision themselves *is* the right approach. However in this case we have a special property that is passed in non-explicitly. I think we have to do it this way because if the caller passes in a prop it will get serialized and appear on the client. By making this something we *add* during rendering, it only happens on the server (and only when using `:load`). Assuming this is the right approach, is `static` the right name for this prop? Other candidates: * `server` That's all I have! * Use `import.meta.env.astro` to tell if running in SSR mode. * Run formatter
2021-03-31Extract Astro styles to external stylesheets (#43)Gravatar Drew Powers 43-73/+73
* Extract Astro styles to external stylesheets * Require relative URLs in Markdown layouts
2021-03-30Fix nested parens bug (#39)Gravatar Drew Powers 1-3/+4
2021-03-30Convert CSS Modules to scoped styles (#38)Gravatar Drew Powers 2-6/+13
* Convert CSS Modules to scoped styles * Update README * Move class scoping into HTML walker * Fix SSR styles test * Fix mustache tags * Update PostCSS plugin name * Add JSDoc comment * Update test
2021-03-30Add support for doctype (#37)Gravatar Matthew Phillips 8-2/+8
* Add support for doctype * Automatically prepend doctype
2021-03-30Bundling! 🤘 (#36)Gravatar Matthew Phillips 2-0/+2
* Bundling! 🤘 * Finalize build changes
2021-03-29revert bad snowpack example changesGravatar Fred K. Schott 1-8/+146
2021-03-29clean up landing pageGravatar Fred K. Schott 1-146/+8
2021-03-26New hydration methods (#29)Gravatar Nate Moore 3-8/+6
* WIP: new hydration methods * refactor: genericize load/idle/visible renderers * fix: do not pass "data-astro-id" to component * docs: add hydration section to README * docs: update README Co-authored-by: Nate Moore <nate@skypack.dev>
2021-03-26Fix JSX CSS Modules classes (#31)Gravatar Drew Powers 1-1/+1
2021-03-26Absorb Snowpack config inside Astro (#32)Gravatar Drew Powers 4-4478/+405
* Absorb Snowpack config inside Astro * Add basic README * Format tests * Update esbuild * Format tests
2021-03-25Improve styles (#30)Gravatar Drew Powers 9-58/+93
2021-03-25Add React component SSR (#28)Gravatar Drew Powers 4-69/+90
* Add React component SSR * Add React component SSR