Skip to content

Commit

Permalink
feat: add docs crate (#48)
Browse files Browse the repository at this point in the history
* feat: add docs crate

* docs(templates): add readme

* ci: remove extra waits
  • Loading branch information
futursolo authored Jan 15, 2023
1 parent 2384ab8 commit b01e731
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,31 @@ jobs:
dependencies.stellation-core.registry dry-run > /tmp/tempfile-cargo1
cat /tmp/tempfile-cargo1 > crates/stctl/Cargo.toml
toml set \
crates/stellation/Cargo.toml \
dependencies.stellation-core.registry dry-run > /tmp/tempfile-cargo1
cat /tmp/tempfile-cargo1 > crates/stellation/Cargo.toml
toml set \
crates/stellation/Cargo.toml \
dependencies.stellation-bridge.registry dry-run > /tmp/tempfile-cargo1
cat /tmp/tempfile-cargo1 > crates/stellation/Cargo.toml
toml set \
crates/stellation/Cargo.toml \
dependencies.stellation-frontend.registry dry-run > /tmp/tempfile-cargo1
cat /tmp/tempfile-cargo1 > crates/stellation/Cargo.toml
toml set \
crates/stellation/Cargo.toml \
dependencies.stellation-backend.registry dry-run > /tmp/tempfile-cargo1
cat /tmp/tempfile-cargo1 > crates/stellation/Cargo.toml
toml set \
crates/stellation/Cargo.toml \
dependencies.stctl.registry dry-run > /tmp/tempfile-cargo1
cat /tmp/tempfile-cargo1 > crates/stellation/Cargo.toml
git commit -a -m "chore: switch to dry-run registry"
- name: Prepare crates.io Registry
Expand Down Expand Up @@ -237,6 +262,19 @@ jobs:
env:
RUSTFLAGS: "--cfg releasing"

- name: Wait for Registry to Refresh
run: sleep 30s
shell: bash

- name: Run cargo publish for stellation
if: "!startsWith(github.ref, 'refs/tags/')"
run: |
cargo publish \
${{ env.CARGO_PUBLISH_EXTRA_ARGS }} \
--manifest-path crates/stellation/Cargo.toml
env:
RUSTFLAGS: "--cfg releasing"

publish-templates:
name: Publish Templates
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# stellation
# Stellation

A framework experience for Yew.

Expand Down
2 changes: 2 additions & 0 deletions ci/feature-soundness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ cargo clippy -p stellation-frontend -- -D warnings

cargo clippy -p stctl -- -D warnings

cargo clippy -p stellation -- -D warnings

cargo clippy -p example-fullstack-client -- -D warnings
cargo clippy -p example-fullstack-server -- -D warnings
22 changes: 22 additions & 0 deletions crates/stellation/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "stellation"
version = "0.1.0"
edition = "2021"
rust-version = "1.66"
repository = "https://github.com/futursolo/stellation"
authors = [
"Kaede Hoshiakwa <futursolo@icloud.com>",
]
description = "The framework experience for Yew."
keywords = ["web", "wasm", "yew", "framework", "ssr"]
categories = ["wasm", "web-programming"]
readme = "../../README.md"
homepage = "https://github.com/futursolo/stellation"
license = "MIT OR Apache-2.0"

[dependencies]
stellation-core = { version = "0.1.0", path = "../stellation-core" }
stellation-frontend = { version = "0.1.0", path = "../stellation-frontend" }
stellation-backend = { version = "0.1.0", path = "../stellation-backend" }
stellation-bridge = { version = "0.1.0", path = "../stellation-bridge" }
stctl = { version = "0.1.0", path = "../stctl" }
17 changes: 17 additions & 0 deletions crates/stellation/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//! Framework experience for Yew.
//!
//! Stellation provides a Yew development stack with:
//!
//! 1. Tooling around Server-side Rendering Support.
//! 2. An easy-to-use, SSR-transparent RPC Implementation.
//! 3. A development server that automatically rebuild upon changes.
//! 4. A single binary distribution with embedded frontend.
//!
//! # Components
//!
//! 1. [stellation-frontend](stellation_frontend): The frontend application.
//! 2. [stellation-backend](stellation_backend): The backend server.
//! 3. [stellation-bridge](stellation_bridge): The bridge that provides communication between
//! frontend and backend.
//! 4. [stctl]: Command line utility for building and serving development
//! server.
7 changes: 7 additions & 0 deletions templates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Stellation Templates

To create a stellation project from one of the templates, use the following command:

```bash
$ cargo generate --git https://github.com/stellation-templates
```

0 comments on commit b01e731

Please sign in to comment.