@amagaki/amagaki 1.10.2 → 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 (49) hide show
  1. package/README.md +70 -0
  2. package/dist/src/builder.d.ts +15 -17
  3. package/dist/src/builder.js +128 -33
  4. package/dist/src/builder.js.map +1 -1
  5. package/dist/src/cli.d.ts +1 -1
  6. package/dist/src/cli.js +17 -3
  7. package/dist/src/cli.js.map +1 -1
  8. package/dist/src/collection.js +4 -6
  9. package/dist/src/collection.js.map +1 -1
  10. package/dist/src/commands/build.js +3 -26
  11. package/dist/src/commands/build.js.map +1 -1
  12. package/dist/src/commands/export.d.ts +8 -0
  13. package/dist/src/commands/export.js +22 -0
  14. package/dist/src/commands/export.js.map +1 -0
  15. package/dist/src/commands/global.d.ts +2 -0
  16. package/dist/src/commands/global.js +14 -0
  17. package/dist/src/commands/global.js.map +1 -1
  18. package/dist/src/commands/serve.js +4 -27
  19. package/dist/src/commands/serve.js.map +1 -1
  20. package/dist/src/document.js +18 -21
  21. package/dist/src/document.js.map +1 -1
  22. package/dist/src/environment.js +6 -6
  23. package/dist/src/environment.js.map +1 -1
  24. package/dist/src/gitData.d.ts +15 -0
  25. package/dist/src/gitData.js +68 -0
  26. package/dist/src/gitData.js.map +1 -0
  27. package/dist/src/locale.js +1 -2
  28. package/dist/src/locale.js.map +1 -1
  29. package/dist/src/plugins/nunjucks.js +6 -3
  30. package/dist/src/plugins/nunjucks.js.map +1 -1
  31. package/dist/src/pod.js +7 -9
  32. package/dist/src/pod.js.map +1 -1
  33. package/dist/src/profile.js +1 -2
  34. package/dist/src/profile.js.map +1 -1
  35. package/dist/src/router.d.ts +3 -3
  36. package/dist/src/router.js +1 -1
  37. package/dist/src/router.js.map +1 -1
  38. package/dist/src/server.d.ts +3 -1
  39. package/dist/src/server.js +37 -15
  40. package/dist/src/server.js.map +1 -1
  41. package/dist/src/staticFile.js +1 -1
  42. package/dist/src/staticFile.js.map +1 -1
  43. package/dist/src/url.js +5 -9
  44. package/dist/src/url.js.map +1 -1
  45. package/dist/src/utils.js +3 -6
  46. package/dist/src/utils.js.map +1 -1
  47. package/dist/tsconfig.tsbuildinfo +1 -0
  48. package/package.json +15 -13
  49. package/CHANGELOG.md +0 -268
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@amagaki/amagaki",
3
- "version": "1.10.2",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://amagaki.dev",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git://github.com/blinkk/amagaki.git"
8
+ "url": "git://github.com/blinkk/amagaki.git",
9
+ "directory": "packages/amagaki"
9
10
  },
10
11
  "engines": {
11
12
  "node": ">=14"
@@ -28,16 +29,13 @@
28
29
  "dev:start": "npm run copy; npm run compile",
29
30
  "docs": "typedoc",
30
31
  "docs:ci": "typedoc --out public/api",
31
- "fix": "node ./node_modules/eslint/bin/eslint --fix src/**/*.ts",
32
+ "fix": "eslint --fix src/**/*.ts",
32
33
  "prepare": "rm -rf dist/; npm run dev:start;",
33
34
  "start:example": "node ./dist/src/cli.js serve example",
34
35
  "test": "ava",
35
36
  "test:watch": "ava --watch"
36
37
  },
37
38
  "ava": {
38
- "nonSemVerExperiments": {
39
- "sharedWorkers": true
40
- },
41
39
  "require": [
42
40
  "ts-node/register"
43
41
  ],
@@ -49,11 +47,12 @@
49
47
  ]
50
48
  },
