gatelogue-types 2.0.0-b8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +59 -0
  2. package/package.json +5 -3
  3. package/tsconfig.json +42 -0
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ ![](https://raw.githubusercontent.com/MRT-Map/gatelogue/refs/heads/main/gatelogue-client/public/gat2-light.png)
2
+
3
+ ![Github Version](https://img.shields.io/github/v/release/MRT-Map/gatelogue)
4
+ ![Docs Status](https://img.shields.io/github/actions/workflow/status/MRT-Map/gatelogue/.github%2Fworkflows%2Fpages.yml?style=flat&label=docs&link=https%3A%2F%2Fmrt-map.github.io%2Fgatelogue%2Fdocs)
5
+ ![GitHub License](https://img.shields.io/github/license/MRT-Map/gatelogue)
6
+ ![GitHub Pages Status](https://img.shields.io/github/actions/workflow/status/MRT-Map/gatelogue/.github%2Fworkflows%2Fpages.yml?style=flat&label=website&link=https%3A%2F%2Fmrt-map.github.io%2Fgatelogue)
7
+
8
+ ![GitHub code size](https://img.shields.io/github/languages/code-size/MRT-Map/gatelogue)
9
+ ![GitHub repo size](https://img.shields.io/github/repo-size/MRT-Map/gatelogue)
10
+ ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/mrt-map/gatelogue/main)
11
+ ![GitHub commits since latest release (branch)](https://img.shields.io/github/commits-since/mrt-map/gatelogue/latest/main?include_prereleases)
12
+ ![GitHub Release Date](https://img.shields.io/github/release-date/MRT-Map/gatelogue)
13
+
14
+ ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/mrt-map/gatelogue/dist?label=last%20data%20update)
15
+
16
+ `gatelogue-types` (python):
17
+ ![PyPI - Version](https://img.shields.io/pypi/v/gatelogue-types)
18
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/gatelogue-types)
19
+ ![Docs Status](https://img.shields.io/github/actions/workflow/status/MRT-Map/gatelogue/.github%2Fworkflows%2Fpages.yml?style=flat&label=docs&link=https%3A%2F%2Fmrt-map.github.io%2Fgatelogue%2Fdocs%2F_autosummary%2Fgatelogue_types.html)
20
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/gatelogue-types)
21
+ ![Pepy Total Downlods](https://img.shields.io/pepy/dt/gatelogue-types)
22
+
23
+ `gatelogue-types` (rust):
24
+ ![Crates.io Version](https://img.shields.io/crates/v/gatelogue-types)
25
+ ![Crates.io MSRV](https://img.shields.io/crates/msrv/gatelogue-types)
26
+ ![docs.rs](https://img.shields.io/docsrs/gatelogue-types?label=docs.rs)
27
+ ![Crates.io Downloads (recent)](https://img.shields.io/crates/dr/gatelogue-types)
28
+ ![Crates.io Total Downloads](https://img.shields.io/crates/d/gatelogue-types)
29
+
30
+ `gatelogue-types` (ts, npm):
31
+ ![NPM Version](https://img.shields.io/npm/v/gatelogue-types)
32
+ ![Docs Status](https://img.shields.io/github/actions/workflow/status/MRT-Map/gatelogue/.github%2Fworkflows%2Fpages.yml?style=flat&label=typedoc&link=https%3A%2F%2Fmrt-map.github.io%2Fgatelogue%2Fdocs%2Fts)
33
+ ![NPM Downloads](https://img.shields.io/npm/dw/gatelogue-types?label=downloads%20(week))
34
+ ![NPM Downloads](https://img.shields.io/npm/dy/gatelogue-types?label=downloads%20(year))
35
+
36
+ `gatelogue-types` (ts, jsr):
37
+ ![JSR Version](https://img.shields.io/jsr/v/@mrt-map/gatelogue-types)
38
+
39
+ Database of air, rail, sea, bus routes on the MRT
40
+
41
+ Client is hosted at https://mrt-map.github.io/gatelogue
42
+
43
+ Documentation for the aggregator and data format is located at https://mrt-map.github.io/gatelogue/docs
44
+
45
+ ## development setup
46
+ if you want to use a github codespace, just open one! setup is handled for you, and will take a few minutes. (it's the green code button, under the codespaces tab)
47
+
48
+ if you'd rather do things locally, the easiest way to get started is with dev containers:
49
+
50
+ 1. install docker
51
+ 2. install the [remote development pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) for vscode
52
+ 3. Use Cmd/Ctrl + Shift + P -> 'Clone Repository in Container Volume' to clone this repo (don't use 'reopen in container', as that will conflict with pnpm)
53
+ 4. the container will take a few minutes to install and set up
54
+
55
+ congrats! you did it!
56
+
57
+ run the aggregator with the command `gatelogue-aggregator run`
58
+
59
+ run the client with the command `cd gatelogue-client` and `pnpm run dev`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatelogue-types",
3
- "version": "2.0.0b8+8",
3
+ "version": "2.0.0+8",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": {
6
6
  "name": "MRT Mapping Services",
@@ -29,7 +29,8 @@
29
29
  "require": "./dist/cjs/lib.js"
30
30
  },
31
31
  "files": [
32
- "dist"
32
+ "dist",
33
+ "tsconfig.json"
33
34
  ],
34
35
  "devDependencies": {
35
36
  "@eslint/js": "^9.25",
@@ -47,6 +48,7 @@
47
48
  "build:cjs": "tsc --outDir dist/cjs -m commonjs --verbatimModuleSyntax false",
48
49
  "lint": "eslint --fix lib.ts",
49
50
  "format": "prettier --write .",
50
- "doc": "typedoc"
51
+ "doc": "typedoc",
52
+ "prepublish": "cp ../README.md ."
51
53
  }
52
54
  }
package/tsconfig.json ADDED
@@ -0,0 +1,42 @@
1
+ /* https://www.totaltypescript.com/tsconfig-cheat-sheet */
2
+ {
3
+ "include": ["lib.ts"],
4
+ "compilerOptions": {
5
+ /* Base Options: */
6
+ "esModuleInterop": true,
7
+ "skipLibCheck": true,
8
+ "target": "esnext",
9
+ "allowJs": true,
10
+ "resolveJsonModule": true,
11
+ "moduleDetection": "force",
12
+ "isolatedModules": true,
13
+ "verbatimModuleSyntax": true,
14
+
15
+ /* Strictness */
16
+ "strict": true,
17
+ "noUncheckedIndexedAccess": true,
18
+ "noImplicitOverride": true,
19
+
20
+ /* If transpiling with TypeScript: */
21
+ "module": "NodeNext",
22
+ "outDir": "dist",
23
+ "sourceMap": true,
24
+
25
+ /* AND if you're building for a library: */
26
+ "declaration": true,
27
+
28
+ /* AND if you're building for a library in a monorepo: */
29
+ "composite": true,
30
+ "declarationMap": true,
31
+
32
+ /* If NOT transpiling with TypeScript:
33
+ "module": "preserve",
34
+ "noEmit": true, */
35
+
36
+ /* If your code runs in the DOM: */
37
+ "lib": ["esnext", "dom", "dom.iterable"]
38
+
39
+ /* If your code doesn't run in the DOM:
40
+ "lib": ["es2022"], */
41
+ }
42
+ }