Commit Graph

2851 Commits

Author SHA1 Message Date
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
Dillon Kearns
3fd31c3098 Add elm-optimize-level-2 as a devDependency. 2021-08-17 18:30:27 -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
7a9b401160 Remove unused dependency (users need to install it separately so it's not doing any good as a dependency). 2021-08-17 12:02:24 -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
8ceeb4a30d Update end-to-end test output. 2021-08-15 12:07:32 -07:00
Dillon Kearns
9d30e7412b 2.1.6 2021-08-15 11:59:50 -07:00
Dillon Kearns
d3f0c9e86d Update package version in template project. 2021-08-15 11:59:38 -07:00
Dillon Kearns
b56d5c9993 Update changelog. 2021-08-15 11:59:01 -07:00
Dillon Kearns
88886958bf 2.1.5 2021-08-15 11:57:06 -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
a95b47c872 Add default timestamps for case of uncommited file. 2021-08-13 08:29:05 -07:00
Dillon Kearns
d41f4f5c0a Add isPlaceholder helper. 2021-08-11 13:03:52 -07:00
Dillon Kearns
150148de40
Merge pull request #201 from dillonkearns/combine-performance
Performance tuning
2021-08-09 19:57:18 -07:00