51
49
  "devDependencies": {
52
- "@ava/get-port": "^0.1.1",
53
50
  "@types/async": "^3.2.6",
54
51
  "@types/cli-progress": "^3.9.1",
55
52
  "@types/cli-table": "^0.3.0",
53
+ "@types/compression": "^1.7.2",
56
54
  "@types/express": "^4.17.11",
55
+ "@types/express-serve-static-core": "^4.17.21",
57
56
  "@types/glob": "^7.1.3",
58
57
  "@types/js-yaml": "^4.0.1",
59
58
  "@types/marked": "^2.0.2",
@@ -61,27 +60,30 @@
61
60
  "@types/node": "^15.0.1",
62
61
  "@types/nunjucks": "^3.1.4",
63
62
  "@types/semver": "^7.3.5",
64
- "ava": "^3.15.0",
63
+ "ava": "^4.0.1",
64
+ "del": "^6.0.0",
65
65
  "eslint": "^7.25.0",
66
66
  "eslint-plugin-sort-class-members": "^1.11.0",
67
+ "get-port": "^5.1.1",
67
68
  "gts": "^3.1.0",
68
69
  "nodemon": "^2.0.7",
69
70
  "ts-loader": "^9.1.1",
70
- "ts-node": "^9.1.1",
71
- "typedoc": "^0.20.36",
72
- "typescript": "^4.2.4"
71
+ "ts-node": "^10.5.0",
72
+ "typedoc": "^0.22.12",
73
+ "typescript": "^4.3.5"
73
74
  },
