Nate Moore
5247a23cbe
Example: Docs template ( #226 )
...
* fix: markdown issues
* wip: add docs example
* example: update doc template
* chore: credit Steph for AvatarList
* chore: align footer to bottom viewport
* chore: feeback R1
* fix: font fallback in firefox
* fix merge conflicts
* fix: add default value to headers
* chore: fix doc example
2021-05-27 09:16:14 -05:00
Nate Moore
dc1fe7d9c3
chore: cleanup deps ( #261 )
2021-05-27 08:10:14 -04:00
Nate Moore
9e7a1cbd7f
TEMP: remove react from create-astro
deps
2021-05-26 18:39:19 -05:00
Nate Moore
0b7d453c99
chore: release create-astro@0.1.2
2021-05-26 18:35:29 -05:00
Drew Powers
75bfc019aa
Fix npm init astro for npm v7 ( #257 )
...
Fixes #183
2021-05-26 14:17:50 -06:00
Nate Moore
be804499b0
Remove remote urls from import scanner ( #256 )
...
* fix: remove remote urls from import scanner
* debug test
2021-05-26 14:56:34 -05:00
duncanhealy
5dc3aa007a
chore: update getting started config #245 ( #250 )
...
* chore: update getting started config #245
* chore: reorder renderers
2021-05-26 19:56:19 +01:00
natemoo-re
5fa7e354b3
[ci] yarn format
2021-05-26 18:31:27 +00:00
Nate Moore
643c880f28
Renderer plugins ( #231 )
...
* refactor: pluggable renderers
* refactor: cache renderer per component
* docs: update comments on snowpack plugin `transform` method
* docs: add comments to renderer plugins
* refactor: convert components to Map
* fix: pass children through to astro __render
* refactor: move Components/ComponentInfo to shared types
* refactor: remove `gatherRuntimes` step, just scan output for imports
* refactor: update isComponentTag logic
* chore: move dependencies to renderers
* fix: cross-platform transform injection
* feat: defer renderer to react, fallback to preact
* fix: use double quotes in generated script
* test: fix failing children tests
* test: add workspaceRoot to all tests
* fix: pass props to renderer check
* chore: add test:core script back for convenience
* chore: remove unused external
* chore: rename renderers
* chore: add astring, estree-util-value-to-estree
* chore: render-component => __astro_component
* refactor: split hydrate logic to own file
* refactor: use `astro-fragment` rather than `div`
* chore: remove unused hooks
* chore: delete unused file
* chore: add changesets
* fix: Astro renderer should be async
* fix: remove <astro-fragment> for static content
* test: fix failing test
* chore: normalize config interface
* feat: allow renderers to inject a snowpackPlugin
* fix: resolve import URL before using dynamic import
* refactor: update renderers to use separate /server entrypoint
* refactor: update server renderer interface
* fix: get renderers working again
* test: debug failing test
* test: better debug
* test: better debug
* test: remove debug
* fix: support esm and cjs packages via "resolve"
* refactor: split hydrate functions into individual files
* fix: dependency resolution relative to projectRoot
* fix: @snowpack/plugin-postcss needs to be hoisted
* fix: do not test prettier-plugin-astro as it's not ready for primetime
2021-05-26 13:30:22 -05:00
duncanhealy
622d1a38f1
fix: package for templates to latest version of astro #245 ( #248 )
2021-05-26 12:33:56 -04:00
matthewp
36fc51c124
[ci] yarn format
2021-05-26 15:33:35 +00:00
Matthew Phillips
da47225efe
Add benchmarking for dev and build ( #240 )
...
* Add benchmarking for the dev server
This adds benchmarking for the dev server.
* Use fs.rm instead
* Only rimraf if the folder exists
* Make uncached match CI
* Change the cached time too
* Don't run benchmark in CI
* Switch back test command
* Make tests be within 10 percent
* Use yarn to run multiple things
* Turn benchmark into uvu tests
* Debugging benchmark
* Print chunk for testing
* Ignore benchmark folder in uvu
* Add build benchmarking
* Update benchmark numbers
2021-05-26 11:31:53 -04:00
木杉
760a7a5509
Support skip install deps ( #242 )
...
* Support skip install deps
* fmt
* Create new-hats-deliver.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-05-25 17:16:49 -05:00
Drew Powers
f5ecbee192
Add test for npm init astro ( #238 )
...
* Add test for npm init astro
* Use Lerna to run test
2021-05-24 16:18:56 -06:00
Matthew Phillips
ac43faf85f
Release
2021-05-24 16:32:10 -04:00
Matthew Phillips
2ff2533c9e
Fix markdown syntax issues ( #234 )
...
This fixes #233 among other things
2021-05-24 16:00:34 -04:00
Drew Powers
c43ee95850
Bugfix: random CSS ordering ( #232 )
...
* Bugfix: random CSS ordering
Fixes #230
* Update docs
2021-05-24 10:57:35 -06:00
Drew Powers
c9942c2878
Revert stylegen ( #228 )
2021-05-21 14:55:25 -06:00
natemoo-re
8b6b41eb85
[ci] yarn format
2021-05-21 20:53:47 +00:00
Nate Moore
9cdada0bcc
Markdown issue cleanup ( #224 )
...
* fix: markdown issues
* chore: add changeset
* chore: add missing dep
* perf: parallelize compileHtml for children
2021-05-21 15:52:20 -05:00
Drew Powers
19e20f2c54
Add Tailwind support to Astro Dev Server ( #222 )
...
* Improve PostCSS and Tailwind support
* Update styling docs
* Changelog
* Fix test hanging
2021-05-21 14:02:19 -06:00
Drew Powers
69d693b77c
Add scoped styles test ( #223 )
2021-05-21 12:45:49 -06:00
Drew Powers
3da2b58b9d
Add dev server profile logs ( #218 )
2021-05-18 15:57:15 -05:00
木杉
cce8ac72e0
Make Astro compatible with Windows ( #215 )
2021-05-17 17:52:11 -05:00
Nate Moore
512670bedd
chore: release v0.10.0
2021-05-17 10:20:15 -05:00
Nate Moore
507eabe9f0
chore: fix version
2021-05-17 10:16:30 -05:00
Nate Moore
73bab5e385
chore: version packages
2021-05-17 09:40:51 -05:00
Nate Moore
c75bede6f5
chore: bump create-astro deps
2021-05-17 09:34:36 -05:00
natemoo-re
7a0fd2bd4e
[ci] yarn format
2021-05-17 14:32:43 +00:00
github-actions[bot]
971c58da4d
Version Packages ( #213 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-17 09:31:37 -05:00
natemoo-re
a2ae7018ca
[ci] yarn format
2021-05-17 14:30:21 +00:00
Nate Moore
b3886c206f
Fix markdown issues ( #208 )
...
* Init fix/markdown
* Astro Markdown (#207 )
* Add Astro Markdown to VSCode Extension
* Add Astro Markdown to Astro
* refactor: update astro-markdown example
* feat: remove embedded components from `.md` files
* fix: resolve `.md.astro` files at runtime
* chore: update markdown tests
* feat: add <Markdown> component
* chore: bump examples
* chore: update example
* fix: improve Markdown child handling
* feat: harden markdown support, add code fence support, add automatic dedenting
* chore: add weird markdown edge cases
* chore: update remote-markdown examples
* chore: add comment to Markdown.astro
* feat: improve markdown support (codefences, nested inside HTML)
* refactor: extract import specifier types to set
* refactor: conditionally import markdown renderer
* refactor: revert special-cased "astro/components"
* refactor: revert special-cased "astro/components"
* refactor: use astro/components/Markdown.astro
* refactor: remove `.md.astro` support in favor of Markdown component
* refactor: use regular .astro files
* refactor: remove unused code
* refactor: move Markdown inside Layout
* wip: markdown scoped styles
* feat: improve scoped styles in Markdown
* feat: micromark => remark ecosystem
* fix: markdown build
* fix: markdown build
* chore: add todo
* fix: collect headers text
* docs: add Markdown doc
* chore: add changeset
* docs: improve Markdown highlighting
* refactor: prefer Set
* refactor: exclude large unified deps
* docs: update markdown docs
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
* chore: remove extra markdown deps
* perf: optimize markdown
* fix: unified/rehype deps
* temp: fix markdown test
* test: add TODO comment
* fix: do not namespace frontmatter, just astro metadata
* test: fix astro-markdown test
* test: add realworld markdown example
* fix: prism language bug
* docs: update markdown docs
* chore: bump dependencies
* fix: escape codespan
* fix: unterminated string literal
* fix(vscode): inline dependencies
* fix(vscode): dependencies
* feat(vscode): embedded markdown
* feat: add Markdown syntax highlighting
* chore: improve markdown example
* fix: markdown example
* feat: highlighting improvements
* chore: add changeset
* fix: CodeBlock => CodeSpan
* chore: get astro-markdown example running
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-05-17 09:29:16 -05:00
Drew Powers
9d092b56c7
Fix Windows tests ( #212 )
...
* Fix Windows fetchContent()
* Fix Windows bundling & config loading
* Fix astro-prettier formatting for Windows
2021-05-14 12:03:41 -04:00
github-actions[bot]
a9f63c5c0c
Version Packages ( #195 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-13 12:28:04 -05:00
Nate Moore
000464bf35
Fix Svelte build output ( #201 )
...
* fix(#200 ): svelte build output
* chore: add changeset
2021-05-13 10:06:04 -05:00
Drew Powers
3ef1b01e14
[wip] Fix CI ( #202 )
...
* Yarn format
* Fix changeset --since
* Fix Windows tests
2021-05-12 12:06:16 -06:00
Drew Powers
7184149514
Add Astro.request.canonicalURL and Astro.site to global ( #199 )
2021-05-11 17:31:52 -06:00
Kevin (Kun) "Kassimo" Qian
e0fc2ca097
fix: build stuck on unhandled promise reject ( #191 )
...
* fix: build stuck on unhandled promise reject
* Changeset
2021-05-10 11:35:40 -05:00
Kevin (Kun) "Kassimo" Qian
e0a4f5fbc0
Allow default import component to be renamed based on import statement default specifier ( #193 )
...
* Allow renaming for default import components
* Changeset
2021-05-10 11:00:05 -05:00
Drew Powers
9feffda850
Fix double <pre> tag ( #185 )
2021-05-07 15:48:45 -06:00
Drew Powers
8f2a58534c
Bugfix: fix build ( #184 )
2021-05-07 10:42:48 -06:00
Drew Powers
87ab4c6927
Bugfix: scoped styles ( #178 )
2021-05-06 15:39:34 -06:00
Drew Powers
7b55d3d43e
Chore: fix lint rules, add more error handling for unexpected cases ( #177 )
2021-05-06 14:57:14 -04:00
Drew Powers
95b1733c89
Bugfix: handle unawaited promise ( #176 )
2021-05-06 14:55:17 -04:00
Drew Powers
b81abd5b2c
Add CSS bundling ( #172 )
...
* Add CSS bundling
* Add Changeset
* Update build script
* Count better
* Fix stats
* Cleanup
* Add test
* Show profile ms under 750ms
2021-05-06 10:38:53 -06:00
Matthew Phillips
0fe0a6ba19
0.0.12
2021-05-05 11:27:55 -04:00
Matthew Phillips
353934aee7
Add dist to the npm package
2021-05-05 08:57:45 -04:00
Nate Moore
9ed19317c6
chore: version packages
2021-05-04 17:16:23 -05:00
Nate Moore
3ad0aac8cf
Fix fetchContent
for nested files ( #171 )
...
* fix: fetchContent within nested folders
* feat: add `sourceId` to fetchContent
* test: update collection tests
* fix: windows compat for importPath
* chore: add changeset
* fix: astroRoot => projectRoot
* feat: add `slash` package
* chore: remove sourceId prop
* chore: update changeset
* format
2021-05-04 17:11:05 -05:00
Matthew Phillips
0054f78e42
Add bundle size information to the build output ( #169 )
2021-05-04 14:06:38 -04:00
Nate Moore
75b05b393a
fix(astro-prism): package
2021-05-04 12:22:25 -05:00
Nate Moore
ac0bc88ae9
chore: version packages
2021-05-04 12:20:50 -05:00
Nate Moore
d924fcbeb4
Fix astro-prism
package ( #170 )
...
* fix: properly include astro-prism
* chore: add changeset
* Update `astro-prism` description
2021-05-04 12:15:13 -05:00
Drew Powers
94038d3297
Format ( #167 )
2021-05-03 12:26:10 -06:00
Nate Moore
c93201a909
Refactor astro
export map, add source-map-support
( #161 )
...
* fix: add svelte plugin for esbuild, remove precompiled svelte components
* refactor: public export map, public types
* feat: add source-map-support to common code paths
* chore: move new "exports" to "imports" map, add internal types
* Include outPath in error logging for bad load status, and drop error stack (#163 )
* Include outPath in the error logging for bad load status
* Discard error stack since it seems not useful
* feat: improve build error logging
* refactor: use object param for writeResult
Co-authored-by: Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>
2021-05-03 13:18:08 -05:00
Drew Powers
4ff3add50f
Clean dependencies ( #166 )
...
* Clean dependencies
This moves some dependencies around where they should be
* Formatting
2021-05-03 11:47:51 -06:00
Nate Moore
c74f3e70f1
Adds .editorconfig
file ( #162 )
...
* chore: adds .editorconfig file
* chore: move devDeps to root
2021-05-03 12:41:39 -05:00
Nate Moore
2ac06010a4
chore: release create-astro@0.1.0
2021-05-03 12:20:51 -05:00
Nate Moore
ed631329e7
create-astro
UI (#164 )
...
* refactor: improve create-astro layout, build script
* feat(create-astro): v0.1.0
* docs(create-astro): add README
* feat(create-astro): add meta files to starter templates
2021-05-03 12:15:13 -05:00
Nate Moore
7c4efe2a7e
fix: monorepo issues ( #158 )
2021-04-30 16:38:40 -05:00
Nate Moore
4df1347156
Migrate to yarn
monorepo ( #157 )
...
* 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-30 16:33:35 -05:00