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.
Files changed (85) hide show
  1. package/README.md +2 -0
  2. package/package.json +21 -8
  3. package/.eslintrc.json +0 -28
  4. package/.husky/pre-commit +0 -4
  5. package/CHANGELOG.md +0 -1012
  6. package/app/index.js +0 -138
  7. package/bin/gtfs-to-html.js +0 -48
  8. package/config-sample.json +0 -59
  9. package/docker/Dockerfile +0 -13
  10. package/docker/README.md +0 -5
  11. package/docker/docker-compose.yml +0 -10
  12. package/examples/stop_attributes.txt +0 -6
  13. package/examples/timetable_notes.txt +0 -8
  14. package/examples/timetable_notes_references.txt +0 -8
  15. package/examples/timetable_pages.txt +0 -3
  16. package/examples/timetable_stop_order.txt +0 -16
  17. package/examples/timetables.txt +0 -9
  18. package/index.js +0 -1
  19. package/lib/file-utils.js +0 -202
  20. package/lib/formatters.js +0 -518
  21. package/lib/geojson-utils.js +0 -96
  22. package/lib/gtfs-to-html.js +0 -214
  23. package/lib/log-utils.js +0 -215
  24. package/lib/template-functions.js +0 -192
  25. package/lib/time-utils.js +0 -90
  26. package/lib/utils.js +0 -1702
  27. package/views/default/css/overview_styles.css +0 -197
  28. package/views/default/css/timetable_pdf_styles.css +0 -7
  29. package/views/default/css/timetable_styles.css +0 -447
  30. package/views/default/formatting_functions.pug +0 -113
  31. package/views/default/js/system-map.js +0 -594
  32. package/views/default/js/timetable-map.js +0 -358
  33. package/views/default/js/timetable-menu.js +0 -63
  34. package/views/default/layout.pug +0 -11
  35. package/views/default/overview.pug +0 -27
  36. package/views/default/overview_full.pug +0 -16
  37. package/views/default/timetable_continuation_as.pug +0 -7
  38. package/views/default/timetable_continuation_from.pug +0 -7
  39. package/views/default/timetable_horizontal.pug +0 -42
  40. package/views/default/timetable_hourly.pug +0 -30
  41. package/views/default/timetable_menu.pug +0 -48
  42. package/views/default/timetable_note_symbol.pug +0 -5
  43. package/views/default/timetable_stop_name.pug +0 -13
  44. package/views/default/timetable_stoptime.pug +0 -17
  45. package/views/default/timetable_vertical.pug +0 -67
  46. package/views/default/timetablepage.pug +0 -66
  47. package/views/default/timetablepage_full.pug +0 -22
  48. package/www/README.md +0 -33
  49. package/www/babel.config.js +0 -3
  50. package/www/blog/2020-07-07-New-Documentation.md +0 -12
  51. package/www/blog/2020-08-20-Version-1.0.0.md +0 -29
  52. package/www/blog/2021-11-06-CSV-Export.md +0 -26
  53. package/www/docs/additional-files.md +0 -24
  54. package/www/docs/configuration.md +0 -568
  55. package/www/docs/current-usage.md +0 -46
  56. package/www/docs/custom-templates.md +0 -13
  57. package/www/docs/introduction.md +0 -39
  58. package/www/docs/logging-sql-queries.md +0 -12
  59. package/www/docs/previewing-html-output.md +0 -24
  60. package/www/docs/processing-large-gtfs.md +0 -10
  61. package/www/docs/quick-start.md +0 -136
  62. package/www/docs/related-libraries.md +0 -54
  63. package/www/docs/reviewing-changes.md +0 -29
  64. package/www/docs/stop-attributes.md +0 -30
  65. package/www/docs/support.md +0 -12
  66. package/www/docs/timetable-notes-references.md +0 -44
  67. package/www/docs/timetable-notes.md +0 -33
  68. package/www/docs/timetable-pages.md +0 -37
  69. package/www/docs/timetable-stop-order.md +0 -63
  70. package/www/docs/timetables.md +0 -64
  71. package/www/docusaurus.config.js +0 -104
  72. package/www/package.json +0 -21
  73. package/www/sidebars.js +0 -10
  74. package/www/src/css/custom.css +0 -25
  75. package/www/src/pages/index.js +0 -270
  76. package/www/src/pages/styles.module.css +0 -53
  77. package/www/static/.nojekyll +0 -0
  78. package/www/static/img/favicon.ico +0 -0
  79. package/www/static/img/gtfs-to-html-logo.svg +0 -18
  80. package/www/static/img/overview-example.jpg +0 -0
  81. package/www/static/img/timetable-example.jpg +0 -0
  82. package/www/static/img/undraw_happy_music.svg +0 -1
  83. package/www/static/img/undraw_proud_coder.svg +0 -1
  84. package/www/static/img/undraw_spreadsheets.svg +0 -1
  85. 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.7.1",
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.0.0",
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.0.2",
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
- "husky": "^9.1.4",
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
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npx lint-staged