Drew Powers
1d498facc8
Fix RSS dategen ( #156 )
2021-04-30 11:52:00 -05:00
Drew Powers
f39a91e6ec
Add portfolio example ( #140 )
...
* Add portfolio example
* Feedback
2021-04-30 10:35:20 -06:00
Nate Moore
a79c63750f
chore: release 0.0.9
2021-04-30 09:36:19 -05:00
Nate Moore
509fad6b9a
Fix Svelte bundled behavior ( #151 )
...
* 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-30 09:35:18 -05:00
Nate Moore
f1a7b5ba94
fix: typo
2021-04-30 09:24:08 -05:00
duncanhealy
69f1a00f8d
chore fix tests ( #149 )
...
* chore: fix import of astro/parser -> relative import
* chore: fix snapshot for rss
2021-04-30 08:55:12 +01:00
Nate Moore
1e849689e4
chore: update to snowpack@3.3.7 ( #150 )
2021-04-29 20:32:53 -05:00
duncanhealy
2a23e7e292
build: add warning if no public folder found #96 ( #144 )
...
* 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-29 23:41:51 +01:00
Nate Moore
03775f7048
fix: @vue/server-renderer tree-shaking ( #148 )
2021-04-29 14:11:35 -05:00
Nate Moore
99a916ec1f
Remove .DS_Store files ( #146 )
...
* chore: remove .DS_Store files
* chore: bump create-astro
* chore: fix astro starter
2021-04-29 14:01:57 -05:00
duncanhealy
a1e17bc128
chore: add _site, mac file to gitignore ( #147 )
2021-04-29 13:57:39 -05:00
duncanhealy
787ba306cc
example blog add buildoptions ( #142 )
...
* examples: add astroRoot to blog example
* example: add astro config for `npm run build` #141
2021-04-29 11:28:33 +01:00
Nate Moore
961eee5007
Docs: add .astro
Syntax guide ( #137 )
...
* wip: astro syntax docs
* docs: update syntax guide
* docs: add IDE note
* chore: beautify file
* docs: edits
* Update docs/syntax.md
Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>
* docs: be kinder to JSX :)
* fix: spelling
* docs: clarify some code comments
Co-authored-by: Drew Powers <1369770+drwpow@users.noreply.github.com>
2021-04-28 14:55:25 -05:00
Nate Moore
633bb46dc4
Fix: plain string children bug ( #138 )
...
* fix: string children bug
* test: add string children test
* test: add other child test scenarios
2021-04-28 14:43:50 -05:00
Nate Moore
6bc51facce
chore: bump
2021-04-27 16:13:27 -05:00
Nate Moore
ef37cf9c2a
fix: catch existing relative paths
2021-04-27 16:13:17 -05:00
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