0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
Commit graph

9116 commits

Author SHA1 Message Date
Nate Moore
60d5d13eea chore: version 2021-04-27 16:10:15 -05:00
Nate Moore
61ccd59f92
Minimal create-astro CLI (#136)
* feat: add minimal create-astro CLI

* docs: update readme
2021-04-27 15:59:23 -05:00
Nate Moore
9c980a1017
add starter template (#135) 2021-04-27 14:21:33 -05:00
Nate Moore
73b7827b40
chore: update docs to new defaults (#133) 2021-04-27 13:42:03 -05:00
Matthew Phillips
41c64b30af
Move the request object from import.meta to Astro (#134)
* 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-27 14:00:33 -04:00
Nate Moore
dea1a6dfc9
Update defaults directory structure to src and dist (#132)
* 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-26 15:54:20 -06:00
Matthew Phillips
0ea4a986e2
Support 500 pages in the dev server (#131)
* 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-26 16:42:11 -04:00
Nate Moore
87af0aead8
First Pass at LSP (#129)
* 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-23 17:53:01 -05:00
Matthew Phillips
62ddea7bb7
Support the /404 route in the dev server (#128)
* Support the /404 route in the dev server

* Fix status code

* Formatting
2021-04-23 15:20:19 -04:00
Matthew Phillips
3ffeb0f7b7
Restore parse errors (#130) 2021-04-23 15:20:05 -04:00
Matthew Phillips
9b9bdbf4a1
Add better CLI logging for dev/build (#126)
* Add better CLI logging for dev/build

This adds better CLI logging for dev and build.

* Fix the sorting
2021-04-23 13:28:00 -04:00
Drew Powers
510e7920d2
Add RSS generation (#123) 2021-04-23 10:44:41 -06:00
Kevin (Kun) "Kassimo" Qian
5eb232501f
Allow multiple JSX children appear in Mustache tag (#125)
* 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-22 15:10:06 -04:00
Matthew Phillips
f5384b139d
Fix typescript errors in the build (#124)
* Fix build

* Put sitemap on the buildOptions
2021-04-22 11:45:05 -04:00
Matthew Phillips
da033e27ea
CLI docs (#121)
* 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-22 08:25:57 -04:00
Drew Powers
a7185735da
Add sitemap generation (#120)
* Add sitemap generation

* Update README

* Fix index handling, sort sitemap

* Add --no-sitemap CLI flag (and config option)
2021-04-21 14:14:24 -06:00
Nate Moore
93e207e38b chore: update discord link 2021-04-21 12:51:04 -05:00
Drew Powers
78fe1cbaf4
Only run CI on pull requests and merges, not every commit (#119) 2021-04-21 10:55:49 -06:00
Nate Moore
54409a0702
Prettier support for .astro files (#106)
* 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-21 11:14:44 -05:00
Drew Powers
76932822b8
Split README into docs (#118) 2021-04-20 17:15:47 -06:00
Drew Powers
3263c02d77
Update Snowpack, Add CSS Modules SSR (#116)
* Add CSS Modules SSR

* Update docs
2021-04-20 15:06:33 -06:00
duncanhealy
fe63d341cb
action: add kitchen-sink to nodejs workflow (#113) 2021-04-19 22:11:02 +01:00
matthewp
f6f01a7d7b [ci] npm run format 2021-04-19 20:14:27 +00:00
Matthew Phillips
cc1a318c41
Fix building of dynamic Svelte components (#115)
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-19 16:13:53 -04:00
Matthew Phillips
b25d2cc93e 0.0.6 2021-04-19 15:38:20 -04:00
Matthew Phillips
ea857e675d
Fix visible components (#112)
* 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 15:14:53 -04:00
matthewp
46a6ba6093 [ci] npm run format 2021-04-19 18:41:37 +00:00
Matthew Phillips
eb984559a8
Fix dynamic React components (#111)
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-19 14:41:06 -04:00
Nate Moore
188541260a
chore: remove github banner, add to banner to README (#108)
Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-16 12:51:30 -05:00
Nate Moore
11bebe2d27
Add assets (#107)
* fix(www): link styles (#100)

Co-authored-by: Nate Moore <nate@skypack.dev>

* chore: add assets

* docs: update readme

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-16 12:48:59 -05:00
matthewp
e43d98d6f3 [ci] npm run format 2021-04-16 17:15:59 +00:00
Matthew Phillips
58c499dc85
Pass mode into snowpack runtime (#99)
* 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-16 13:15:27 -04:00
natemoo-re
2a7aa765b4 [ci] npm run format 2021-04-15 15:56:27 +00:00
Nate Moore
22ca9e0aac
Support children inside of components (#72)
* 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-15 10:55:50 -05:00
Nate Moore
ea33d7b2ab style(www): small style tweaks 2021-04-14 22:11:04 -05:00
Drew Powers
f28cebcf61
Add collections to build (#94) 2021-04-14 17:24:34 -06:00
Nate Moore
077fceabcb fix: update og image 2021-04-14 18:09:30 -05:00
Nate Moore
8472b374b3
New landing page (#95)
* feat: new www

* fix: add svg favicon

* fix: small tweaks

* fix: Drew's nitpicks

* fix: sizing, tagline

* copy: add "astronauts" :)

* fix: astro logo color

* fix: overflow

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-04-14 18:01:51 -05:00
Drew Powers
034674c88c
Add Windows Support (#93)
* Add Windows to test suite

* Try implicit URL
2021-04-14 13:21:25 -06:00
Drew Powers
ec75312a15
Improve Tailwind docs & Tailwind support (#92) 2021-04-14 10:36:00 -06:00
Drew Powers
3d0d53486c
Add Astro.fetchContent API (#91) 2021-04-13 18:08:32 -06:00
Drew Powers
4a71de9e3d
Add CODEOWNERS (#88) 2021-04-13 12:02:46 -06:00
Matt Mulder
ac22d94e11
fix: bundle client-side code for components used in .md pages (#78) 2021-04-13 13:04:01 -04:00
duncanhealy
b588581396
set node version in nvmrc & engines to lts (#87)
* node lts version for nvmrc v14.16.1

* node lts version for nvmrc v14.16.1

* engine version set to to 14.x.x and npm >=6 < 7
2021-04-13 13:03:26 -04:00
Jonathan Neal
740a6b73e0
add content-type to astro html (#85) 2021-04-13 13:01:42 -04:00
Drew Powers
3639190b4e
Renaming to import.meta.fetchContent (#70)
* 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-12 17:21:29 -06:00
duncanhealy
687ff5bacd
chore fix lint reduce errors generated (#83)
* 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-12 16:20:58 +01:00
Matthew Phillips
cffde0192b
Add back in astro as a dependency of the snowpack example (#81)
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-12 08:26:59 -04:00
Fred K. Schott
8e4b201c1b
Update README.md 2021-04-11 22:31:50 -07:00
Fred K. Schott
4107a53757
Update README.md 2021-04-11 08:45:57 -07:00