[READ-ONLY] Mirror of https://github.com/kristianbinau/SimpleHistory. A simple history library for Deno, Node.js and the browser. Build with Deno & Typescript. www.npmjs.com/package/@kristianbinau/simple-history
0

Configure Feed

Select the types of activity you want to include in your feed.

Use formatter

Kristian Binau (Aug 22, 2023, 9:50 PM +0200) c357c243 73149121

+27 -25
+4 -2
README.md
··· 1 1 # History 2 - A simple history library for Deno, Node.js and the browser. Build with Deno & Typescript. 2 + 3 + A simple history library for Deno, Node.js and the browser. Build with Deno & 4 + Typescript. 3 5 4 6 ### Commands 5 7 6 8 - `deno test` - Run tests 7 - - `deno run -A scripts/build_npm.ts x.x.x` - Build npm package 9 + - `deno run -A scripts/build_npm.ts x.x.x` - Build npm package
+23 -23
scripts/build_npm.ts
··· 3 3 await emptyDir("./npm"); 4 4 5 5 await build({ 6 - entryPoints: ["./mod.ts"], 7 - outDir: "./npm", 8 - typeCheck: "both", 9 - shims: { 10 - deno: true, 11 - }, 12 - package: { 13 - name: "SimpleHistory", 14 - version: Deno.args[0], 15 - description: 16 - "A simple History class that stores the current value and keeps a stack of previous values for undo/redo", 17 - license: "MIT", 18 - repository: { 19 - type: "git", 20 - url: "git+https://github.com/kristianbinau/SimpleHistory.git", 21 - }, 22 - bugs: { 23 - url: "https://github.com/kristianbinau/SimpleHistory/issues", 24 - }, 6 + entryPoints: ["./mod.ts"], 7 + outDir: "./npm", 8 + typeCheck: "both", 9 + shims: { 10 + deno: true, 11 + }, 12 + package: { 13 + name: "SimpleHistory", 14 + version: Deno.args[0], 15 + description: 16 + "A simple History class that stores the current value and keeps a stack of previous values for undo/redo", 17 + license: "MIT", 18 + repository: { 19 + type: "git", 20 + url: "git+https://github.com/kristianbinau/SimpleHistory.git", 25 21 }, 26 - postBuild() { 27 - Deno.copyFileSync("LICENSE", "npm/LICENSE"); 28 - Deno.copyFileSync("README.md", "npm/README.md"); 22 + bugs: { 23 + url: "https://github.com/kristianbinau/SimpleHistory/issues", 29 24 }, 30 - }); 25 + }, 26 + postBuild() { 27 + Deno.copyFileSync("LICENSE", "npm/LICENSE"); 28 + Deno.copyFileSync("README.md", "npm/README.md"); 29 + }, 30 + });