gtfs-to-html 2.7.1 → 2.8.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.
- package/README.md +2 -0
- package/package.json +21 -8
- package/.eslintrc.json +0 -28
- package/.husky/pre-commit +0 -4
- package/CHANGELOG.md +0 -1012
- package/app/index.js +0 -138
- package/bin/gtfs-to-html.js +0 -48
- package/config-sample.json +0 -59
- package/docker/Dockerfile +0 -13
- package/docker/README.md +0 -5
- package/docker/docker-compose.yml +0 -10
- package/examples/stop_attributes.txt +0 -6
- package/examples/timetable_notes.txt +0 -8
- package/examples/timetable_notes_references.txt +0 -8
- package/examples/timetable_pages.txt +0 -3
- package/examples/timetable_stop_order.txt +0 -16
- package/examples/timetables.txt +0 -9
- package/index.js +0 -1
- package/lib/file-utils.js +0 -202
- package/lib/formatters.js +0 -518
- package/lib/geojson-utils.js +0 -96
- package/lib/gtfs-to-html.js +0 -214
- package/lib/log-utils.js +0 -215
- package/lib/template-functions.js +0 -192
- package/lib/time-utils.js +0 -90
- package/lib/utils.js +0 -1702
- package/views/default/css/overview_styles.css +0 -197
- package/views/default/css/timetable_pdf_styles.css +0 -7
- package/views/default/css/timetable_styles.css +0 -447
- package/views/default/formatting_functions.pug +0 -113
- package/views/default/js/system-map.js +0 -594
- package/views/default/js/timetable-map.js +0 -358
- package/views/default/js/timetable-menu.js +0 -63
- package/views/default/layout.pug +0 -11
- package/views/default/overview.pug +0 -27
- package/views/default/overview_full.pug +0 -16
- package/views/default/timetable_continuation_as.pug +0 -7
- package/views/default/timetable_continuation_from.pug +0 -7
- package/views/default/timetable_horizontal.pug +0 -42
- package/views/default/timetable_hourly.pug +0 -30
- package/views/default/timetable_menu.pug +0 -48
- package/views/default/timetable_note_symbol.pug +0 -5
- package/views/default/timetable_stop_name.pug +0 -13
- package/views/default/timetable_stoptime.pug +0 -17
- package/views/default/timetable_vertical.pug +0 -67
- package/views/default/timetablepage.pug +0 -66
- package/views/default/timetablepage_full.pug +0 -22
- package/www/README.md +0 -33
- package/www/babel.config.js +0 -3
- package/www/blog/2020-07-07-New-Documentation.md +0 -12
- package/www/blog/2020-08-20-Version-1.0.0.md +0 -29
- package/www/blog/2021-11-06-CSV-Export.md +0 -26
- package/www/docs/additional-files.md +0 -24
- package/www/docs/configuration.md +0 -568
- package/www/docs/current-usage.md +0 -46
- package/www/docs/custom-templates.md +0 -13
- package/www/docs/introduction.md +0 -39
- package/www/docs/logging-sql-queries.md +0 -12
- package/www/docs/previewing-html-output.md +0 -24
- package/www/docs/processing-large-gtfs.md +0 -10
- package/www/docs/quick-start.md +0 -136
- package/www/docs/related-libraries.md +0 -54
- package/www/docs/reviewing-changes.md +0 -29
- package/www/docs/stop-attributes.md +0 -30
- package/www/docs/support.md +0 -12
- package/www/docs/timetable-notes-references.md +0 -44
- package/www/docs/timetable-notes.md +0 -33
- package/www/docs/timetable-pages.md +0 -37
- package/www/docs/timetable-stop-order.md +0 -63
- package/www/docs/timetables.md +0 -64
- package/www/docusaurus.config.js +0 -104
- package/www/package.json +0 -21
- package/www/sidebars.js +0 -10
- package/www/src/css/custom.css +0 -25
- package/www/src/pages/index.js +0 -270
- package/www/src/pages/styles.module.css +0 -53
- package/www/static/.nojekyll +0 -0
- package/www/static/img/favicon.ico +0 -0
- package/www/static/img/gtfs-to-html-logo.svg +0 -18
- package/www/static/img/overview-example.jpg +0 -0
- package/www/static/img/timetable-example.jpg +0 -0
- package/www/static/img/undraw_happy_music.svg +0 -1
- package/www/static/img/undraw_proud_coder.svg +0 -1
- package/www/static/img/undraw_spreadsheets.svg +0 -1
- package/www/yarn.lock +0 -8351
package/README.md
CHANGED
|
@@ -73,10 +73,12 @@ Many transit agencies use `gtfs-to-html` to generate the schedule pages used on
|
|
|
73
73
|
- [Marin Transit](https://marintransit.org)
|
|
74
74
|
- [Morongo Basin Transit Authority](https://mbtabus.com)
|
|
75
75
|
- [Mountain Transit](http://mountaintransit.org)
|
|
76
|
+
- [Mountain View Community Shuttle](http://mvcommunityshuttle.com)
|
|
76
77
|
- [MVgo (Mountain View, CA)](https://mvgo.org)
|
|
77
78
|
- [NW Connector (Oregon)](http://www.nworegontransit.org)
|
|
78
79
|
- [Palo Verde Valley Transit Agency](http://pvvta.com)
|
|
79
80
|
- [Petaluma Transit](http://transit.cityofpetaluma.net)
|
|
81
|
+
- [Rogue Valley Transportation District (Medford, OR)](https://rvtd.org)
|
|
80
82
|
- [RTC Washoe (Reno, NV)](https://www.rtcwashoe.com)
|
|
81
83
|
- [Santa Barbara Metropolitan Transit District](https://sbmtd.gov)
|
|
82
84
|
- [Sonoma County Transit](http://sctransit.com)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtfs-to-html",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
|
|
6
6
|
"keywords": [
|
|
@@ -27,12 +27,18 @@
|
|
|
27
27
|
"Evo Stamatov"
|
|
28
28
|
],
|
|
29
29
|
"type": "module",
|
|
30
|
-
"main": "index.js",
|
|
30
|
+
"main": "./dist/index.js",
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
31
35
|
"bin": {
|
|
32
|
-
"gtfs-to-html": "bin/gtfs-to-html.js"
|
|
36
|
+
"gtfs-to-html": "dist/bin/gtfs-to-html.js"
|
|
33
37
|
},
|
|
34
38
|
"scripts": {
|
|
35
|
-
"start": "node ./app"
|
|
39
|
+
"start": "node ./app",
|
|
40
|
+
"prepare": "husky",
|
|
41
|
+
"build": "tsup"
|
|
36
42
|
},
|
|
37
43
|
"dependencies": {
|
|
38
44
|
"@turf/helpers": "^7.1.0",
|
|
@@ -46,12 +52,12 @@
|
|
|
46
52
|
"insane": "^2.6.2",
|
|
47
53
|
"js-beautify": "^1.15.1",
|
|
48
54
|
"lodash-es": "^4.17.21",
|
|
49
|
-
"marked": "^14.
|
|
55
|
+
"marked": "^14.1.0",
|
|
50
56
|
"moment": "^2.30.1",
|
|
51
57
|
"morgan": "^1.10.0",
|
|
52
58
|
"pretty-error": "^4.0.0",
|
|
53
59
|
"pug": "^3.0.3",
|
|
54
|
-
"puppeteer": "^23.
|
|
60
|
+
"puppeteer": "^23.2.1",
|
|
55
61
|
"sanitize-filename": "^1.6.3",
|
|
56
62
|
"sqlstring": "^2.3.3",
|
|
57
63
|
"timer-machine": "^1.1.0",
|
|
@@ -61,9 +67,15 @@
|
|
|
61
67
|
"yoctocolors": "^2.1.1"
|
|
62
68
|
},
|
|
63
69
|
"devDependencies": {
|
|
64
|
-
"
|
|
70
|
+
"@types/lodash-es": "^4.17.12",
|
|
71
|
+
"@types/node": "^20.16.2",
|
|
72
|
+
"@types/timer-machine": "^1.1.3",
|
|
73
|
+
"@types/yargs": "^17.0.33",
|
|
74
|
+
"husky": "^9.1.5",
|
|
65
75
|
"lint-staged": "^15.2.9",
|
|
66
|
-
"prettier": "^3.3.3"
|
|
76
|
+
"prettier": "^3.3.3",
|
|
77
|
+
"tsup": "^8.2.4",
|
|
78
|
+
"typescript": "^5.5.4"
|
|
67
79
|
},
|
|
68
80
|
"engines": {
|
|
69
81
|
"node": ">= 20.11.0"
|
|
@@ -83,6 +95,7 @@
|
|
|
83
95
|
},
|
|
84
96
|
"lint-staged": {
|
|
85
97
|
"*.js": "prettier --write",
|
|
98
|
+
"*.ts": "prettier --write",
|
|
86
99
|
"*.json": "prettier --write"
|
|
87
100
|
}
|
|
88
101
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true,
|
|
4
|
-
"es2021": true
|
|
5
|
-
},
|
|
6
|
-
"extends": ["xo", "prettier"],
|
|
7
|
-
"parserOptions": {
|
|
8
|
-
"ecmaVersion": 12,
|
|
9
|
-
"sourceType": "module"
|
|
10
|
-
},
|
|
11
|
-
"rules": {
|
|
12
|
-
"arrow-parens": ["error", "always"],
|
|
13
|
-
"camelcase": [
|
|
14
|
-
"error",
|
|
15
|
-
{
|
|
16
|
-
"properties": "never"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"indent": "off",
|
|
20
|
-
"object-curly-spacing": ["error", "always"],
|
|
21
|
-
"no-unused-vars": [
|
|
22
|
-
"error",
|
|
23
|
-
{
|
|
24
|
-
"varsIgnorePattern": "^[A-Z]"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
package/.husky/pre-commit
DELETED