Skip to content

Commit

Permalink
First fully working version
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Nov 5, 2024
1 parent 1851e98 commit b60c78c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 11 deletions.
22 changes: 14 additions & 8 deletions PACKAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,31 @@ Core packages must not depend on any other `@plone/*` package, with only one exc
They must be published and bundled in a traditional (transpiled) way.
The bundle of these packages must work on both CommonJS and ECMAScript Module (ESM) environments.

## Feature packages

- `@plone/contents`


## Utility packages

- `@plone/blocks`
- `@plone/providers`
- `@plone/helpers`
- `@plone/drivers`
- `@plone/rsc`


### Rules

Utility packages can depend on core packages and other utility packages.
They must be published in a traditional way, bundled.
This bundle must work on both CommonJS and ESM environments.

## Feature packages

- `@plone/blocks`
- `@plone/slots`
- `@plone/contents`

### Rules

Feature packages (or add-on packages) can depend on any other package.
They must not be transpiled, but as source.
They must provide a default configuration registry loader as default main entry point export.
They must be able to be loaded as any other add-on.

## Development utility packages

Expand All @@ -55,7 +61,7 @@ They contain utilities that are useful for the development of a Volto project.
Some of them are released:

- `@plone/scripts`
- `@plone/generator-volto`
- `@plone/generator-volto` (deprecated)

Some of them are used by the build, and separated in packages for convenience.

Expand Down
7 changes: 5 additions & 2 deletions apps/rr7/app/routes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import type { RouteConfig } from '@react-router/dev/routes';
import { index } from '@react-router/dev/routes';
import { index, route } from '@react-router/dev/routes';

export const routes: RouteConfig = [index('routes/home.tsx')];
export const routes: RouteConfig = [
index('routes/home.tsx'),
route('*', 'routes/$.tsx'),
];
2 changes: 2 additions & 0 deletions apps/rr7/app/routes/$.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Content, { loader } from './home';
export { loader, Content as default };
13 changes: 12 additions & 1 deletion docs/source/contributing/developing-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ Volto has the following folder structure.
├─ apps/
│ ├─ plone
│ ├─ nextjs
│ └─ remix
│ ├─ remix
│ └─ rr7
├─ packages/
│ ├─ volto
│ ├─ client
Expand Down Expand Up @@ -399,6 +400,16 @@ You can try it out using the following command.
pnpm --filter plone-remix dev
```

### React Router 7

This frontend is a proof of concept using React Router 7 with Plone.

You can try it out using the following command.

```shell
pnpm --filter plone-rr7 dev
```

### Vite build (client only)

This frontend is a proof of concept using a custom client build based in Vite with Plone.
Expand Down

0 comments on commit b60c78c

Please sign in to comment.