Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #1

Merged
merged 24 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4be406a
docs: switch to astrojs/starlight
ben-laird Jun 16, 2023
b663e78
feat: add wasm template
ben-laird Jun 17, 2023
9f01a6b
refactor: centralize .gitignores
ben-laird Jul 1, 2023
e71b566
build: change default tsup compilation options
ben-laird Jul 1, 2023
1378a30
docs: make starlight template compatible with typelaunch turbo
ben-laird Jul 1, 2023
ee06a06
feat: add more example functions
ben-laird Jul 1, 2023
005f4b6
chore: change crate name
ben-laird Jul 1, 2023
99652d3
feat: add cli template
ben-laird Jul 4, 2023
7f41f02
chore: remove wasm for now
ben-laird Jul 4, 2023
59cca9c
feat: move templates to dedicated package section
ben-laird Jul 4, 2023
8ef32a8
feat: create vscode workspace file
ben-laird Jul 4, 2023
b4f5f04
feat: rename external template to external-tsup
ben-laird Jul 4, 2023
40bc01b
feat: renovate external Vite package template
ben-laird Jul 5, 2023
463336f
feat: renovate external tsup package template
ben-laird Jul 5, 2023
46c840a
feat: update README
ben-laird Jul 5, 2023
9fa0e20
fix: turborepo caching
ben-laird Jul 5, 2023
fae6f37
feat: add wasm vite package template
ben-laird Jul 5, 2023
2ca9ef1
feat: add wasm tsup package template
ben-laird Jul 5, 2023
49fad52
fix: add wasm package fix script
ben-laird Jul 5, 2023
7762498
chore: move wasm pkg fix invocation to config def
ben-laird Jul 5, 2023
1b0d4ac
feat: renovate, fully update root package, rome
ben-laird Jul 5, 2023
34f07b6
chore: add version number to root package.json
ben-laird Jul 6, 2023
fa68b75
chore: update changeset schema url
ben-laird Jul 10, 2023
fefb19e
feat: standardize package.json info
ben-laird Jul 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
Expand Down
90 changes: 63 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
# Project-specific exclusions
dist
dist/
build/
.turbo/
.astro/

bin/
wasm-pack.log
.rsw

# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,node,deno,rust,rust-analyzer,react,svelte
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos,node,deno,rust,rust-analyzer,react,svelte

### Deno ###
/.idea/
/.vscode/

# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,node,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,node,macos
/node_modules

.env
*.orig
*.pyc
*.swp

### macOS ###
# General
Expand Down Expand Up @@ -113,7 +131,6 @@ web_modules/
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
Expand Down Expand Up @@ -177,6 +194,47 @@ dist
# SvelteKit build / generate output
.svelte-kit

### react ###
.DS_*
**/*.backup.*
**/*.back.*

node_modules

*.sublime*

psd
thumb
sketch

### Rust ###
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

### rust-analyzer ###
# Can be generated by other build systems other than cargo (ex: bazelbuild/rust_rules)
rust-project.json


### Svelte ###
# gitignore template for the SvelteKit, frontend web component framework
# website: https://kit.svelte.dev/

.svelte-kit/
package

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
Expand All @@ -196,26 +254,4 @@ dist
.history
.ionide

