Select the types of activity you want to include in your feed.
[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
···11# History
22-A simple history library for Deno, Node.js and the browser. Build with Deno & Typescript.
22+33+A simple history library for Deno, Node.js and the browser. Build with Deno &
44+Typescript.
3546### Commands
5768- `deno test` - Run tests
77-- `deno run -A scripts/build_npm.ts x.x.x` - Build npm package99+- `deno run -A scripts/build_npm.ts x.x.x` - Build npm package
+23-23
scripts/build_npm.ts
···33await emptyDir("./npm");
4455await build({
66- entryPoints: ["./mod.ts"],
77- outDir: "./npm",
88- typeCheck: "both",
99- shims: {
1010- deno: true,
1111- },
1212- package: {
1313- name: "SimpleHistory",
1414- version: Deno.args[0],
1515- description:
1616- "A simple History class that stores the current value and keeps a stack of previous values for undo/redo",
1717- license: "MIT",
1818- repository: {
1919- type: "git",
2020- url: "git+https://github.com/kristianbinau/SimpleHistory.git",
2121- },
2222- bugs: {
2323- url: "https://github.com/kristianbinau/SimpleHistory/issues",
2424- },
66+ entryPoints: ["./mod.ts"],
77+ outDir: "./npm",
88+ typeCheck: "both",
99+ shims: {
1010+ deno: true,
1111+ },
1212+ package: {
1313+ name: "SimpleHistory",
1414+ version: Deno.args[0],
1515+ description:
1616+ "A simple History class that stores the current value and keeps a stack of previous values for undo/redo",
1717+ license: "MIT",
1818+ repository: {
1919+ type: "git",
2020+ url: "git+https://github.com/kristianbinau/SimpleHistory.git",
2521 },
2626- postBuild() {
2727- Deno.copyFileSync("LICENSE", "npm/LICENSE");
2828- Deno.copyFileSync("README.md", "npm/README.md");
2222+ bugs: {
2323+ url: "https://github.com/kristianbinau/SimpleHistory/issues",
2924 },
3030-});2525+ },
2626+ postBuild() {
2727+ Deno.copyFileSync("LICENSE", "npm/LICENSE");
2828+ Deno.copyFileSync("README.md", "npm/README.md");
2929+ },
3030+});