Skip to content

Commit

Permalink
chore: prepare releases & move to main
Browse files Browse the repository at this point in the history
  • Loading branch information
daKmoR committed Aug 11, 2022
1 parent f9c8a20 commit 5226ab0
Show file tree
Hide file tree
Showing 30 changed files with 141 additions and 63 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-forks-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mdjs/core': patch
---

Update `es-module-lexer` version.
6 changes: 6 additions & 0 deletions .changeset/new-forks-report2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@mdjs/mdjs-preview': patch
'@mdjs/mdjs-story': patch
---

Update lit version & add a server template for `@rocket/[email protected]+`.
8 changes: 8 additions & 0 deletions .changeset/old-falcons-sin.md
Original file line number Diff line number Diff line change
@@ -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).
5 changes: 5 additions & 0 deletions .changeset/sharp-dingos-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket/components': minor
---

Initial public beta version with multiple server renderable components based on [lit](https://lit.dev).
10 changes: 10 additions & 0 deletions .changeset/three-eagles-notice.md
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 6 additions & 0 deletions .changeset/three-eagles-notice2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@rocket/engine': minor
'@rocket/create': minor
---

Initial public beta version.
5 changes: 5 additions & 0 deletions .changeset/tiny-actors-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket/spark': minor
---

Initial public beta version for `@rocket/cli` 0.20+
31 changes: 15 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -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">
Expand All @@ -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>
Expand All @@ -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
Expand All @@ -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

Expand Down
Binary file removed assets/logo.png
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/01-hydration-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/02-blog-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions examples/03-minimal-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions examples/04-sanity-minimal-starter/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions examples/50-landing-theme-spark/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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)",
Expand Down
8 changes: 4 additions & 4 deletions examples/51-docs-theme-launch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
38 changes: 38 additions & 0 deletions packages/cli/MIGRATION.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocket/cli",
"version": "0.20.0-alpha.17",
"version": "0.19.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
`;
Expand Down
1 change: 1 addition & 0 deletions packages/components/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Rocket Components
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocket/components",
"version": "0.1.0-alpha.7",
"version": "0.1.0",
"publishConfig": {
"access": "public"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/create/src/CreateCli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down Expand Up @@ -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')}`,
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocket/engine",
"version": "0.1.0-alpha.27",
"version": "0.1.0",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/launch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocket/launch",
"version": "0.20.0-alpha.9",
"version": "0.20.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions packages/search/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocket/search",
"version": "0.6.0-alpha.1",
"version": "0.6.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -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"
}
6 changes: 3 additions & 3 deletions presets/spark/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocket/spark",
"version": "0.1.0-alpha.6",
"version": "0.1.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -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": {},
Expand Down
Loading

0 comments on commit 5226ab0

Please sign in to comment.