# Support for Project snippet scope
.vscode/*.code-snippets

# Ignore code-workspaces
*.code-workspace

# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,node,macos

# Turborepo gitignore

.DS_Store
node_modules
.turbo
*.log
.next
dist
dist-ssr
*.local
.env
.cache
server/dist
public/dist
.turbo
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,node,deno,rust,rust-analyzer,react,svelte
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

![GitHub stars](https://img.shields.io/github/stars/ben-laird/typelaunch-turbo?style=social) [![GitHub issues](https://img.shields.io/github/issues-raw/ben-laird/typelaunch-turbo)](https://img.shields.io/github/issues/ben-laird/typelaunch-turbo) ![GitHub pull requests](https://img.shields.io/github/issues-pr/ben-laird/typelaunch-turbo) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/ben-laird/typelaunch-turbo) ![GitHub last commit](https://img.shields.io/github/last-commit/ben-laird/typelaunch-turbo)

An opinionated, public template repository made to easily bootstrap a TypeScript library with the latest features and best practices. If you use this template for your own project, put your project's README text right here!
An opinionated, public template repository made to easily bootstrap a TypeScript monorepo with the latest features and best practices. If you use this template for your own project, put your monorepo's README text right here!

## Made with TypeLaunch Turbo

This project was launched with the TypeLaunch Turbo public template repository! See [`typelaunch.md`](typelaunch/typelaunch.md) for details.
This project was launched with the TypeLaunch Turbo public template repository! See [`typelaunch.md`](typelaunch/typelaunch.md) for details. To make a Typelaunch Turbo project, simply run the following:

```bash
pnpm degit ben-laird/typelaunch-turbo
```

## Versioning

Expand All @@ -16,7 +20,7 @@ This library follows the [Semantic Versioning](https://semver.org) convention. S

[MIT](https://choosealicense.com/licenses/mit/)

See the [license](.github/LICENSE) for details.
See the [license](./LICENSE.md) for details.

## Contributing

Expand Down
21 changes: 0 additions & 21 deletions apps/docs/.gitignore

This file was deleted.

51 changes: 51 additions & 0 deletions apps/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Starlight Starter Kit: Basics

```
npm create astro@latest -- --template starlight
```

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/basics)

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!

## 🚀 Project Structure

Inside of your Astro + Starlight project, you'll see the following folders and files:

```
.
├── public/
├── src/
│ ├── assets/
│ ├── content/
│ │ ├── docs/
│ │ └── config.ts
│ └── env.d.ts
├── astro.config.mjs
├── package.json
└── tsconfig.json
```

Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on its file name.

Images can be added to `src/assets/` and embedded in Markdown with a relative link.

Static assets, like favicons, can be placed in the `public/` directory.

## 🧞 Commands

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |

## 👀 Want to learn more?

Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat).
29 changes: 21 additions & 8 deletions apps/docs/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
import { defineConfig } from "astro/config";
import preact from "@astrojs/preact";
import react from "@astrojs/react";
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';

// https://astro.build/config
export default defineConfig({
integrations: [
// Enable Preact to support Preact JSX components.
preact(),
// Enable React for the Algolia search component.
react(),
starlight({
title: 'My Docs',
social: {
github: 'https://github.com/withastro/starlight',
},
sidebar: [
{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Example Guide', link: '/guides/example/' },
],
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
},
],
}),
],
site: "https://astro.build",
});
28 changes: 9 additions & 19 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
{
"name": "@example/docs",
"name": "@typelaunch-turbo/docs",
"type": "module",
"version": "0.0.1",
"private": true,
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"lint": "tsc && rome check . && astro check",
"format": "rome format .",
"uncache": "rm -rf .turbo",
"clean": "rm -rf .turbo && rm -rf dist && rm -rf node_modules"
},
"dependencies": {
"@algolia/client-search": "^4.17.0",
"@astrojs/preact": "^2.1.0",
"@astrojs/react": "^2.1.3",
"@docsearch/css": "^3.3.4",
"@docsearch/react": "^3.3.4",
"@types/node": "^18.16.3",
"@types/react": "^18.2.5",
"@types/react-dom": "^18.2.3",
"astro": "^2.4.1",
"preact": "^10.13.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/html-escaper": "^3.0.0",
"html-escaper": "^3.0.3"
"@astrojs/starlight": "^0.4.0",
"astro": "^2.7.2"
}
}
Binary file removed apps/docs/public/default-og-image.png
Binary file not shown.
10 changes: 1 addition & 9 deletions apps/docs/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions apps/docs/public/make-scrollable-code-focusable.js

This file was deleted.

Binary file added apps/docs/src/assets/houston.webp
Binary file not shown.
26 changes: 26 additions & 0 deletions apps/docs/src/components/Cards.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
import { Card, CardGrid } from "@astrojs/starlight/components";
---

<CardGrid stagger>
<Card title="Update content" icon="pencil">
Edit <code>src/content/docs/index.mdx</code> to see this page change.
</Card>
<Card title="Add new content" icon="add-document">
Add Markdown or MDX files to <code>src/content/docs</code> to create new
pages.
</Card>
<Card title="Configure your site" icon="setting">
Edit your <code>sidebar</code> and other config in <code
>astro.config.ts</code
>.
</Card>
<Card title="Read the docs" icon="open-book">
Learn more in <a href="https://starlight.astro.build/"
>the Starlight Docs</a
>.
</Card>
<Card title="Welcome" icon="external">
Check out the external <a href="/welcome">welcome page</a>
</Card>
</CardGrid>
Loading