chore: prepare releases & move to main

This commit is contained in:
Thomas Allmer
2022-08-10 20:40:09 +02:00
parent f9c8a20d19
commit 5226ab0150
30 changed files with 141 additions and 63 deletions

View File

@@ -0,0 +1,5 @@
---
'@mdjs/core': patch
---
Update `es-module-lexer` version.

View File

@@ -0,0 +1,6 @@
---
'@mdjs/mdjs-preview': patch
'@mdjs/mdjs-story': patch
---
Update lit version & add a server template for `@rocket/cli@0.20+`.

View File

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

View File

@@ -0,0 +1,5 @@
---
'@rocket/components': minor
---
Initial public beta version with multiple server renderable components based on [lit](https://lit.dev).

View File

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

View File

@@ -0,0 +1,6 @@
---
'@rocket/engine': minor
'@rocket/create': minor
---
Initial public beta version.

View File

@@ -0,0 +1,5 @@
---
'@rocket/spark': minor
---
Initial public beta version for `@rocket/cli` 0.20+

View File

@@ -1,11 +1,10 @@
> This project is in its BETA phase
<p align="center">
<img
width="60%"
src="./assets/logo.png"
alt="Rocket"
/>
<picture width="60%">
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/modernweb-dev/rocket/next/site/src/assets/rocket-logo-dark-with-text.svg">
<img alt="Rocket Logo" src="https://raw.githubusercontent.com/modernweb-dev/rocket/next/site/src/assets/rocket-logo-light-with-text.svg">
</picture>
</p>
<p align="center">
@@ -21,17 +20,17 @@
/></a>
<a href="https://open.vscode.dev/modernweb-dev/rocket"
><img
src="https://open.vscode.dev/badges/open-in-vscode.svg"
src="https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc"
alt="Open in VS Code"
/></a>
</p>
<p align="center">
<a href="https://next.rocket.modern-web.dev">Website</a>
<a href="https://rocket.modern-web.dev">Website</a>
·
<a href="https://next.rocket.modern-web.dev/guides/">Guides</a>
<a href="https://rocket.modern-web.dev/doc/">Documentation</a>
·
<a href="https://next.rocket.modern-web.dev/docs/">Documentation</a>
<a href="https://rocket.modern-web.dev/chat">Discord Community</a>
</p>
<h1></h1>
@@ -43,7 +42,7 @@
- **Small:** No overblown tools or frontend frameworks, add JavaScript and/or Web Components only on pages where needed..
<p align="center">
<a href="https://next.rocket.modern-web.dev/guides/"><strong>Explore the Rocket Guides&nbsp;&nbsp;▶</strong></a>
<a href="https://rocket.modern-web.dev/docs/setup/getting-started/"><strong>Getting Started With Rocket&nbsp;&nbsp;▶</strong></a>
</p>
## The Goal for Rocket
@@ -55,21 +54,21 @@ You can still tweak every detail of every underlying tool that gets used.
Rocket is part of the [Modern Web Family](https://twitter.com/modern_web_dev).
<p align="center">
<a href="https://rocket.modern-web.dev/chat"><strong>Join our Discord Community&nbsp;&nbsp;▶</strong></a>
</p>
## Quick Start
```
mkdir test-rocket
cd test-rocket
npm init -y
npm i @rocket/cli@alpha @rocket/launch@alpha @11ty/eleventy-cache-assets typescript
npx rocket init
npx @rocket/create@latest
```
## 🤝 Contributing
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).
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. 👋
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. 👋
### Financial Contributors

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -11,8 +11,8 @@
"start": "NODE_DEBUG=engine:rendering rocket start --open"
},
"devDependencies": {
"@rocket/cli": "^0.20.0-alpha.17",
"@rocket/engine": "^0.1.0-alpha.23",
"@rocket/cli": "^0.19.0",
"@rocket/engine": "^0.1.0",
"@webcomponents/template-shadowroot": "^0.1.0",
"lit": "^2.2.5"
},

View File

@@ -16,8 +16,8 @@
"start": "NODE_DEBUG=engine:rendering rocket start --open"
},
"devDependencies": {
"@rocket/cli": "^0.20.0-alpha.17",
"@rocket/engine": "^0.1.0-alpha.23",
"@rocket/cli": "^0.19.0",
"@rocket/engine": "^0.1.0",
"lit": "^2.2.5"
},
"@rocket/template-name": "Blog Starter"

View File

@@ -11,8 +11,8 @@
"start": "NODE_DEBUG=engine:rendering rocket start --open"
},
"devDependencies": {
"@rocket/cli": "^0.20.0-alpha.17",
"@rocket/engine": "^0.1.0-alpha.23",
"@rocket/cli": "^0.19.0",
"@rocket/engine": "^0.1.0",
"lit": "^2.2.5"
},
"@rocket/template-name": "Minimal Starter"

View File

@@ -12,8 +12,8 @@
},
"devDependencies": {
"@portabletext/to-html": "^1.0.3",
"@rocket/cli": "^0.20.0-alpha.15",
"@rocket/engine": "^0.1.0-alpha.21",
"@rocket/cli": "^0.19.0",
"@rocket/engine": "^0.1.0",
"@sanity/block-content-to-markdown": "^0.0.5",
"@sanity/client": "^3.1.0",
"@sanity/image-url": "^1.0.1",

View File

@@ -1,5 +1,5 @@
{
"name": "landing-theme-spark",
"name": "rocket-landing-theme-spark",
"version": "0.0.1",
"private": true,
"description": "A landing page based on the spark theme",
@@ -11,10 +11,10 @@
"start": "NODE_DEBUG=engine:rendering rocket start --open"
},
"devDependencies": {
"@rocket/cli": "^0.20.0-alpha.17",
"@rocket/components": "^0.1.0-alpha.1",
"@rocket/engine": "^0.1.0-alpha.23",
"@rocket/spark": "^0.1.0-alpha.1",
"@rocket/cli": "^0.19.0",
"@rocket/components": "^0.1.0",
"@rocket/engine": "^0.1.0",
"@rocket/spark": "^0.1.0",
"lit": "^2.2.5"
},
"@rocket/template-name": "Landing Page (@rocket/spark Theme)",

View File

@@ -11,10 +11,10 @@
"start": "NODE_DEBUG=engine:rendering rocket start --open"
},
"devDependencies": {
"@rocket/cli": "^0.20.0-alpha.17",
"@rocket/engine": "^0.1.0-alpha.23",
"@rocket/launch": "^0.20.0-alpha.7",
"@rocket/search": "^0.6.0-alpha.0",
"@rocket/cli": "^0.19.0",
"@rocket/engine": "^0.1.0",
"@rocket/launch": "^0.20.0",
"@rocket/search": "^0.6.0",
"lit": "^2.2.5"
},
"@rocket/template-name": "Documentation Website (@rocket/launch Theme)",

38
packages/cli/MIGRATION.md Normal file
View File