74
75
  "dependencies": {
75
76
  "@blinkk/editor.dev-ui": "^3.11.1",
76
- "@types/express-serve-static-core": "^4.17.21",
77
77
  "async": "^3.2.0",
78
- "chalk": "2.4.2",
78
+ "chalk": "^2.4.2",
79
79
  "chokidar": "^3.5.1",
80
80
  "cli-progress": "^3.9.0",
81
81
  "cli-table": "^0.3.6",
82
82
  "commander": "^7.2.0",
83
+ "compression": "^1.7.4",
83
84
  "express": "^4.17.1",
84
85
  "glob": "^7.1.6",
86
+ "isomorphic-git": "^1.12.1",
85
87
  "js-yaml": "^4.1.0",
86
88
  "marked": "^2.0.3",
87
89
  "mime-types": "^2.1.30",
package/CHANGELOG.md DELETED
@@ -1,268 +0,0 @@
1
- # Changelog
2
-
3
- ### [1.10.2](https://www.github.com/blinkk/amagaki/compare/amagaki-v1.10.1...amagaki-v1.10.2) (2022-02-19)
4
-
5
-
6
- ### Miscellaneous Chores
7
-
8
- * release 10.10.2 ([dc74277](https://www.github.com/blinkk/amagaki/commit/dc74277c70ae364abd7aebc0e0de5cb0807f2e83))
9
-
10
- ### [1.10.1](https://www.github.com/blinkk/amagaki/compare/v1.10.0...v1.10.1) (2022-02-10)
11
-
12
-
13
- ### Bug Fixes
14
-
15
- * support document-level defaultLocale ([f5cfdc1](https://www.github.com/blinkk/amagaki/commit/f5cfdc1487cae1db763a0636be422231e41b30a0))
16
-
17
- ## [1.10.0](https://www.github.com/blinkk/amagaki/compare/v1.9.1...v1.10.0) (2022-01-31)
18
-
19
-
20
- ### Features
21
-
22
- * automatically find open port when using dev server [#136](https://www.github.com/blinkk/amagaki/issues/136) ([7b368a2](https://www.github.com/blinkk/amagaki/commit/7b368a2c65ac689824439861b4b366d3662fa5ba))
23
-
24
-
25
- ### Bug Fixes
26
-
27
- * update deepWalk dependency ([d89fdee](https://www.github.com/blinkk/amagaki/commit/d89fdeea1f6757e664ab7033da3137c62c12b269))
28
-
29
- ### [1.9.1](https://www.github.com/blinkk/amagaki/compare/v1.9.0...v1.9.1) (2022-01-21)
30
-
31
-
32
- ### Bug Fixes
33
-
34
- * color output in console [#134](https://www.github.com/blinkk/amagaki/issues/134) ([346be78](https://www.github.com/blinkk/amagaki/commit/346be78238a8e6fd5cd287b9b943b909e104e08e))
35
-
36
- ## [1.9.0](https://www.github.com/blinkk/amagaki/compare/v1.9.0...v1.9.0) (2022-01-16)
37
-
38
-
39
- ### Miscellaneous Chores
40
-
41
- * release 1.9.0 ([329a8c9](https://www.github.com/blinkk/amagaki/commit/329a8c9ba3c23530c1acef698427980b824ce7e5))
42
-
43
- ## [1.9.0](https://www.github.com/blinkk/amagaki/compare/v1.8.0...v1.9.0) (2022-01-15)
44
-
45
-
46
- ### Features
47
-
48
- * add create-amagaki-site [#129](https://www.github.com/blinkk/amagaki/issues/129) ([fc06e1f](https://www.github.com/blinkk/amagaki/commit/fc06e1fa1d8e81e31d19a9639b495d9bf68f6cc6))
49
-
50
-
51
- ### Bug Fixes
52
-
53
- * support runtime reloading of src ([a06c40a](https://www.github.com/blinkk/amagaki/commit/a06c40a094267309633ad0b9fbc1efc823281830))
54
-
55
- ## [1.8.0](https://www.github.com/blinkk/amagaki/compare/v1.7.2...v1.8.0) (2021-12-08)
56
-
57
-
58
- ### Features
59
-
60
- * add date to builder ([cb6d4be](https://www.github.com/blinkk/amagaki/commit/cb6d4be0f115fc26aeac488ccc7b64207aca6638))
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * keep build temp dir on same volume as output dir ([81cfd74](https://www.github.com/blinkk/amagaki/commit/81cfd745791ddfc7680d093a2864e745c5c0bf36))
66
-
67
- ### [1.7.2](https://www.github.com/blinkk/amagaki/compare/v1.7.1...v1.7.2) (2021-11-24)
68
-
69
-
70
- ### Bug Fixes
71
-
72
- * improve file watching and the dev server ([1c765e8](https://www.github.com/blinkk/amagaki/commit/1c765e801f266eff90c6d9d4be32587d3f751d79))
73
-
74
- ### [1.7.1](https://www.github.com/blinkk/amagaki/compare/v1.7.0...v1.7.1) (2021-11-24)
75
-
76
-
77
- ### Bug Fixes
78
-
79
- * refresh the router when static files change ([10f3ffb](https://www.github.com/blinkk/amagaki/commit/10f3ffbebda71c0c4e6a0efaf2ddbdd1290e1d8e))
80
-
81
- ## [1.7.0](https://www.github.com/blinkk/amagaki/compare/v1.6.2...v1.7.0) (2021-11-16)
82
-
83
-
84
- ### Features
85
-
86
- * add ability to use a function as the default view ([784a34e](https://www.github.com/blinkk/amagaki/commit/784a34eb6fde644980837736001e3392f0ad9b7d))
87
-
88
- ### [1.6.2](https://www.github.com/blinkk/amagaki/compare/v1.6.1...v1.6.2) (2021-11-05)
89
-
90
-
91
- ### Bug Fixes
92
-
93
- * document sorting and add deleteFileAsync ([774e445](https://www.github.com/blinkk/amagaki/commit/774e4450d83df82855d6b96a3636d07e108eaa52))
94
-
95
- ### [1.6.1](https://www.github.com/blinkk/amagaki/compare/v1.6.0...v1.6.1) (2021-11-01)
96
-
97
-
98
- ### Bug Fixes
99
-
100
- * invalidate cache when writing files ([cea678a](https://www.github.com/blinkk/amagaki/commit/cea678a68c80709044bed62525ec67d279cc7ed2))
101
-
102
- ## [1.6.0](https://www.github.com/blinkk/amagaki/compare/v1.5.1...v1.6.0) (2021-10-16)
103
-
104
-
105
- ### Features
106
-
107
- * enable use of the environment name in amagaki.ts ([0cf6b85](https://www.github.com/blinkk/amagaki/commit/0cf6b857b693b6e2b62586e6eb673697e111618a))
108
-
109
- ### [1.5.1](https://www.github.com/blinkk/amagaki/compare/v1.5.0...v1.5.1) (2021-10-16)
110
-
111
-
112
- ### Bug Fixes
113
-
114
- * bug involving autoreload while connection is open ([39e17cb](https://www.github.com/blinkk/amagaki/commit/39e17cb2daca522c0586a445cabf2f84815e7224))
115
-
116
- ## [1.5.0](https://www.github.com/blinkk/amagaki/compare/v1.4.0...v1.5.0) (2021-10-16)
117
-
118
-
119
- ### Features
120
-
121
- * add path format plugin [#98](https://www.github.com/blinkk/amagaki/issues/98) ([64f5393](https://www.github.com/blinkk/amagaki/commit/64f53934924c9a1ebe43da027eec05ddb0377609))
122
- * autoreload server when plugins change ([757be9e](https://www.github.com/blinkk/amagaki/commit/757be9e1c5ef56fc2dc422796c15eb17c0113d02))
123
-
124
- ## [1.4.0](https://www.github.com/blinkk/amagaki/compare/v1.3.2...v1.4.0) (2021-09-22)
125
-
126
-
127
- ### Features
128
-
129
- * improve error logging during full site build ([9432b51](https://www.github.com/blinkk/amagaki/commit/9432b5135dbc9ae06a677fd573ad86a0bb481e96))
130
- * improve nunjucks error output ([745622b](https://www.github.com/blinkk/amagaki/commit/745622b584a8f14e17d86dad3ddba6b37560901f))
131
-
132
- ### [1.3.2](https://www.github.com/blinkk/amagaki/compare/v1.3.1...v1.3.2) (2021-08-16)
133
-
134
-
135
- ### Bug Fixes
136
-
137
- * do not use references when dumping yaml ([a9955df](https://www.github.com/blinkk/amagaki/commit/a9955df98f1c2dba316a30581e2db7324a44ca66))
138
-
139
- ### [1.3.1](https://www.github.com/blinkk/amagaki/compare/v1.3.0...v1.3.1) (2021-08-03)
140
-
141
-
142
- ### Bug Fixes
143
-
144
- * issue with recording preferred strings ([838b229](https://www.github.com/blinkk/amagaki/commit/838b229838d1584323e6d9aa4b4829a11a67b6c6))
145
- * support relative urls when fake documents are passed ([c84790e](https://www.github.com/blinkk/amagaki/commit/c84790eadac6528eec0f710a183810f5f333a8e7))
146
-
147
- ## [1.3.0](https://www.github.com/blinkk/amagaki/compare/v1.2.0...v1.3.0) (2021-07-27)
148
-
149
-
150
- ### Features
151
-
152
- * add -l flag to build for collecting missing translations ([384e285](https://www.github.com/blinkk/amagaki/commit/384e28520c7b3eec313cacc80c2737847bbf92e8))
153
-
154
- ## [1.2.0](https://www.github.com/blinkk/amagaki/compare/v1.1.3...v1.2.0) (2021-07-12)
155
-
156
-
157
- ### Features
158
-
159
- * add DataType check for pod objects ([219144d](https://www.github.com/blinkk/amagaki/commit/219144d93968432a3cd11562b851fad8c7a687f8))
160
- * add support for incremental builds using patterns ([#109](https://www.github.com/blinkk/amagaki/issues/109)) ([d35be52](https://www.github.com/blinkk/amagaki/commit/d35be520f41277351e8c8e7952dc155657693c0f))
161
- * add support for per-template profiling [#25](https://www.github.com/blinkk/amagaki/issues/25) ([#107](https://www.github.com/blinkk/amagaki/issues/107)) ([8cb7ca1](https://www.github.com/blinkk/amagaki/commit/8cb7ca11ca9bf15be2471f07a9ff3734da3c4be1))
162
-
163
-
164
- ### Bug Fixes
165
-
166
- * allow localized-only pages without root paths [#111](https://www.github.com/blinkk/amagaki/issues/111) ([a7c7f11](https://www.github.com/blinkk/amagaki/commit/a7c7f1195149619fdc107ecdc0731311764d5aa4))
167
-
168
- ### [1.1.3](https://www.github.com/blinkk/amagaki/compare/v1.1.2...v1.1.3) (2021-06-28)
169
-
170
-
171
- ### Bug Fixes
172
-
173
- * fix and clean up missing string recording ([22430db](https://www.github.com/blinkk/amagaki/commit/22430dba5b54e0971cb129daed8786ba90d083cd))
174
- * rename route.path to route.podPath and add sample ([#105](https://www.github.com/blinkk/amagaki/issues/105)) ([945976a](https://www.github.com/blinkk/amagaki/commit/945976a5d409347ec46cb36e845fcd4b0970c4a3))
175
-
176
- ### [1.1.2](https://www.github.com/blinkk/amagaki/compare/v1.1.1...v1.1.2) (2021-06-24)
177
-
178
-
179
- ### Bug Fixes
180
-
181
- * fix serialization of simple pod.string types ([f4acadb](https://www.github.com/blinkk/amagaki/commit/f4acadbcf52e84f8e3adddfb8320b092785bdb4d))
182
-
183
- ### [1.1.1](https://www.github.com/blinkk/amagaki/compare/v1.1.0...v1.1.1) (2021-06-23)
184
-
185
-
186
- ### Bug Fixes
187
-
188
- * allow IfLocale and pod.string YAML types to roundtrip ([e9216f7](https://www.github.com/blinkk/amagaki/commit/e9216f7401d15b23c79337718520b2a14d7f4bac))
189
-
190
- ## [1.1.0](https://www.github.com/blinkk/amagaki/compare/v1.0.1...v1.1.0) (2021-06-22)
191
-
192
-
193
- ### Features
194
-
195
- * add build options to the route building ([#101](https://www.github.com/blinkk/amagaki/issues/101)) ([3796761](https://www.github.com/blinkk/amagaki/commit/37967616a0ea4bede673eb2357a2d6c0555b19dd))
196
-
197
-
198
- ### Bug Fixes
199
-
200
- * add contentType for StaticRoute ([a66d2f3](https://www.github.com/blinkk/amagaki/commit/a66d2f36802f57c2b93939c6ec4a6a416f3c877f))
201
- * Benchmark not using current amagaki build. ([d71b3bc](https://www.github.com/blinkk/amagaki/commit/d71b3bc14ec280727369892499ea1184488931cf))
202
- * Fixing cache for benchmark data file. ([4ec8430](https://www.github.com/blinkk/amagaki/commit/4ec8430b6513d9c6eec94e08e7b488c11965dd7f))
203
- * Improve the benchmark profiling output and reduce size of the history. ([a8708d7](https://www.github.com/blinkk/amagaki/commit/a8708d763c6f532462d4218997b167723b91b7ab))
204
- * Increasing size of history for benchmark results. ([508a71e](https://www.github.com/blinkk/amagaki/commit/508a71e59637ea072c89e8b96ee96fa34ad4204d))
205
- * Restore benchmarking performance regression testing for pushes. ([5f372bc](https://www.github.com/blinkk/amagaki/commit/5f372bc2b6c87075117f63e1e8077f0fa26d9b59))
206
- * Updating how the benchmark caches. ([d6f2175](https://www.github.com/blinkk/amagaki/commit/d6f217501727aecc6076673876ecff5007e98ac4))
207
-
208
- ### [1.0.1](https://www.github.com/blinkk/amagaki/compare/v1.0.0...v1.0.1) (2021-06-12)
209
-
210
-
211
- ### Bug Fixes
212
-
213
- * expose environment option as a global option ([953a6da](https://www.github.com/blinkk/amagaki/commit/953a6dacca95697018f21100f9eca8e06175733d))
214
-
215
- ## [1.0.0](https://www.github.com/blinkk/amagaki/compare/v0.6.2...v1.0.0) (2021-06-08)
216
-
217
-
218
- ### ⚠ BREAKING CHANGES
219
-
220
- * Async triggers for plugins (#90)
221
-
222
- ### Features
223
-
224
- * Async triggers for plugins ([#90](https://www.github.com/blinkk/amagaki/issues/90)) ([f2dcd73](https://www.github.com/blinkk/amagaki/commit/f2dcd73d25f70339830d5d7d9f106dbb0e187705))
225
-
226
- ### [0.6.2](https://www.github.com/blinkk/amagaki/compare/v0.6.1...v0.6.2) (2021-05-30)
227
-
228
-
229
- ### Bug Fixes
230
-
231
- * remove superfluous file ([cf760c2](https://www.github.com/blinkk/amagaki/commit/cf760c2d7fc0e5b562ab25b1da4eddac66e36365))
232
-
233
- ### [0.6.1](https://www.github.com/blinkk/amagaki/compare/v0.6.0...v0.6.1) (2021-05-30)
234
-
235
-
236
- ### Bug Fixes
237
-
238
- * fix package bin path ([80ac1f1](https://www.github.com/blinkk/amagaki/commit/80ac1f1e809505cd37578798b6b432bf5fc626ef))
239
-
240
- ## [0.6.0](https://www.github.com/blinkk/amagaki/compare/v0.5.0...v0.6.0) (2021-05-30)
241
-
242
-
243
- ### Features
244
-
245
- * add await filter, remove dead test filter ([b228fdc](https://www.github.com/blinkk/amagaki/commit/b228fdce88ae1da9cd37bfd56432b8ea4d6fa9a6))
246
- * add IfLocale yaml type ([fa433b6](https://www.github.com/blinkk/amagaki/commit/fa433b670f2a663acc93da5b6370e52e541fb6f6))
247
- * implement pod.meta yaml type ([2164877](https://www.github.com/blinkk/amagaki/commit/2164877e2a989f1984adaf288a399573fe1352bb))
248
-
249
-
250
- ### Bug Fixes
251
-
252
- * fix packaged version ([59f9e7f](https://www.github.com/blinkk/amagaki/commit/59f9e7f71c4eaadffab6af6eea589593f8ab10ef))
253
-
254
- ## [0.5.0](https://www.github.com/blinkk/amagaki/compare/v0.4.0...v0.5.0) (2021-05-28)
255
-
256
-
257
- ### Features
258
-
259
- * add contributor avatars to website homepage ([6f34053](https://www.github.com/blinkk/amagaki/commit/6f34053a9408f1fe5ede06a1d432e986a42ebe10))
260
- * allow configuration via amagaki.ts ([f685207](https://www.github.com/blinkk/amagaki/commit/f6852073f965aef32a04a44b666c74773a435ed9))
261
- * autoreload server when amagaki.{t|j}s changes ([c8d1a3d](https://www.github.com/blinkk/amagaki/commit/c8d1a3d1353c3e0cf1cfcd93fb8359fbc22ddb43))
262
-
263
-
264
- ### Bug Fixes
265
-
266
- * remove debug content in footer ([f0e7e06](https://www.github.com/blinkk/amagaki/commit/f0e7e066442eaab8b4c95e0701faaf2e50c08e48))
267
- * remove example using extraneous yaml library ([b1d991d](https://www.github.com/blinkk/amagaki/commit/b1d991d1e77779ecb4b550f41553d1e508a4331b))
268
- * use inbuilt yaml type for test ([38c6cdc](https://www.github.com/blinkk/amagaki/commit/38c6cdc59bb83b403c9ac522487e4cfaf45d7e49))