Skip to content

Commit 093a1a5

Browse files
Merge pull request #5 from functionalland/feature/types
Add build script
2 parents d3f4d87 + 1a1949c commit 093a1a5

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

scripts/build.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { build, emptyDir } from "https://deno.land/x/dnt/mod.ts";
2+
3+
await emptyDir("./build");
4+
5+
await build({
6+
compilerOptions: {
7+
lib: [
8+
"esnext",
9+
"dom",
10+
"dom.iterable",
11+
],
12+
},
13+
entryPoints: ["./mod.ts"],
14+
outDir: "./build",
15+
package: {
16+
name: "functionalland-component",
17+
version: Deno.args[0],
18+
description: "A library to develop web component with a bit more of functional flavour.",
19+
license: "MIT",
20+
repository: {
21+
type: "git",
22+
url: "git+https://github.com/functionalland/functional-component.git",
23+
},
24+
bugs: {
25+
url: "https://github.com/functionalland/functional-component/issues",
26+
},
27+
},
28+
shims: {
29+
// see JS docs for overview and more options
30+
deno: true,
31+
},
32+
test: false,
33+
});
34+
35+
// post build steps
36+
Deno.copyFileSync("./LICENSE", "build/LICENSE");
37+
Deno.copyFileSync("./README.md", "build/README.md");

0 commit comments

Comments
 (0)