Skip to content

Commit c006fa2

Browse files
chore: repo cleanup
1 parent 8a11040 commit c006fa2

5 files changed

Lines changed: 15 additions & 13 deletions

File tree

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"denoland.vscode-deno"
4+
]
5+
}

deps_dev.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ export {
33
assertExists,
44
assertRejects,
55
} from "https://deno.land/std@0.200.0/assert/mod.ts";
6+
7+
export { build, emptyDir } from "https://deno.land/x/dnt@0.38.1/mod.ts";

index.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
<meta charset="UTF-8" />
55
<title>ClassCharts-API</title>
66
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7-
<!-- <meta name="description" content="Description"> -->
7+
<meta
8+
name="description"
9+
content="Documentation for classcharts-api javascript package. A library for interacting with the ClassCharts API."
10+
/>
811
<meta
912
name="viewport"
1013
content="width=device-width, initial-scale=1.0, minimum-scale=1.0"
@@ -13,12 +16,6 @@
1316
rel="stylesheet"
1417
href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css"
1518
/>
16-
<script
17-
async
18-
src="https://umami.jaminit.co.uk/script.js"
19-
data-website-id="3f01674a-5c63-47a2-962b-43d0c62c7c6c"
20-
data-domains="classchartsapi.github.io"
21-
></script>
2219
</head>
2320
<body>
2421
<div id="app"></div>

mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from "./src/core/studentClient.ts";
2-
export * from "./src/core/parentClient.ts";
1+
export * from "~/src/core/studentClient.ts";
2+
export * from "~/src/core/parentClient.ts";

scripts/build_npm.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { build, emptyDir } from "https://deno.land/x/dnt@0.38.1/mod.ts";
1+
import { build, emptyDir } from "~/deps_dev.ts";
22

33
if (!Deno.args[0]) throw new Error("No version specified");
44

@@ -23,13 +23,12 @@ await build({
2323
},
2424
typeCheck: "both",
2525
package: {
26-
// package.json properties
2726
name: "classcharts-api",
27+
version: String(Deno.args[0]).replace("v", ""),
2828
author: {
2929
name: "James Cook",
3030
email: "james@jaminit.co.uk",
3131
},
32-
version: String(Deno.args[0]).replace("v", ""),
3332
description:
3433
"A Typescript wrapper for getting information from the ClassCharts API",
3534
license: "ISC",
@@ -48,7 +47,6 @@ await build({
4847
sideEffects: false,
4948
},
5049
postBuild() {
51-
// steps to run after building and before running the tests
5250
Deno.copyFileSync("LICENSE", "npm/LICENSE");
5351
Deno.copyFileSync("README.md", "npm/README.md");
5452
},

0 commit comments

Comments
 (0)