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