1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-11 18:59:05 +00:00

chore: repo cleanup

This commit is contained in:
James Cook 2023-09-17 17:42:33 +01:00
parent 8a11040524
commit c006fa2653
5 changed files with 15 additions and 13 deletions

5
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"recommendations": [
"denoland.vscode-deno"
]
}

View file

@ -3,3 +3,5 @@ export {
assertExists,
assertRejects,
} from "https://deno.land/std@0.200.0/assert/mod.ts";
export { build, emptyDir } from "https://deno.land/x/dnt@0.38.1/mod.ts";

View file

@ -4,7 +4,10 @@
<meta charset="UTF-8" />
<title>ClassCharts-API</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- <meta name="description" content="Description"> -->
<meta
name="description"
content="Documentation for classcharts-api javascript package. A library for interacting with the ClassCharts API."
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0"
@ -13,12 +16,6 @@
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css"
/>
<script
async
src="https://umami.jaminit.co.uk/script.js"
data-website-id="3f01674a-5c63-47a2-962b-43d0c62c7c6c"
data-domains="classchartsapi.github.io"
></script>
</head>
<body>
<div id="app"></div>

4
mod.ts
View file

@ -1,2 +1,2 @@
export * from "./src/core/studentClient.ts";
export * from "./src/core/parentClient.ts";
export * from "~/src/core/studentClient.ts";
export * from "~/src/core/parentClient.ts";

View file

@ -1,4 +1,4 @@
import { build, emptyDir } from "https://deno.land/x/dnt@0.38.1/mod.ts";
import { build, emptyDir } from "~/deps_dev.ts";
if (!Deno.args[0]) throw new Error("No version specified");
@ -23,13 +23,12 @@ await build({
},
typeCheck: "both",
package: {
// package.json properties
name: "classcharts-api",
version: String(Deno.args[0]).replace("v", ""),
author: {
name: "James Cook",
email: "james@jaminit.co.uk",
},
version: String(Deno.args[0]).replace("v", ""),
description:
"A Typescript wrapper for getting information from the ClassCharts API",
license: "ISC",
@ -48,7 +47,6 @@ await build({
sideEffects: false,
},
postBuild() {
// steps to run after building and before running the tests
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");
},