mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-29 16:44:41 +03:00
0a75e8229b
The recommendation is to break the styles API rather than the view API when moving something out of the monolith into this repo. `Nri.Icon` is not really setup for that sort of breakage. If we would prefer to have the styles break rather than the view, that will take more work. Work that can be done independent of the extraction. The transition in the monolith ought to look something like: ```elm module Nri.Icon exposing (..) import Html exposing (Html) import Nri.SvgSprite import Nri.Ui.Icon.V1 exposing (Assets, IconType) icon : { alt : String, icon : IconType } -> Html msg icon config = Nri.Ui.Icon.V1.icon assets assets : Assets {} assets = { activity = Nri.SvgSprite.activity , arrowDown = Nri.SvgSprite.arrowDown , attention_svg = Nri.Assets.attention_svg ... } ``` So hopefully, the change is still very small on the monolith side. There's maybe a bigger concern than which API breaks. `Nri.Icon` has some behavior for a11y. We could definitely change the internals over during the extraction. But, since all of these changes are value-level changes, it's very likely that we'll break something in the process. That's a bigger concern because instead of affecting the handful of Engineers working at NRI, we would be affecting the millions of people using the site. We shouldn't fear making those kinds of changes. However, we should make them when we can give them the appropriate attention they deserve. Not when one person is trying to move as fast as possible to avoid race conditions of moving modules between repos.
28 lines
1.0 KiB
JSON
28 lines
1.0 KiB
JSON
{
|
|
"version": "1.0.0",
|
|
"summary": "helpful summary of your project, less than 80 characters",
|
|
"repository": "https://github.com/user/project.git",
|
|
"license": "BSD3",
|
|
"source-directories": [
|
|
".",
|
|
"../src"
|
|
],
|
|
"exposed-modules": [],
|
|
"dependencies": {
|
|
"NoRedInk/view-extra": "2.0.0 <= v < 3.0.0",
|
|
"elm-community/string-extra": "1.4.0 <= v < 2.0.0",
|
|
"elm-lang/core": "5.1.1 <= v < 6.0.0",
|
|
"elm-lang/html": "2.0.0 <= v < 3.0.0",
|
|
"elm-lang/navigation": "2.1.0 <= v < 3.0.0",
|
|
"elm-lang/svg": "2.0.0 <= v < 3.0.0",
|
|
"evancz/url-parser": "2.0.1 <= v < 3.0.0",
|
|
"pablohirafuji/elm-markdown": "2.0.4 <= v < 3.0.0",
|
|
"rtfeldman/elm-css": "13.1.1 <= v < 14.0.0",
|
|
"rtfeldman/elm-css-helpers": "2.1.0 <= v < 3.0.0",
|
|
"rtfeldman/elm-css-util": "1.0.2 <= v < 2.0.0",
|
|
"tesk9/accessible-html": "3.0.0 <= v < 4.0.0",
|
|
"wernerdegroot/listzipper": "3.0.0 <= v < 4.0.0"
|
|
},
|
|
"elm-version": "0.18.0 <= v < 0.19.0"
|
|
}
|