Commit Graph

3115 Commits

Author SHA1 Message Date
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
371019e748 Update changelog. 2021-08-27 11:52:11 -07:00
Dillon Kearns
8808ac1926 Address review errors. 2021-08-27 11:47:31 -07:00
Dillon Kearns
01dfc4b157 Update package version. 2021-08-27 11:41:30 -07:00
Dillon Kearns
46853ca617 2.1.9 2021-08-27 11:40:03 -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
b3dbb7d4d6 Use more precise region for RouteParams rule errors. 2021-08-27 09:35:57 -07:00
Dillon Kearns
27c75fba9b Point unexposed error to more narrow exposing line. 2021-08-27 09:27:04 -07:00
Dillon Kearns
194470aaf4 Handle optional splats in rule. 2021-08-26 14:05:00 -07:00
Dillon Kearns
562a6e39fd Handle Required Splat route params in rule. 2021-08-26 13:52:51 -07:00
Dillon Kearns
81bc444ba0 Handle optional and required route params in rule. 2021-08-26 13:30:44 -07:00
Dillon Kearns
984029a9a0 Remove Debug.todo. 2021-08-26 13:06:22 -07:00
Dillon Kearns
eba4710a4e Use rule in docs site. 2021-08-26 13:04:51 -07:00
Dillon Kearns
4538e968e4 Update rule name. 2021-08-26 13:02:55 -07:00
Dillon Kearns
b3e1d7dc3a Don't run Page Module rules except on Page Modules. 2021-08-26 12:51:21 -07:00
Dillon Kearns
ae597d0587 Use decapitalize. 2021-08-26 10:41:19 -07:00
Dillon Kearns
83e1aeddb0 Move review rule to Elm package. 2021-08-26 10:27:30 -07:00
Dillon Kearns
787e64d5a0 Handle error when route params isn't a record alias. 2021-08-26 09:57:11 -07:00
Dillon Kearns
039ae1443e Add initial elm-review-elm-pages rule. 2021-08-26 09:30:07 -07:00
Dillon Kearns
fac4fd7087
Merge pull request #212 from dillonkearns/update-deps
Update dependencies.
2021-08-25 18:06:29 -07:00
Dillon Kearns
cedfa7db4a Update deps. 2021-08-25 17:54:05 -07:00
Dillon Kearns
8707affb37 Bump version in starter template. 2021-08-25 11:12:49 -07:00
Dillon Kearns
6e0fe973eb Bump version in test output. 2021-08-25 11:12:26 -07:00
Dillon Kearns
ea7f7fe601 2.1.8 2021-08-25 11:10:05 -07:00
Dillon Kearns
d40d19e827 Bump npm package. 2021-08-25 11:09:59 -07:00
Dillon Kearns
07111cfac6 Run npm i. 2021-08-25 11:09:06 -07:00
Dillon Kearns
679dbd6bee Update changelog. 2021-08-25 10:59:01 -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
Dillon Kearns
f2d64df12e
Merge pull request #207 from danmarcab/fix/html-script-embedded-crash
Use jsesc instead of JSON.stringify to avoid JSON/HTML issues
2021-08-25 10:32:59 -07:00
Dillon Kearns
47ee45542e Update cypress version. 2021-08-25 10:27:50 -07:00
Dillon Kearns
11a5be0d6b Update cache key with node version. 2021-08-25 10:16:37 -07:00
Dillon Kearns
b81402319f Include cypress in node cache. 2021-08-25 10:13:19 -07:00
Dillon Kearns
3f7c6bfafd Update cypress cache key. 2021-08-25 10:08:48 -07:00
Dillon Kearns
560c67f365 Use elmi-to-json --version to make sure it is installed before running elm-test. 2021-08-25 10:02:24 -07:00
Dillon Kearns
48d59e3fcc Try npm install instead of npm ci to fix "Downloading elmi-to-json" error message. 2021-08-25 09:59:11 -07:00
Dillon Kearns
5e48333d8c Install elmi-to-json as dev dependency to try to fix error in GitHub Actions. 2021-08-25 09:51:29 -07:00
Dillon Kearns
fbc15bdcd1 Update package-lock.json 2021-08-25 09:49:37 -07:00
Dillon Kearns
7ab2ccaf68
Merge pull request #166 from georgesboris/patch-1
Fix outdated `metaName` doc
2021-08-24 10:48:41 -07:00
Dillon Kearns
7145a25461
Linkify DataSource. 2021-08-24 09:05:04 -07:00
Dillon Kearns
5cba9538ba Change edit docs link to point to master branch. 2021-08-24 08:52:25 -07:00
Dillon Kearns
85bec30edd Update docs and MarkdownCodec plugin to latest elm-markdown. 2021-08-20 20:05:57 -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
4e5a764365 Update changelog. 2021-08-17 18:45:07 -07:00
Dillon Kearns
ffb9c280be Bump elm-pages version in template. 2021-08-17 18:39:23 -07:00
Dillon Kearns
15f190072a Update escaping test. 2021-08-17 18:38:26 -07:00
Dillon Kearns
8fd7bb8bfe 2.1.7 2021-08-17 18:34:44 -07:00