Skip to content

Commit

Permalink
Restore buildable state
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Sep 28, 2022
1 parent 93a0ce2 commit cb9e5b6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 32 deletions.
20 changes: 19 additions & 1 deletion src/bin/css_to_ts/colorDecisions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const contexts = ["background", "text", "border", "artwork"] as const;

type Context = typeof contexts[number];

/*
const usages = [
"default",
"alt",
Expand All @@ -29,6 +30,7 @@ const usages = [
"altOverlap",
"contrastRaised"
] as const;
*/

//type Usage = typeof usages[number];

Expand All @@ -49,7 +51,23 @@ export function createParseColorDecisionName(params: {
}) {
const { colorNames } = params;

function parseColorDecisionName(desicsionName: `--${string}`): ParsedColorDecisionName {
console.log(colorNames);

function parseColorDecisionName(decisionName: `--${string}`): ParsedColorDecisionName {
console.log(decisionName);

//const parsedColorDecisionName: ParsedColorDecisionName = { } as any;

//let revArr = colorOptionName.replace(/^--/, "").split("-").reverse();

/*
--background-default-grey-hover
--background-default-grey
--border-action-low-orange-terre-battue
--background-alt-raised-grey-hover
--background-contrast-overlap-grey
*/

return null as any;
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/bin/main.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import "./colorOptions";
import "./colorDecisions";
//import "./colorDecisions";
16 changes: 0 additions & 16 deletions src/test/frameworks/cra/src/tools/StatefulObservable/README.md

This file was deleted.

15 changes: 1 addition & 14 deletions src/test/frameworks/next/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@
regenerator-runtime "^0.13.4"

"@codegouvfr/react-dsfr@file:../../../../dist":
version "0.0.4"
dependencies:
"@gouvfr/dsfr" "1.7.2"
tsafe "^1.0.1"
version "0.0.0"

"@eslint/eslintrc@^0.4.2":
version "0.4.3"
Expand All @@ -59,11 +56,6 @@
minimatch "^3.0.4"
strip-json-comments "^3.1.1"

"@gouvfr/[email protected]":
version "1.7.2"
resolved "https://registry.yarnpkg.com/@gouvfr/dsfr/-/dsfr-1.7.2.tgz#c522fce21a14989a10e30583160118c39c9c05d1"
integrity sha512-hPNtz+gHcc8m7ZPANxSOFMz4Ap+M9FHOudqoMR/+Kjl5FCOqwA6u/aoYnMJ8KqedS1k5XThFMp7jiktr53qXYw==

"@humanwhocodes/config-array@^0.5.0":
version "0.5.0"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9"
Expand Down Expand Up @@ -1754,11 +1746,6 @@ to-regex-range@^5.0.1:
dependencies:
is-number "^7.0.0"

tsafe@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.0.1.tgz#c8c4eb2d75d1478418a4941307c5dd667fd76d23"
integrity sha512-FgJ1a4rE7YbmW5QIzpsfFl4tsAp0x74FH2bVE6qODb2U8jSrwTr5/ckIazeylme5zXndVbtgKm4BZdqmoGhiPw==

tsconfig-paths@^3.14.1:
version "3.14.1"
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a"
Expand Down

0 comments on commit cb9e5b6

Please sign in to comment.