Skip to content

Commit

Permalink
feat(server-islands): New package with basic utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryuni committed Aug 28, 2024
1 parent 125d732 commit 4fa5bfa
Show file tree
Hide file tree
Showing 74 changed files with 3,812 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-snakes-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@inox-tools/server-islands': minor
---

Implement the base context for Server Islands and future utilities
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ workspace:

## PACKAGES

pkg/server-islands:
- 'packages/server-islands/**'

pkg/request-nanostores:
- 'packages/request-nanostores/**'

Expand Down
5 changes: 5 additions & 0 deletions examples/server-islands/.astro/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"_variables": {
"lastUpdateCheck": 1724807478271
}
}
1 change: 1 addition & 0 deletions examples/server-islands/.astro/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="astro/client" />
16 changes: 16 additions & 0 deletions examples/server-islands/astro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from 'astro/config';
import nodejs from '@astrojs/node';
import react from '@astrojs/react';
import tailwind from '@astrojs/tailwind';
import serverIslandTools from '@inox-tools/server-islands';

// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: nodejs({ mode: 'standalone' }),
integrations: [react(), tailwind({ applyBaseStyles: false }), serverIslandTools()],
devToolbar: { enabled: false },
experimental: {
serverIslands: true,
},
});
31 changes: 31 additions & 0 deletions examples/server-islands/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@example/server-islands",
"private": true,
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"devDependencies": {
"@astrojs/node": "^8.3.3",
"@astrojs/react": "^3.6.2",
"@astrojs/tailwind": "^5.1.0",
"@fortawesome/fontawesome-free": "^6.6.0",
"@tailwindcss/forms": "^0.5.7",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "^4.14.5",
"postcss": "^8.4.41",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwindcss": "^3.4.10"
},
"dependencies": {
"@astrojs/check": "^0.9.3",
"@inox-tools/server-islands": "workspace:^",
"typescript": "^5.5.4"
}
}
Loading

0 comments on commit 4fa5bfa

Please sign in to comment.