mirror of
https://github.com/TextPlace/CoreTextPlace.git
synced 2025-07-12 14:15:32 +00:00
initial version
This commit is contained in:
commit
6dfe7129c4
15 changed files with 614 additions and 0 deletions
31
scripts/build_npm.ts
Normal file
31
scripts/build_npm.ts
Normal file
|
@ -0,0 +1,31 @@
|
|||
import { build, emptyDir } from "@deno/dnt";
|
||||
|
||||
await emptyDir("./npm");
|
||||
|
||||
await build({
|
||||
entryPoints: ["./mod.ts"],
|
||||
outDir: "./npm",
|
||||
shims: {
|
||||
// see JS docs for overview and more options
|
||||
deno: true,
|
||||
},
|
||||
package: {
|
||||
// package.json properties
|
||||
name: "@textplace/core",
|
||||
version: Deno.args[0],
|
||||
description: "The core logic of TextPlace.",
|
||||
license: "MIT",
|
||||
repository: {
|
||||
type: "git",
|
||||
url: "git+https://github.com/textplace/CoreTextPlace.git",
|
||||
},
|
||||
bugs: {
|
||||
url: "https://github.com/textplace/CoreTextPlace/issues",
|
||||
},
|
||||
},
|
||||
postBuild() {
|
||||
// steps to run after building and before running the tests
|
||||
Deno.copyFileSync("LICENSE", "npm/LICENSE");
|
||||
Deno.copyFileSync("README.md", "npm/README.md");
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue