Dillon Kearns
|
1d459071cf
|
Remove obsolete script from dist folder (it is now inlined as a <script> in the HTML). Fixes #219.
|
2021-12-11 15:06:29 -08:00 |
|
Dillon Kearns
|
d51b9f0cc1
|
Merge pull request #260 from dillonkearns/move-internals-outside-package
Move internals outside package
|
2021-12-11 15:05:31 -08:00 |
|
Dillon Kearns
|
446525294c
|
Remove none option from elm-pages add.
|
2021-12-11 12:01:47 -08:00 |
|
Dillon Kearns
|
86eeb4cef9
|
Move internal-only modules outside of Elm package and into generated code folders.
|
2021-12-11 11:42:35 -08:00 |
|
Dillon Kearns
|
00e8fd82bd
|
Ensure that copy elm.json happens before starting elm-pages docs server.
|
2021-12-11 11:34:41 -08:00 |
|
Dillon Kearns
|
d5de1137e5
|
Fix typo in docs.
|
2021-12-10 16:11:56 -08:00 |
|
Dillon Kearns
|
010cfb9c2a
|
Rename routes to pages. Routes are the category of page, pages are the specific things to pre-render for a given route, so this terminology is more consistent and clear.
|
2021-12-10 16:03:07 -08:00 |
|
Dillon Kearns
|
6583738ab2
|
Change font to avoid system-ui.
|
2021-12-10 15:38:04 -08:00 |
|
Dillon Kearns
|
b18ff938ca
|
Update font.
|
2021-12-10 15:28:09 -08:00 |
|
Dillon Kearns
|
0fe75971eb
|
Use system-ui for starter.
|
2021-12-10 12:08:22 -08:00 |
|
Dillon Kearns
|
e2a64693ff
|
Update Page.elm docs.
|
2021-12-10 12:05:31 -08:00 |
|
Dillon Kearns
|
7b53e782a3
|
Update starter template app.
|
2021-12-10 11:34:51 -08:00 |
|
Dillon Kearns
|
b67a66d052
|
Update template.
|
2021-12-10 11:21:39 -08:00 |
|
Dillon Kearns
|
d675b2c13f
|
Change syntax for constructor function to avoid constructor error.
|
2021-12-10 10:50:27 -08:00 |
|
Dillon Kearns
|
d752866d4e
|
Use empty records instead of empty tuples for stateless Page Module's Model. Tweak Page builder API. Add option for local and shared state in generators.
|
2021-12-10 09:52:12 -08:00 |
|
Dillon Kearns
|
0649fb6bad
|
Update init template.
|
2021-12-01 15:38:08 -08:00 |
|
Shea Kelly
|
ce6fb34b1b
|
adding https support using devcert
|
2021-11-06 12:13:26 +11:00 |
|
Dillon Kearns
|
840cb83d36
|
Add meta tag that needs escaping to end-to-end escaping test, and fix escaping issue in SEO attributes.
|
2021-10-26 10:40:04 -07:00 |
|
Dillon Kearns
|
26101b402a
|
Merge pull request #236 from j-maas/fix-head-path-separator
Use Posix-style separators in head tags
|
2021-10-20 14:16:15 -07:00 |
|
Dillon Kearns
|
c2793585ac
|
Merge branch 'master' into pr/234
|
2021-10-16 14:29:44 -07:00 |
|
Dillon Kearns
|
807ea6517b
|
Merge branch 'master' into pr/236
|
2021-10-16 09:23:47 -07:00 |
|
Dillon Kearns
|
3ece0dddc5
|
Merge pull request #237 from j-maas/fix-manifest-missing-base
Fix manifest URL missing base
|
2021-10-16 09:19:33 -07:00 |
|
Dillon Kearns
|
51acc3263c
|
Extract constant.
|
2021-10-07 13:15:25 -07:00 |
|
Dillon Kearns
|
b876f06139
|
Test escaping examples both with and without --debug flag. Fix output without debug flag.
|
2021-10-07 12:05:13 -07:00 |
|
Dillon Kearns
|
c91b01d5a4
|
Port over HTML to string helpers from elm-explorations/test. TODO - still need to port the escaping fixes I did to the elm-explorations/test implementation.
|
2021-10-07 11:34:08 -07:00 |
|
Dillon Kearns
|
81fbbb6518
|
Add missing closing quote.
|
2021-10-02 16:54:32 -07:00 |
|
Dillon Kearns
|
6e6e0beeb0
|
Run prettier on file.
|
2021-10-02 16:53:16 -07:00 |
|
Johannes Maas
|
0359f916d4
|
Fix manifest URL missing base
|
2021-10-02 19:27:52 +02:00 |
|
Johannes Maas
|
b445856ad2
|
Use Posix-style separators in head tags
Previously, on Windows some <head> tags contained backslashes as separators.
|
2021-10-02 19:17:46 +02:00 |
|
Johannes Maas
|
cbad8ad8ad
|
Fix empty base handling
|
2021-10-02 17:26:05 +02:00 |
|
Johannes Maas
|
42e465b4d8
|
Document why req.url is always the path
|
2021-10-02 17:02:25 +02:00 |
|
Johannes Maas
|
483381aaaa
|
Fix base middleware infix detection and refactor it
|
2021-10-02 16:52:42 +02:00 |
|
Johannes Maas
|
1c83d4e219
|
Fix deprecated URL parsing
|
2021-10-02 16:45:21 +02:00 |
|
Johannes Maas
|
1b3859ab9a
|
Fix error message for invalid base
|
2021-10-02 15:29:51 +02:00 |
|
Johannes Maas
|
beca0367e3
|
Refactor base normalization
|
2021-10-02 15:29:26 +02:00 |
|
Y0hy0h
|
7ba44a27af
|
Fix issues with trailing slashes in the base
|
2021-10-02 14:55:25 +02:00 |
|
Dillon Kearns
|
5ed983a92f
|
Allow some more dead-code elimination in browser Elm code through the generated code stripping off some CLI-only code.
|
2021-09-27 10:19:49 -07:00 |
|
Dillon Kearns
|
93955b00e3
|
Create .elm-pages folder from init command to ensure that the initial project is valid when running elm install command. Fixes #205.
|
2021-08-27 15:05:40 -07:00 |
|
Dillon Kearns
|
01dfc4b157
|
Update package version.
|
2021-08-27 11:41:30 -07:00 |
|
Dillon Kearns
|
f93252e79f
|
Add elm-review to starter template.
|
2021-08-27 11:37:34 -07:00 |
|
Dillon Kearns
|
7d25c16ee8
|
Run elm-review in build if there are errors.
|
2021-08-27 11:36:03 -07:00 |
|
Dillon Kearns
|
7d88bc74f2
|
Remove extra log statement.
|
2021-08-27 11:35:46 -07:00 |
|
Dillon Kearns
|
f40e1d0db2
|
Give an error if elm-review isn't found on the PATH.
|
2021-08-27 10:59:35 -07:00 |
|
Dillon Kearns
|
87b60e4856
|
Run elm-review when errors point to generated code.
|
2021-08-27 10:27:37 -07:00 |
|
Dillon Kearns
|
8707affb37
|
Bump version in starter template.
|
2021-08-25 11:12:49 -07:00 |
|
Dillon Kearns
|
e26b361ac6
|
Add test case for <script></script> JSON escaping and only run it within the pre-rendered HTML.
|
2021-08-25 10:55:45 -07:00 |
|
Daniel Marin
|
785c7a51dd
|
Use jsesc instead of JSON.stringify to avoid issues
As explained here: https://mathiasbynens.be/notes/etago
One can run into issues when trying to embed JSON containing
HTML with <script> elements inside a <script> tag.
Switching to a utility with support for this fixes the issue:
https://github.com/mathiasbynens/jsesc#isscriptcontext
|
2021-08-20 17:55:51 +01:00 |
|
Dillon Kearns
|
ffb9c280be
|
Bump elm-pages version in template.
|
2021-08-17 18:39:23 -07:00 |
|
Dillon Kearns
|
19f5e72edf
|
Include elm-optimize-level-2 dependency in init template, as well as an elm-tooling config.
|
2021-08-17 17:19:11 -07:00 |
|
Dillon Kearns
|
06c661e8b6
|
Avoid printing duplicate error message for compiler errors.
|
2021-08-17 12:02:39 -07:00 |
|
Dillon Kearns
|
baac8711f9
|
Check for elm and elm-optimize-level-2 on the PATH before running build.
|
2021-08-17 11:53:06 -07:00 |
|
Dillon Kearns
|
d3f0c9e86d
|
Update package version in template project.
|
2021-08-15 11:59:38 -07:00 |
|
Dillon Kearns
|
3629daa512
|
Fix "undefined" error printing to show compiler error, and use console.trace for unhandled errors.
|
2021-08-15 11:56:55 -07:00 |
|
Dillon Kearns
|
4ce6b18ed2
|
Skip unnecessary 404 check in build to avoid extra computations.
|
2021-08-09 19:43:06 -07:00 |
|
Dillon Kearns
|
a1078e65c9
|
Remove redundant log statement.
|
2021-08-09 19:12:24 -07:00 |
|
Dillon Kearns
|
1526417720
|
Update versions in init template.
|
2021-08-03 13:39:44 -07:00 |
|
Dillon Kearns
|
55b122cb70
|
Refer to latest elm-pages in init template.
|
2021-08-02 17:49:45 -07:00 |
|
Dillon Kearns
|
f2402899f6
|
Clean up error message printing in build and dev server.
|
2021-08-02 17:38:38 -07:00 |
|
Dillon Kearns
|
e15e3be999
|
Fix package version in init template.
|
2021-08-01 16:11:15 -07:00 |
|
Dillon Kearns
|
b553c6fa98
|
Fix template.
|
2021-08-01 14:26:32 -07:00 |
|
Dillon Kearns
|
c1fb9c3436
|
Remove obsolete argument.
|
2021-08-01 10:23:20 -07:00 |
|
Dillon Kearns
|
dc60b4e6c3
|
Update template package.json file.
|
2021-07-31 20:37:20 -07:00 |
|
Dillon Kearns
|
2d8cc895da
|
Use published package in template elm.json file.
|
2021-07-31 20:27:17 -07:00 |
|
Dillon Kearns
|
51f753845f
|
Update generated file.
|
2021-07-31 20:09:23 -07:00 |
|
Dillon Kearns
|
1d07bff182
|
Skip removing cache dir if it doesn't exist.
|
2021-07-31 17:01:56 -07:00 |
|
Dillon Kearns
|
c7a76ed605
|
Add keep-cache flag to explicitly keep HTTP/JS port cache if used.
|
2021-07-31 16:50:28 -07:00 |
|
Dillon Kearns
|
b78f8c008b
|
Rename types in ApiRoute module.
|
2021-07-30 15:35:11 -07:00 |
|
Dillon Kearns
|
8678c95208
|
Rename internal module.
|
2021-07-30 15:21:16 -07:00 |
|
Dillon Kearns
|
de5ceb24ab
|
Update some references to renamed modules.
|
2021-07-30 15:18:55 -07:00 |
|
Dillon Kearns
|
8575d56284
|
Rename internal module.
|
2021-07-30 15:13:32 -07:00 |
|
Dillon Kearns
|
43948c6b39
|
Rename internal module.
|
2021-07-30 15:08:30 -07:00 |
|
Dillon Kearns
|
89ea8b67fb
|
Update template.
|
2021-07-30 14:58:42 -07:00 |
|
Dillon Kearns
|
a8450988dd
|
Dev server was mixing up requests after serving a compiler error. This makes it resilient to that so it doesn't get into that state.
|
2021-07-30 09:58:59 -07:00 |
|
Dillon Kearns
|
f3a7309085
|
Formatting.
|
2021-07-30 09:58:21 -07:00 |
|
Dillon Kearns
|
6ee8424cf5
|
elm-formatting.
|
2021-07-29 14:19:22 -07:00 |
|
Dillon Kearns
|
979fa5ce4c
|
Stop using serverless route in example temporarily.
|
2021-07-29 14:17:32 -07:00 |
|
Dillon Kearns
|
c0891afb13
|
Remove serverless/on-demand helpers temporarily since they're not going to be in the initial 2.0 release.
|
2021-07-29 14:13:22 -07:00 |
|
Dillon Kearns
|
f61f4614d8
|
Update template.
|
2021-07-28 10:29:11 -07:00 |
|
Dillon Kearns
|
5595edeee8
|
Remove future NodeJS optional chain syntax.
|
2021-07-28 10:22:07 -07:00 |
|
Dillon Kearns
|
5747c2f030
|
Use Shared.Msg instead of extra layer of abstraction for sub-msg type.
|
2021-07-27 10:48:42 -07:00 |
|
Dillon Kearns
|
eadabe1513
|
Remove log statement.
|
2021-07-26 17:06:46 -07:00 |
|
Dillon Kearns
|
3b2af1e9a8
|
Don't render hmr script load in builds (only dev-server).
|
2021-07-26 15:39:10 -07:00 |
|
Dillon Kearns
|
449e32cf9c
|
Fail build if elm-optimize-level-2 isn't found, and print error output (for example if Debug.log's are found).
|
2021-07-26 12:40:50 -07:00 |
|
Dillon Kearns
|
69cba32d90
|
Use absolute URL for manifest.json link since there is no more base tag.
|
2021-07-26 08:35:49 -07:00 |
|
Dillon Kearns
|
aafd5a29e5
|
Rename frontmatter to route.
|
2021-07-21 14:53:27 -07:00 |
|
Dillon Kearns
|
573c6d72dd
|
Handle base path for 404 pages.
|
2021-07-21 14:42:58 -07:00 |
|
Dillon Kearns
|
00c91c8e9d
|
Include base path in ProgramConfig.
|
2021-07-21 14:29:37 -07:00 |
|
Dillon Kearns
|
eef18eee93
|
Use setImmediate to enqueue tasks sequentially so the work is delegated to multiple threads.
|
2021-07-20 14:47:58 -07:00 |
|
Dillon Kearns
|
951d57a12a
|
Enqueue dev server response work when thread pool is all busy.
|
2021-07-20 14:14:56 -07:00 |
|
Dillon Kearns
|
4ede380fab
|
Remove baseUrl from model, parse Path into the actual path including the base URL.
|
2021-07-19 20:59:42 -07:00 |
|
Dillon Kearns
|
c855875e97
|
Normalize base path arguments.
|
2021-07-19 18:58:58 -07:00 |
|
Dillon Kearns
|
a264ce10f2
|
Add --base option, and remove <base> tags.
|
2021-07-19 18:39:23 -07:00 |
|
Dillon Kearns
|
b241727a86
|
Use serveStatic to serve compiled elm.js for browser using etags/modified-dates to ensure 304's when possible.
|
2021-07-17 17:26:30 -07:00 |
|
Dillon Kearns
|
4e88d51e85
|
Cache Port DataSources like HTTP is cached.
|
2021-07-17 15:16:13 -07:00 |
|
Dillon Kearns
|
7b3f9889b4
|
Exclude the .elm-pages folder from the source directories watchers.
|
2021-07-17 14:14:32 -07:00 |
|
Dillon Kearns
|
d9f3372669
|
Add base middleware function.
|
2021-07-16 20:28:46 -07:00 |
|
Dillon Kearns
|
937457fb52
|
Catch elm-optimize-level-2 errors and run elm make to display errors (since elm-optimize-level-2 doesn't have report option.
|
2021-07-14 19:03:50 -07:00 |
|
Dillon Kearns
|
c85a5e82f4
|
Capture elm compiler errors in order to log them cleanly without overlapping process logs.
|
2021-07-14 18:07:20 -07:00 |
|
Dillon Kearns
|
22c5fc968d
|
Update error formatting.
|
2021-07-14 18:05:03 -07:00 |
|
Dillon Kearns
|
fb73faaf3b
|
Remove extra log.
|
2021-07-14 15:56:22 -07:00 |
|