mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-24 06:02:36 +03:00
manage deprecated modules
This commit is contained in:
parent
d4dfeea46b
commit
803b488efa
@ -58,6 +58,7 @@ main =
|
||||
cmd (FileStdout out) "jq" "--indent" "4" ["{ root: \"../src\", tests: .[\"exposed-modules\"] }"] "elm.json"
|
||||
|
||||
"script/deprecated-imports.csv" %> \out -> do
|
||||
getEnv "DEPRECATED_MODULES"
|
||||
elmFiles <- getDirectoryFiles "." ["src/**/*.elm", "tests/**/*.elm"]
|
||||
need (["elm.json", "script/deprecated-imports.py"] ++ elmFiles)
|
||||
cmd_ "script/deprecated-imports.py" "--imports-file" out "update"
|
||||
@ -99,10 +100,10 @@ main =
|
||||
cmd (FileStdout out) "script/format-axe-report.sh" "log/axe-report.json"
|
||||
|
||||
"log/deprecated-imports-report.txt" %> \out -> do
|
||||
getEnv "DEPRECATED_MODULES"
|
||||
elmFiles <- getDirectoryFiles "." ["src/**/*.elm", "tests/**/*.elm"]
|
||||
need (["elm.json", "script/deprecated-imports.py"] ++ elmFiles)
|
||||
-- still need to do something when this fails (e.g. run "check" instead of "report")
|
||||
cmd (FileStdout out) "script/deprecated-imports.py" "report"
|
||||
cmd (FileStdout out) "script/deprecated-imports.py" "check"
|
||||
|
||||
"log/check-exposed.txt" %> \out -> do
|
||||
elmFiles <- getDirectoryFiles "." ["src/**/*.elm"]
|
||||
|
@ -1,8 +1,19 @@
|
||||
filename,name,version
|
||||
src/Nri/Ui/ClickableSvg/V1.elm,Nri.Ui.Tooltip,1
|
||||
src/Nri/Ui/Menu/V1.elm,Nri.Ui.Tooltip,1
|
||||
src/Nri/Ui/Modal/V3.elm,Nri.Ui.Icon,3
|
||||
src/Nri/Ui/Page/V3.elm,Nri.Ui.Text,2
|
||||
src/Nri/Ui/SlideModal/V2.elm,Nri.Ui.Button,8
|
||||
src/Nri/Ui/SlideModal/V2.elm,Nri.Ui.Text,2
|
||||
src/Nri/Ui/Button/V8.elm,Html,DEPRECATED
|
||||
src/Nri/Ui/Menu/V1.elm,Nri.Ui.Tooltip,1
|
||||
src/Nri/Ui/Icon/V3.elm,Accessibility.Role,DEPRECATED
|
||||
src/Nri/Ui/Icon/V3.elm,Html,DEPRECATED
|
||||
src/Nri/Ui/Icon/V5.elm,Accessibility.Role,DEPRECATED
|
||||
src/Nri/Ui/Icon/V5.elm,Html,DEPRECATED
|
||||
src/Nri/Ui/Icon/V4.elm,Accessibility.Role,DEPRECATED
|
||||
src/Nri/Ui/Icon/V4.elm,Html,DEPRECATED
|
||||
src/Nri/Ui/Modal/V3.elm,Nri.Ui.Icon,3
|
||||
tests/Spec/Nri/Ui/Tooltip.elm,Accessibility.Aria,DEPRECATED
|
||||
tests/Spec/Nri/Ui/Tooltip.elm,Accessibility.Widget,DEPRECATED
|
||||
tests/Spec/Nri/Ui/Tooltip.elm,Html,DEPRECATED
|
||||
tests/Spec/Nri/Ui/Select.elm,Html,DEPRECATED
|
||||
tests/Spec/Nri/Ui/Select.elm,Nri.Ui.Select,5
|
||||
|
|
@ -32,4 +32,8 @@ stdenv.mkDerivation {
|
||||
# stuff we need for running builds in a `nix-shell --pure` environment.
|
||||
which
|
||||
] ++ lib.optionals stdenv.isLinux [ pkgs.fsatrace pkgs.strace pkgs.cacert ];
|
||||
|
||||
# environment variables
|
||||
DEPRECATED_MODULES =
|
||||
"Html,Accessibility,Accessibility.Aria,Accessibility.Key,Accessibility.Landmark,Accessibility.Live,Accessibility.Role,Accessibility.Style,Accessibility.Widget";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user