So, in summary, we have:
packages/
app/
tsconfig.json
shared/
tsconfig.json
tsconfig.base.json
tsconfig.json
var MarkdownIt = require("markdown-it"); | |
var md = new MarkdownIt('commonmark'); | |
// Add custom INLINE rule that pulls in anything wrapped in a ::: <TEXT> ::: and wrap in a span tag | |
function custom_inline(state, silent) { | |
let pos = state.pos; |
export default class LumeCode extends HTMLElement { | |
connectedCallback() { | |
document.querySelectorAll('[role="tab"]')?.forEach((tab) => { | |
tab.addEventListener("click", this.handleTabChange); | |
}); | |
} | |
handleTabChange(e) { | |
const target = e.target; | |
const parent = target.parentNode; |
<style> | |
.slider { | |
border-radius: 0.5rem; | |
margin: 1rem; | |
min-height: 15rem; | |
background: linear-gradient( | |
to right, | |
#314755, | |
#26a0da | |
); /* Default Background */ |
import { merge } from "lume/core/utils.ts"; | |
import type { Page, Site } from "lume/core.ts"; | |
export interface Options { | |
/** The list extensions this plugin applies to */ | |
extensions: string[]; | |
/** The words per minute a reader can read (default: 275) */ | |
wordsPerMinute: number; |
So, in summary, we have:
packages/
app/
tsconfig.json
shared/
tsconfig.json
tsconfig.base.json
tsconfig.json
There are countless guides online for setting up a TypeScript monorepo.
Most rely on external tools like Lerna, Yarn, Turborepo, Yalc, or something else.
Here's a simple, zero-opinion way to get a monorepo going.
First, make a structure like this:
root/
#!/bin/bash | |
RED="\e[41m" | |
GREEN="\e[42m" | |
BLUE="\e[44m" | |
CYAN="\e[36m" | |
MAGENTA="\e[45m" | |
ENDCOLOR="\e[0m" | |
### |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
#!/usr/bin/env node | |
var fs = require('fs'), | |
util = require('util'); | |
// Rattern to format the message with the issue ID | |
var MESSAGE_FORMAT = '[%s] %s'; | |
// Git commit messages are stored in a file, passed as argument to the script | |
// First and second arguments will be 'node' and the name of the script | |
var commitFile = process.argv[2]; |