Commit graph

89 commits

Author SHA1 Message Date
Fred K. Schott
ed4d9828a7 update congratsbot again 2022-01-31 20:28:20 -08:00
Fred K. Schott
aebe7f57d9
ci: so double quotes fixes the multiline issue? 2022-01-28 10:56:54 -08:00
Fred K. Schott
26711a587c
try to format new discord bot message 2022-01-28 10:52:55 -08:00
Fred K. Schott
4e938e9747
Update discord bot msg 2022-01-28 10:49:38 -08:00
Nate Moore
b21dd19cb6
chore: remove www (#2361) 2022-01-11 12:59:06 -06:00
Fred K. Schott
6cbe79fac4
move changeset to run after build, no test required (#2341) 2022-01-10 17:36:41 -05:00
Matthew Phillips
356d81abcb Turn off prettier in the CI task 2021-12-23 16:16:42 -05:00
Jonathan Neal
45cea6aec5
Support Node v14.15+ (#2202)
* Support Node v14.15+

* changeset

* Update .changeset/new-hats-design.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Update .changeset/new-hats-design.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* Update .changeset/new-hats-design.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* ES2020

* update yarn.lock

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2021-12-16 18:53:22 -05:00
Nate Moore
7a3819cfa9 fix: use ref_name for changeset 2021-12-16 16:48:09 -06:00
Nate Moore
c6928478ae
Update CI to cache node_modules per OS (#2210)
* chore(action): update CI to cache node_modules per OS

* fix(ci): run tests on lint fix

* Update ci.yml
2021-12-16 15:38:55 -06:00
Fred K. Schott
bf40eb9e28
add manual action to rerun nightly jobs 2021-12-14 08:47:00 -08:00
Fred K. Schott
09c01702d0
Update nightly.yml 2021-12-14 08:45:23 -08:00
Fred K. Schott
a656155629
improve our smoke tests to run on all examples (#2174)
* improve smoke test

* chore(lint): Prettier fix

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-13 14:31:18 -08:00
Fred K. Schott
ddf45ada71
add lockfile ci (#2173) 2021-12-13 13:04:21 -08:00
Nate Moore
5258316c4f
Update turbo cache (#2184)
* chore(actions): update cache strategy

* chore: force ci
2021-12-13 13:55:35 -06:00
Nate Moore
80c65e9497
Improve turbo cache (#2178)
* chore(action): regenerate turbo cache

* chore(action): fix build

* chore: add support for [force-ci] option

* [force-ci]

* fix: force-ci support

* [force-ci]

* chore: debug commit message

* chore: debug commit message

* fix: remove force-ci support

* [force-ci]

* chore(actions): fix hash key

* chore(actions): fix hash key?
2021-12-10 00:11:20 -06:00
Nate Moore
16484f603d
Adopt turborepo (#2167)
* chore: use turbo

* chore(lint): Prettier fix

* chore(actions): fix ci

* chore(actions): add turbo caching

* chore(actions): test turbo caching

* chore: remove test dependency on build

* chore: fix build outputs

* chore(actions): restore tests from cache

* chore(actions): fix turbo cache

* chore(actions): fix turbo cache

* chore(actions): restore turbo after artifacts

* chore(actions): caching is hard

* chore: force ci

* chore(actions): prefer-offline for yarn install

* chore(actions): attempt to cache turbo based on sha

* chore: remove lerna.json

* chore(action): update restore keys

* chore(action): sidestep turbo for windows tests

* chore(action): do not restore unhashed files

* chore(action): fix typo

* chore(action): fix typo

* chore(action): fix typo

* chore(action): fix artifacts paths

* chore(action): sync turbo cache

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-09 18:11:49 -06:00
Nate Moore
6b0e243b09 chore(actions): update actions 2021-12-07 12:29:30 -06:00
Nate Moore
e0414ac865
Cleanup Actions (#2088)
* chore: actions cleanup

* chore: make release messages more fun

* chore: fix casing

* chore(lint): Prettier fix

Co-authored-by: GitHub Action <github-action@users.noreply.github.com>
2021-12-02 14:04:11 -06:00
Fred K. Schott
0b2650d713
Update ci.yml (#2077) 2021-12-01 21:58:34 -06:00
Nate Moore
c6b5909b93 chore(action): fix changeset action 2021-11-29 15:36:46 -06:00
Nate Moore
6f77acc07b chore(actions): fix changeset 2021-11-29 15:23:08 -06:00
Nate Moore
4067151aec
Improve GitHub Actions (#2041)
* chore(actions): test new CI action

* chore(actions): switch action order

* chore(actions): update registry

* chore(actions): remove debug

* chore(actions): target all packages

* chore(actions): test artifacts

* chore(actions): try moving artifacts

* chore(actions): test moving

* chore(actions): test tar approach

* chore(actions): test tar approach

* chore(actions): use artifacts/packages before tar

* chore(actions): test mv -vn

* chore(actions): mkdir first

* chore(actions): how does tar work?

* chore(actions): so good at bash

* chore(actions): test matrix

* chore(actions): fix test matrix

* chore(actions): fix windows?

* chore(actions): fix windows?

* chore(actions): fix windows!

* chore(actions): fix windows!

* chore(actions): add lint

* chore(actions): add back old actions

* chore(actions): test notification action

* chore(actions): test notification action again

* chore(actions): fix extract action

* chore(actions): fix action?

* chore(actions): fix action?

* chore(actions): fix newlines

* chore(actions): test --production flag

* chore(actions): test --production flag for test

* chore(actions): add execa to production deps

* chore(actions): add cheerio to production deps

* chore(actions): add production deps for tested examples

* chore(actions): fix changelog action

* chore(actions): attempt to use --prefer-offline

* chore(actions): revert dependencies/devDependencies change

* chore(actions): update all actions

* chore(actions): add smoke test

* chore(actions): update changelog deps

* chore(actions): move notify script

* chore(actions): consolidate main scripts

* chore(actions): update changelog name

* chore(actions): update congratsbot

* chore(actions): update ci

* chore(actions): change lint/format strategy

* chore(actions): expose GITHUB_TOKEN to linter

* chore(actions): update lint

* chore(actions): enable autofix

* chore(actions): fetch-depth 0

* chore(actions): fix eslint extensions

* chore(actions): debug lint

* chore(actions): fix eslint args

* chore(actions): fix eslint?

* [ci] ESLint fix

* [ci] Prettier fix

* chore(actions): fix lint!

* chore(actions): cleanup comments

* chore(actions): fix lint

* chore(actions): lint astro only

* chore(actions): ignore pattern

* chore(actions): no_verify

* chore(actions): disable no verify

* chore(actions): debug status

* chore(actions): add concurrency

* chore(actions): add comment about concurrency

* chore(actions): make release dependent on lint

* chore(actions): move lint first

* chore(actions): run CI on PR or `main` only

* chore(actions): remove GPR publish step

* chore: add back old actions

* chore: revert package.json

* chore: improve changelog with GitHub info

* chore(actions): try pull_request_target

* debug lint

* debug lint

* debug lint

* try pull_request_target

* update pull_request_target perms

* update pull_request_target

* fix perms

* fix run?

* fix run?

* fix run? (part 3)

* fix run? (part 4)

* fix run? (part 5)

* fix run!

* fix run!!

* fix run!!!

* fix run!!!!

* fix run!!!!!

* fix run!!!!!!

* add comment about forks

Co-authored-by: GitHub Actions <actions-user@github.com>
2021-11-29 15:11:15 -06:00
Fred K. Schott
7476a92461
update repo URL (#1994) 2021-11-23 14:47:05 -08:00
Nate Moore
4a9c99c0a2
Improve PR labels (#1861)
* chore: improve PR labels

* chore: update action label
2021-11-17 14:31:58 -06:00
Nate Moore
1579dd7ff9
Automatically add PR labels (#1835)
* chore: add PR labeler

* chore: update labeler config

* chore: add action label

* refactor: use terse syntax
2021-11-15 13:56:00 -06:00
Nate Moore
5c44d07830 Revert "add mirror-template example"
This reverts commit 753d51ebb4.
2021-11-14 15:26:16 -06:00
Nate Moore
753d51ebb4 add mirror-template example 2021-11-14 15:25:45 -06:00
Drew Powers
5e0cb796a6
Enable macOS tests (#1774)
* Enable macOS tests

* Fix macOS tests
2021-11-11 10:24:48 -07:00
Drew Powers
c0d9ed832e
Enable Windows tests (#1712) 2021-11-02 08:13:36 -06:00
Drew Powers
d84bfe719a
🚀 Astro Next (0.21.0) (#1406)
* make astro-root uids unique

* Move Astro to Vite

* Update tests

* More test improvements

* fred fixes

* Update compiler, improve tests

* Fix runtime, improve code frame

* Add Markdown support

* Tycho fixes

* Fred fixes part 2

* Throw Error for WIP Features

* Improve testing suite

* Allow users to pass config to Vite

* Fix npm install (#1407)

* Automate publish on merge (#1408)

* Add NPM_TOKEN to publish script (#1409)

* Create .npmrc

* Clean up astro deps (#1411)

* Use new renderers (#1412)

* feat: update compiler (#1421)

* Try mocha/chai test runners (#1418)

* Try mocha/chai test runners

* Disable failing smoke test for now

Will revert when next can build docs

* Enable mocha in parallel mode

* Remove warning

* Update docs

* Fix Windows bug

* Fix internal imports

* Fix styles

* Fix CI release on merge to next (#1427)

* Fix logger locale parsing (#1439)

* fix(logger): locale parsing
* Fixed issue of compiler crash when "c" locale was encountered
* Return default locale if parsed locale is less than 2 chars long

* chore: add changeset

* Apply changes from #1387

* Add back in support for children (#1486)

* Add back in support for children

* Be more careful

* Enables most slot tests (#1494)

* Enables most slot tests

* Use spreadAttributes

* Add hydration to Solid renderer (#1479) (#1495)

* feat: add hydration to Solid renderer

* fix: intersection observer, move script to the end

Co-authored-by: Ryan Carniato <ryansolid@gmail.com>

* [next] support Astro.slots API (#1516)

* [next] Support for custom elements (#1528)

* [next] Support for custom elements

* Fix eslint errors

* eslint again

* [next] Fix Astro.fetchContent (#1480)

* fix Astro.fetchContent

* fix(fetchContent): cast type

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

* Move hydration to the compiler (#1547)

* Move hydration to the compiler

* Move extracting url, export to util fn

* Brings back astro-dynamic tests (#1548)

* Implements top-level Astro + Astro.resolve (#1556)

* Implements top-level Astro + Astro.resolve

* Fix linting

* [next] Update renderers (#1509)

* chore: update vite

* fix(renderers): point renderers to resolved server/client entrypoints

* Chore: Enable more tests with new compiler changes (#1558)

* [Next] `fetch` support (#1563)

* fix: polyfill fetch in every ssr scenario

* test(fetch): update fetch tests

* docs: update data fetching guide to remove caveats about `fetch` and isomorphic usage

* refactor: update regex for clarity

* Restructure (#1569)

* Upgrade to @astrojs/compiler 0.2.0 (#1584)

* Use Vite fork (#1585)

* Use Vite fork

* Fix linting

* Move Vite to vendor/ and add a license

* Fix linting

* Include the dist folder

* Update files config

* Markdown compilation (#1593)

* Markdown compilation

* remove debugger

* Gets lit hydration working (#1595)

* Gets Astro.fetchContent compilation to work (#1596)

* Gets Astro.fetchContent compilation to work

This fixes Astro.fetchContent so that we handle esbuild transforming the
name of the nested Astro call.

* Remove debugging

* Update the tests

* Remove another debugger

* Update Vite to latest (#1597)

* Add Prism syntax highlighting (#1598)

* Scoped styles with markdown (#1599)

* Bugfix: fix getStaticPaths() cache miss (#1602)

* Fix build order (#1609)

* Bugfix: restore build to get all paths earlier, when build. Same as main.

* Also re-add timings

* [next] blog example fully working (#1610)

* Add environment variables docs (Closes #873) (#1587)

* Added environment variables docs (Closes #873)

* Fixed prefix

* Remove numbered comments (#1611)

* Chore: remove numbered comments

* Clean up block comments

* comment style fixes (#1614)

* [next] Upgrade compiler (#1619)

* [next] Upgrade compiler

* Upgrade to latest compiler

* Fix the path to global css

* Removed debugger

* feat: add fragment support to vite-plugin-astro (#1600)

* [next] fix `.tsx` handling (#1620)

* fix: support tsx in JSX plugin

* fix: preserve JSX via esbuild, only use Babel for JSX compilation

* fix: handle upcoming Vite API for `ssr` flag

* [next] Add CSS preprocessing  (#1589)

* Add concept for style support in Astro

* Update style preprocessor to use new compiler

* fix: massage preprocessStyle type

* fix: @astrojs/compiler types

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

* fix issues in blog-multiple-authors (#1621)

* Move Sass to deps (#1622)

* Update renderer API for Vite (#1623)

* Update renderer API for Vite

* Fix lit-element tests

* Clean up comments

* Throw friendly error if renderer provides viteConfig in a bad format

* Fix changesets (#1628)

* Remove cheerio scanning from build stats (#1629)

* Minor change to jsxTransformOptions, update Renderer API docs (#1630)

* [next] docs example fully working (#1627)

* [next] docs example fully working

* Upgrade compiler to unlock docs

* Add `class:list` directive (#1612)

* Add support for class:list directive

The `class:list` directive serializes an expression of css class names. For React components, `className:list` is also supported.

* Remove `className` support and React tests

* Add tests for the absence of omitted classes

* fix: `define:vars` scoping for styles (#1632)

* feat: fix Debug component (#1633)

* [next] Fix `<Markdown>` component (#1631)

* fix: cleanup issues with <Markdown> component

* fix: fix `content` usage with Markdown

* [next] Fix `<Code>` component (#1635)

* fix: enable Code component

* test: update expect to chai format

* Fixes solid (#1634)

* Fixes solid

* Rename the test

* Rebase with next

* Skip solid test for now

* Add support for markdown plugins (#1650)

* Fix broken next release (#1652)

* Prevent passing  to Svelte components

* Prevent passing class to Vue components

* Add CSS injection, fix portfolio example (#1648)

* Fix portfolio example

* Add .pcss extension

* Update load ssr opts

* Update packages/astro/src/runtime/server/index.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>

* Fixes external HMR (#1654)

* Upgrade compiler version (#1655)

Fixes docs and blog examples

* Resolve renderers relative to the projectRoot (#1659)

* Template fixes (#1656)

* fix: dedupe hashes for identical islands (#1660)

* fix: scope `define:vars` to `:root` for `<style global>` (#1663)

* chore: update compiler to latest (#1664)

* [next] fix island hydration inside of `<Markdown>` (#1665)

* fix: create rehype plugin to smooth over island hydration bugs

* refactor: remove debug code

* chore: explain need for `rehypeIslands`

* Bugfix: renderer-lit missing files on npm (#1669)

* Force Vite to rebuild dependencies (#1670)

* [next] Add `preact/compat` renderer (#1668)

* feat: add preact/compat entry for `@astrojs/renderer-preact`

* Update index.js

* Bugfix: plugin-astro-fetch tries to append node-fetch to node-fetch (#1671)

* Fix Vite race condition (#1674)

* Fix with-nanostore deps (#1675)

Adds missing Solid renderer

* [next] Fix `resolveDependency` on Windows (#1666)

* fix: Windows issue with resolveDependency util

* chore: add comment

* Update CONTRIBUTING.md (#1677)

* Prevent scanning a user's deps (#1678)

* Prevent scanning a user's deps

* Remove unused things

* remove unused util

* Adding a changeset for the remark plugin

* Config changes needed for stater template (#1680)

This does 2 things:

1. Adds prismjs as a dep.
2. Adds shiki as an external.

* Next bugs (#1681)

* fix(#1679): hoisted <script> rendering

* fix(#1679): do not print global for styles, but do for scripts

* fix: update ObjectSet implementation

* fix: dedupe elements in sets

* [next] update compiler (#1683)

* chore: update compiler

* chore: update compiler (again)

* Fix Astro HMR bottleneck (#1684)

* Bugfix: JSX renderers can be declared in any order (#1686)

* chore: update compiler (#1690)

* Exclude lit-server from being optimized (#1691)

This should get the lit example working from `npm`.

* fix: exclude all renderer server entrypoints (#1692)

* chore: update compiler (#1705)

* fix: do not crash when Markdown has no content (#1702)

* feat: improve support for third-party React packages (#1701)

* Remove prism warning when no language is provided (#1703)

* Remove prism warning when no language is provided

* Add the plaintext language instead

* retry deploy

* chore: enter prerelease mode under `next` (#1707)

* Updates to the changesets (#1708)

* Updates to the changesets

* Adds a changeset for astro-prism

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Nate Moore <nate@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Pranav Karawale <52596591+obnoxiousnerd@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
Co-authored-by: AsyncBanana <58297401+AsyncBanana@users.noreply.github.com>
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-10-29 15:30:22 -04:00
Caleb Jasik
a0becd24b4
Only run .github/workflows/stats.yml locally, not on forks (#1549) 2021-10-14 08:07:47 -04:00
Elian ☕️
5ef1bf6e7d
Add Github Action to automatically push from main to latest when no changeset (#1529)
* Add CI for updates on main to latest

* Add folder checking on .changeset

* Check JSON value of changeset

* Update push script on action

* Update commit and push job
2021-10-11 15:56:50 -04:00
Joseph Yi
e4b0db9b12
Use setup-node action's caching (#1476)
* Use setup-node action's caching

* additional cleanup of caching boilerplate

Co-authored-by: Joseph Yi <joseph.yi@shift.com>
2021-10-02 23:28:50 -07:00
Fred K. Schott
cef644a8fc
Update issue.yml 2021-09-17 22:51:54 -07:00
Fred K. Schott
49456fcb1a Revert "fix bad ci paths"
This reverts commit c9bef50bc7.
2021-09-14 21:23:39 -07:00
Fred K. Schott
c9bef50bc7 fix bad ci paths 2021-09-14 17:17:09 -07:00
Fred K. Schott
d7b6e54810
fix outdated lockfile issue (#1357) 2021-09-13 15:34:40 -07:00
Fred K. Schott
287eee766f
Update issue.yml column name 2021-09-01 15:57:36 -07:00
Fred K. Schott
fba0446666 success: clean up issue.yml from testing 2021-09-01 11:33:09 -07:00
Fred K. Schott
be173d5f01 issue.yml testing 2021-09-01 11:32:08 -07:00
Fred K. Schott
8480103e3b issue.yml testing 2021-09-01 11:30:05 -07:00
Fred K. Schott
68d01a8103 fix bad project url in issue.yml 2021-09-01 11:29:10 -07:00
Fred K. Schott
5cb57a375a fix issue.yml syntax error 2021-09-01 11:27:29 -07:00
Fred K. Schott
53ffefcf43
add project assigner CI bot (#1291) 2021-09-01 09:53:42 -07:00
Fred K. Schott
2af9b29472
Fix congratsbot multiline issue (#1285)
* testing new congrats bot

if you see this, it did not work yet

* try including multiline message

line 2
line 3
2021-08-31 22:26:41 -07:00
Fred K. Schott
f14762bd12
wip (#1284) 2021-08-31 19:50:25 -07:00
Mihkel Eidast
44fb8ebcc4
Fix linter errors and warnings (#1218)
* fix lint issues, enable lint in ci

* add changeset
2021-08-24 15:50:24 -04:00
Marcus Otterström
c7bbb042b0
Make congratsbot not run in forks (#1145) 2021-08-17 22:19:25 -07:00
Fred K. Schott
2c0d0a7aa2 restrict smoke test to ubuntu@node14 2021-08-12 01:41:54 -07:00