Skip to content

Commit 5226ab0

Browse files
committed
chore: prepare releases & move to main
1 parent f9c8a20 commit 5226ab0

File tree

30 files changed

+141
-63
lines changed

30 files changed

+141
-63
lines changed

.changeset/new-forks-report.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@mdjs/core': patch
3+
---
4+
5+
Update `es-module-lexer` version.

.changeset/new-forks-report2.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@mdjs/mdjs-preview': patch
3+
'@mdjs/mdjs-story': patch
4+
---
5+
6+
Update lit version & add a server template for `@rocket/[email protected]+`.

.changeset/old-falcons-sin.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@rocket/launch': minor
3+
'@rocket/search': minor
4+
---
5+
6+
BREAKING CHANGE: New version built for @rocket/engine and @rocket/cli 0.20+
7+
8+
For more information see the [migration guide](https://github.com/modernweb-dev/rocket/blob/next/packages/cli/MIGRATION.md).

.changeset/sharp-dingos-arrive.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket/components': minor
3+
---
4+
5+
Initial public beta version with multiple server renderable components based on [lit](https://lit.dev).

.changeset/three-eagles-notice.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@rocket/cli': minor
3+
---
4+
5+
BREAKING CHANGE: Complete rewrite introducing `@rocket/engine`
6+
Introduces class based templates, server side rendering of web components and a file based routing.
7+
8+
For more information see the [migration guide](https://github.com/modernweb-dev/rocket/blob/next/packages/cli/MIGRATION.md).
9+
10+
The [legacy documentation](https://legacy.rocket.modern-web.dev/) is still available.

.changeset/three-eagles-notice2.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@rocket/engine': minor
3+
'@rocket/create': minor
4+
---
5+
6+
Initial public beta version.

.changeset/tiny-actors-flow.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket/spark': minor
3+
---
4+
5+
Initial public beta version for `@rocket/cli` 0.20+

README.md

+15-16
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
> This project is in its BETA phase
22
33
<p align="center">
4-
<img
5-
width="60%"
6-
src="./assets/logo.png"
7-
alt="Rocket"
8-
/>
4+
<picture width="60%">
5+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/modernweb-dev/rocket/next/site/src/assets/rocket-logo-dark-with-text.svg">
6+
<img alt="Rocket Logo" src="https://raw.githubusercontent.com/modernweb-dev/rocket/next/site/src/assets/rocket-logo-light-with-text.svg">
7+
</picture>
98
</p>
109

1110
<p align="center">
@@ -21,17 +20,17 @@
2120
/></a>
2221
<a href="https://open.vscode.dev/modernweb-dev/rocket"
2322
><img
24-
src="https://open.vscode.dev/badges/open-in-vscode.svg"
23+
src="https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc"
2524
alt="Open in VS Code"
2625
/></a>
2726
</p>
2827

2928
<p align="center">
30-
<a href="https://next.rocket.modern-web.dev">Website</a>
29+
<a href="https://rocket.modern-web.dev">Website</a>
3130
·
32-
<a href="https://next.rocket.modern-web.dev/guides/">Guides</a>
31+
<a href="https://rocket.modern-web.dev/doc/">Documentation</a>
3332
·
34-
<a href="https://next.rocket.modern-web.dev/docs/">Documentation</a>
33+
<a href="https://rocket.modern-web.dev/chat">Discord Community</a>
3534
</p>
3635

3736
<h1></h1>
@@ -43,7 +42,7 @@
4342
- **Small:** No overblown tools or frontend frameworks, add JavaScript and/or Web Components only on pages where needed..
4443

4544
<p align="center">
46-
<a href="https://next.rocket.modern-web.dev/guides/"><strong>Explore the Rocket Guides&nbsp;&nbsp;▶</strong></a>
45+
<a href="https://rocket.modern-web.dev/docs/setup/getting-started/"><strong>Getting Started With Rocket&nbsp;&nbsp;▶</strong></a>
4746
</p>
4847

4948
## The Goal for Rocket
@@ -55,21 +54,21 @@ You can still tweak every detail of every underlying tool that gets used.
5554

5655
Rocket is part of the [Modern Web Family](https://twitter.com/modern_web_dev).
5756

57+
<p align="center">
58+
<a href="https://rocket.modern-web.dev/chat"><strong>Join our Discord Community&nbsp;&nbsp;▶</strong></a>
59+
</p>
60+
5861
## Quick Start
5962

6063
```
61-
mkdir test-rocket
62-
cd test-rocket
63-
npm init -y
64-
npm i @rocket/cli@alpha @rocket/launch@alpha @11ty/eleventy-cache-assets typescript
65-
npx rocket init
64+
npx @rocket/create@latest
6665
```
6766

6867
## 🤝 Contributing
6968

7069
We are always looking for contributors of all skill levels! If you're looking to ease your way into the project, try out a [good first issue](https://github.com/modernweb-dev/rocket/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
7170

72-
If you are interested in helping contribute to Modern Web, please take a look at our [Contributing Guide](https://github.com/modernweb-dev/rocket/blob/next/CONTRIBUTING.md). Also, feel free to drop into [slack](https://next.rocket.modern-web.dev/about/slack/) and say hi. 👋
71+
If you are interested in helping contribute to Modern Web, please take a look at our [Contributing Guide](https://github.com/modernweb-dev/rocket/blob/next/CONTRIBUTING.md). Also, feel free to drop into [discord](https://rocket.modern-web.dev/chat) and say hi. 👋
7372

7473
### Financial Contributors
7574

assets/logo.png

-10.1 KB
Binary file not shown.

examples/01-hydration-starter/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"start": "NODE_DEBUG=engine:rendering rocket start --open"
1212
},
1313
"devDependencies": {
14-
"@rocket/cli": "^0.20.0-alpha.17",
15-
"@rocket/engine": "^0.1.0-alpha.23",
14+
"@rocket/cli": "^0.19.0",
15+
"@rocket/engine": "^0.1.0",
1616
"@webcomponents/template-shadowroot": "^0.1.0",
1717
"lit": "^2.2.5"
1818
},

examples/02-blog-starter/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"start": "NODE_DEBUG=engine:rendering rocket start --open"
1717
},
1818
"devDependencies": {
19-
"@rocket/cli": "^0.20.0-alpha.17",
20-
"@rocket/engine": "^0.1.0-alpha.23",
19+
"@rocket/cli": "^0.19.0",
20+
"@rocket/engine": "^0.1.0",
2121
"lit": "^2.2.5"
2222
},
2323
"@rocket/template-name": "Blog Starter"

examples/03-minimal-starter/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"start": "NODE_DEBUG=engine:rendering rocket start --open"
1212
},
1313
"devDependencies": {
14-
"@rocket/cli": "^0.20.0-alpha.17",
15-
"@rocket/engine": "^0.1.0-alpha.23",
14+
"@rocket/cli": "^0.19.0",
15+
"@rocket/engine": "^0.1.0",
1616
"lit": "^2.2.5"
1717
},
1818
"@rocket/template-name": "Minimal Starter"

examples/04-sanity-minimal-starter/frontend/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
},
1313
"devDependencies": {
1414
"@portabletext/to-html": "^1.0.3",
15-
"@rocket/cli": "^0.20.0-alpha.15",
16-
"@rocket/engine": "^0.1.0-alpha.21",
15+
"@rocket/cli": "^0.19.0",
16+
"@rocket/engine": "^0.1.0",
1717
"@sanity/block-content-to-markdown": "^0.0.5",
1818
"@sanity/client": "^3.1.0",
1919
"@sanity/image-url": "^1.0.1",

examples/50-landing-theme-spark/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "landing-theme-spark",
2+
"name": "rocket-landing-theme-spark",
33
"version": "0.0.1",
44
"private": true,
55
"description": "A landing page based on the spark theme",
@@ -11,10 +11,10 @@
1111
"start": "NODE_DEBUG=engine:rendering rocket start --open"
1212
},
1313
"devDependencies": {
14-
"@rocket/cli": "^0.20.0-alpha.17",
15-
"@rocket/components": "^0.1.0-alpha.1",
16-
"@rocket/engine": "^0.1.0-alpha.23",
17-
"@rocket/spark": "^0.1.0-alpha.1",
14+
"@rocket/cli": "^0.19.0",
15+
"@rocket/components": "^0.1.0",
16+
"@rocket/engine": "^0.1.0",
17+
"@rocket/spark": "^0.1.0",
1818
"lit": "^2.2.5"
1919
},
2020
"@rocket/template-name": "Landing Page (@rocket/spark Theme)",

examples/51-docs-theme-launch/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"start": "NODE_DEBUG=engine:rendering rocket start --open"
1212
},
1313
"devDependencies": {
14-
"@rocket/cli": "^0.20.0-alpha.17",
15-
"@rocket/engine": "^0.1.0-alpha.23",
16-
"@rocket/launch": "^0.20.0-alpha.7",
17-
"@rocket/search": "^0.6.0-alpha.0",
14+
"@rocket/cli": "^0.19.0",
15+
"@rocket/engine": "^0.1.0",
16+
"@rocket/launch": "^0.20.0",
17+
"@rocket/search": "^0.6.0",
1818
"lit": "^2.2.5"
1919
},
2020
"@rocket/template-name": "Documentation Website (@rocket/launch Theme)",

packages/cli/MIGRATION.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Migration
2+
3+
## From 0.10.x to 0.20.x
4+
5+
As 0.20.x is a rewrite of all the core logic which meant moving from eleventy to class based templates, server side rendering of web components and a file based routing this migration requires manual work.
6+
7+
Most of the work however mostly applies if you adjusted templates/layouts or created your own presets/plugins.
8+
9+
Especially for markdown based content not so much changed.
10+
The biggest change is that the routing is now [file based](https://rocket.modern-web.dev/docs/basics/routing/) which means that your page structure is no longer in the title or frontmatter.
11+
12+
e.g.
13+
14+
👉 `docs/about-us/company/location.md`
15+
16+
```md
17+
# About Us >> Company >> Locations || 20
18+
```
19+
20+
becomes
21+
22+
👉 `docs/about-us/company/20--location.rocket.md`
23+
24+
```md
25+
# Location
26+
```
27+
28+
This task can be automated by
29+
30+
1. update to latest `@rocket/cli`
31+
2. rename `docs` to `site/pages`
32+
3. run `npx rocket upgrade`
33+
34+
This however will only extract the navigation data and rename the files.
35+
To fully migrate you need to setup some files according to the [project structure](https://rocket.modern-web.dev/docs/basics/project-structure/).
36+
At the minium a `site/pages/recursive.data.js` to define the default template.
37+
38+
If you need more information or help be sure to check out our [discord](https://discord.gg/sTdpM2rkKJ) community.

packages/cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocket/cli",
3-
"version": "0.20.0-alpha.17",
3+
"version": "0.19.0",
44
"publishConfig": {
55
"access": "public"
66
},
@@ -53,7 +53,7 @@
5353
],
5454
"dependencies": {
5555
"@rocket/building-rollup": "^0.4.0",
56-
"@rocket/engine": "^0.1.0-alpha.7",
56+
"@rocket/engine": "^0.1.0",
5757
"@web/rollup-plugin-copy": "^0.3.0",
5858
"colorette": "^2.0.16",
5959
"commander": "^9.0.0",

packages/cli/test-node/fixtures/04-open-graph/01-generate-image-and-inject-meta/site/pages/local.data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const openGraphLayout = data => html`
2424
</head>
2525
<body>
2626
<h1>${pageTree.getPage(data.sourceRelativeFilePath)?.model?.name}</h1>
27-
<footer>Generated by <a href="https://next.rocket.modern-web.dev/">Rocket</a></footer>
27+
<footer>Generated by <a href="https://rocket.modern-web.dev/">Rocket</a></footer>
2828
</body>
2929
</html>
3030
`;

packages/cli/test-node/fixtures/04-open-graph/02-multiple-pages/site/pages/recursive.data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const openGraphLayout = data => html`
2424
</head>
2525
<body>
2626
<h1>${pageTree.getPage(data.sourceRelativeFilePath)?.model?.name}</h1>
27-
<footer>Generated by <a href="https://next.rocket.modern-web.dev/">Rocket</a></footer>
27+
<footer>Generated by <a href="https://rocket.modern-web.dev/">Rocket</a></footer>
2828
</body>
2929
</html>
3030
`;

packages/components/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Rocket Components

packages/components/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocket/components",
3-
"version": "0.1.0-alpha.7",
3+
"version": "0.1.0",
44
"publishConfig": {
55
"access": "public"
66
},

packages/create/src/CreateCli.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import degit from 'degit';
99
import { generateGithubActionsDeployment } from './deployment-generator.js';
1010

1111
const EXAMPLES_PATH = `modernweb-dev/rocket/examples/`;
12-
const TARGET_BRANCH = `#next`;
12+
const TARGET_BRANCH = `#main`;
1313
const program = new Command();
1414

1515
const choices = await readFile(new URL('./choices.json', import.meta.url)).then(res =>
@@ -53,7 +53,7 @@ export class CreateCli {
5353
` ( | ) to search or file a new issue`,
5454
` (( )) `,
5555
` (( : )) Follow us: https://twitter.com/modern_web_dev`,
56-
` (( )) Chat with us: https://next.rocket.modern-web.dev/chat`,
56+
` (( )) Chat with us: https://rocket.modern-web.dev/chat`,
5757
` (( )) `,
5858
` ( ) ${gray('Notes: You can exit any time with Ctrl+C or Esc')}`,
5959
` . ${gray('A new folder "rocket-<template name>" will be created')}`,

packages/engine/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocket/engine",
3-
"version": "0.1.0-alpha.27",
3+
"version": "0.1.0",
44
"publishConfig": {
55
"access": "public"
66
},

packages/launch/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocket/launch",
3-
"version": "0.20.0-alpha.9",
3+
"version": "0.20.0",
44
"publishConfig": {
55
"access": "public"
66
},
@@ -46,9 +46,9 @@
4646
"preset"
4747
],
4848
"dependencies": {
49-
"@rocket/cli": "^0.20.0-alpha.10",
50-
"@rocket/components": "^0.1.0-alpha.4",
51-
"@rocket/engine": "^0.1.0-alpha.10",
49+
"@rocket/cli": "^0.19.0",
50+
"@rocket/components": "^0.1.0",
51+
"@rocket/engine": "^0.1.0",
5252
"@webcomponents/template-shadowroot": "^0.1.0",
5353
"lit": "^2.2.5",
5454
"workbox-window": "^6.1.5"

packages/search/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocket/search",
3-
"version": "0.6.0-alpha.1",
3+
"version": "0.6.0",
44
"publishConfig": {
55
"access": "public"
66
},
@@ -44,13 +44,13 @@
4444
"search"
4545
],
4646
"dependencies": {
47-
"@rocket/engine": "^0.1.0-alpha.22",
47+
"@rocket/engine": "^0.1.0",
4848
"minisearch": "^3.0.2",
4949
"plugins-manager": "^0.3.0",
5050
"sax-wasm": "^2.0.0"
5151
},
5252
"devDependencies": {
53-
"@rocket/cli": "^0.20.0-alpha.16"
53+
"@rocket/cli": "^0.19.0"
5454
},
5555
"customElements": "custom-elements.json"
5656
}

presets/spark/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocket/spark",
3-
"version": "0.1.0-alpha.6",
3+
"version": "0.1.0",
44
"publishConfig": {
55
"access": "public"
66
},
@@ -40,8 +40,8 @@
4040
"ssg"
4141
],
4242
"dependencies": {
43-
"@rocket/components": "^0.1.0-alpha.1",
44-
"@rocket/engine": "^0.1.0-alpha.18",
43+
"@rocket/components": "^0.1.0",
44+
"@rocket/engine": "^0.1.0",
4545
"lit": "^2.2.5"
4646
},
4747
"devDependencies": {},

0 commit comments

Comments
 (0)