@@ -0,0 +1,38 @@
# Migration
## From 0.10.x to 0.20.x
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.
Most of the work however mostly applies if you adjusted templates/layouts or created your own presets/plugins.
Especially for markdown based content not so much changed.
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.
e.g.
👉 `docs/about-us/company/location.md`
```md
# About Us >> Company >> Locations || 20
```
becomes
👉 `docs/about-us/company/20--location.rocket.md`
```md
# Location
```
This task can be automated by
1. update to latest `@rocket/cli`
2. rename `docs` to `site/pages`
3. run `npx rocket upgrade`
This however will only extract the navigation data and rename the files.
To fully migrate you need to setup some files according to the [project structure](https://rocket.modern-web.dev/docs/basics/project-structure/).
At the minium a `site/pages/recursive.data.js` to define the default template.
If you need more information or help be sure to check out our [discord](https://discord.gg/sTdpM2rkKJ) community.

View File

@@ -1,6 +1,6 @@
{
"name": "@rocket/cli",
"version": "0.20.0-alpha.17",
"version": "0.19.0",
"publishConfig": {
"access": "public"
},
@@ -53,7 +53,7 @@
],
"dependencies": {
"@rocket/building-rollup": "^0.4.0",
"@rocket/engine": "^0.1.0-alpha.7",
"@rocket/engine": "^0.1.0",
"@web/rollup-plugin-copy": "^0.3.0",
"colorette": "^2.0.16",
"commander": "^9.0.0",

View File

@@ -24,7 +24,7 @@ export const openGraphLayout = data => html`
</head>
<body>
<h1>${pageTree.getPage(data.sourceRelativeFilePath)?.model?.name}</h1>
<footer>Generated by <a href="https://next.rocket.modern-web.dev/">Rocket</a></footer>
<footer>Generated by <a href="https://rocket.modern-web.dev/">Rocket</a></footer>
</body>
</html>
`;

View File

@@ -24,7 +24,7 @@ export const openGraphLayout = data => html`
</head>
<body>
<h1>${pageTree.getPage(data.sourceRelativeFilePath)?.model?.name}</h1>
<footer>Generated by <a href="https://next.rocket.modern-web.dev/">Rocket</a></footer>
<footer>Generated by <a href="https://rocket.modern-web.dev/">Rocket</a></footer>
</body>
</html>
`;

View File

@@ -0,0 +1 @@
# Rocket Components

View File

@@ -1,6 +1,6 @@
{
"name": "@rocket/components",
"version": "0.1.0-alpha.7",
"version": "0.1.0",
"publishConfig": {
"access": "public"
},

View File

@@ -9,7 +9,7 @@ import degit from 'degit';
import { generateGithubActionsDeployment } from './deployment-generator.js';
const EXAMPLES_PATH = `modernweb-dev/rocket/examples/`;
const TARGET_BRANCH = `#next`;
const TARGET_BRANCH = `#main`;
const program = new Command();
const choices = await readFile(new URL('./choices.json', import.meta.url)).then(res =>
@@ -53,7 +53,7 @@ export class CreateCli {
` ( | ) to search or file a new issue`,
` (( )) `,
` (( : )) Follow us: https://twitter.com/modern_web_dev`,
` (( )) Chat with us: https://next.rocket.modern-web.dev/chat`,
` (( )) Chat with us: https://rocket.modern-web.dev/chat`,
` (( )) `,
` ( ) ${gray('Notes: You can exit any time with Ctrl+C or Esc')}`,
` . ${gray('A new folder "rocket-<template name>" will be created')}`,

View File

@@ -1,6 +1,6 @@
{
"name": "@rocket/engine",
"version": "0.1.0-alpha.27",
"version": "0.1.0",
"publishConfig": {
"access": "public"
},

View File

@@ -1,6 +1,6 @@
{
"name": "@rocket/launch",
"version": "0.20.0-alpha.9",
"version": "0.20.0",
"publishConfig": {
"access": "public"
},
@@ -46,9 +46,9 @@
"preset"
],
"dependencies": {
"@rocket/cli": "^0.20.0-alpha.10",
"@rocket/components": "^0.1.0-alpha.4",
"@rocket/engine": "^0.1.0-alpha.10",
"@rocket/cli": "^0.19.0",
"@rocket/components": "^0.1.0",
"@rocket/engine": "^0.1.0",
"@webcomponents/template-shadowroot": "^0.1.0",
"lit": "^2.2.5",
"workbox-window": "^6.1.5"

View File

@@ -1,6 +1,6 @@
{
"name": "@rocket/search",
"version": "0.6.0-alpha.1",
"version": "0.6.0",
"publishConfig": {
"access": "public"
},
@@ -44,13 +44,13 @@
"search"
],
"dependencies": {
"@rocket/engine": "^0.1.0-alpha.22",
"@rocket/engine": "^0.1.0",
"minisearch": "^3.0.2",
"plugins-manager": "^0.3.0",
"sax-wasm": "^2.0.0"
},
"devDependencies": {
"@rocket/cli": "^0.20.0-alpha.16"
"@rocket/cli": "^0.19.0"
},
"customElements": "custom-elements.json"
}

View File

@@ -1,6 +1,6 @@
{
"name": "@rocket/spark",
"version": "0.1.0-alpha.6",
"version": "0.1.0",
"publishConfig": {
"access": "public"
},
@@ -40,8 +40,8 @@
"ssg"
],
"dependencies": {
"@rocket/components": "^0.1.0-alpha.1",
"@rocket/engine": "^0.1.0-alpha.18",
"@rocket/components": "^0.1.0",
"@rocket/engine": "^0.1.0",
"lit": "^2.2.5"
},
"devDependencies": {},

View File

@@ -459,7 +459,7 @@ This means that
Wanna know more? 🤔
Visit the WIP homepage
https://next.rocket.modern-web.dev/
https://rocket.modern-web.dev/
---
@@ -467,7 +467,7 @@ https://next.rocket.modern-web.dev/
If you have any questions, comments or suggestions, please open an issue, create a pull request or join us on Discord or Slack.
https://next.rocket.modern-web.dev/chat
https://rocket.modern-web.dev/chat
---
@@ -493,7 +493,7 @@ npx @rocket/create@latest
( | ) to search or file a new issue
(( ))
(( : )) Follow us: https://twitter.com/modern_web_dev
(( )) Chat with us: https://next.rocket.modern-web.dev/chat
(( )) Chat with us: https://rocket.modern-web.dev/chat
(( ))
( ) Notes: You can exit any time with Ctrl+C or Esc
. A new folder "rocket-<template name>" will be created
@@ -517,7 +517,7 @@ For example the Landing Page
➡️ Rearrange or reuse those components in any way you want <br>
See live demo
https://next.rocket.modern-web.dev/presets/spark/demo/
https://rocket.modern-web.dev/presets/spark/demo/
---

View File

@@ -40,7 +40,7 @@ export const authors = [thomas];
We now have support for Open Graph Images out of the box 💪
Let's dive in and see what we can do with it!
https://next.rocket.modern-web.dev/docs/guides/social-media/
https://rocket.modern-web.dev/docs/guides/social-media/
---

View File

@@ -397,7 +397,7 @@ websites 🎉
Go check it out
https://next.rocket.modern-web.dev/docs/basics/hydration/
https://rocket.modern-web.dev/docs/basics/hydration/
---
@@ -425,7 +425,7 @@ npx @rocket/create@latest
( | ) to search or file a new issue
(( ))
(( : )) Follow us: https://twitter.com/modern_web_dev
(( )) Chat with us: https://next.rocket.modern-web.dev/chat
(( )) Chat with us: https://rocket.modern-web.dev/chat
(( ))
( ) Notes: You can exit any time with Ctrl+C or Esc
. A new folder "rocket-<template name>" will be created

View File

@@ -2595,11 +2595,6 @@
portfinder "^1.0.28"
source-map "^0.7.3"
"@webcomponents/scoped-custom-element-registry@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@webcomponents/scoped-custom-element-registry/-/scoped-custom-element-registry-0.0.3.tgz#774591a886b0b0e4914717273ba53fd8d5657522"
integrity sha512-lpSzgDCGbM99dytb3+J3Suo4+Bk1E13MPnWB42JK8GwxSAxFz+tC7TTv2hhDSIE2IirGNKNKCf3m08ecu6eAsQ==
"@webcomponents/shadycss@^1.11.0":
version "1.11.0"
resolved "https://registry.yarnpkg.com/@webcomponents/shadycss/-/shadycss-1.11.0.tgz#73e289996c002d8be694cd3be0e83c46ad25e7e0"