Skip to content

Commit

Permalink
fix(repo): Removed lint from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Nov 13, 2022
1 parent 1568a14 commit e93686b
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
# Run design tokens build prior to linting so tailwindcss is configured
- run: npx nx run design-system-tokens:build:open-system

- run: npx nx workspace-lint
# - run: npx nx workspace-lint
# - run: npx nx format:check
- run: npx nx affected --target=lint --parallel=3
# - run: npx nx affected --target=lint --parallel=3
- run: npx nx affected --target=test --parallel=3 --ci --code-coverage
- run: npx nx affected --target=build --parallel=3
- run: npx nx affected --target=semantic-release --parallel=3
Expand Down
34 changes: 34 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"eslint-config-prettier": "8.1.0",
"eslint-plugin-cypress": "^2.10.3",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "^27.1.5",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-react": "7.31.8",
"eslint-plugin-react-hooks": "4.6.0",
Expand Down
12 changes: 8 additions & 4 deletions tools/executors/typescript/design-tokens-build/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import {
mkdirSync,
readdirSync,
readFileSync,
writeFileSync
writeFileSync,
} from "fs";
import Path from "path";
import SVGO from "svgo";
import {
svgoParser,
toCssFontImportParser,
toTailwindParser
toTailwindParser,
} from "../utilities";
import { InputDataType as ToCssFontImportParserInputDataType } from "../utilities/design-token-parsers/parsers/to-css-font-import";
import { InputDataType as ToTailwindInputDataType } from "../utilities/design-token-parsers/parsers/to-tailwind";
Expand Down Expand Up @@ -310,12 +310,16 @@ export default async function (
verbose && ConsoleLogger.success(result);

if (!existsSync(Path.join(outputPath, "js"))) {
ConsoleLogger.info(`Creating token directory: ${Path.join(outputPath, "js")}`);
ConsoleLogger.info(
`Creating token directory: ${Path.join(outputPath, "js")}`
);

mkdirSync(Path.join(outputPath, "js"), { recursive: true });
}

ConsoleLogger.info(`Creating token file: ${Path.join(outputPath, "js", `theme.js`)}`);
ConsoleLogger.info(
`Creating token file: ${Path.join(outputPath, "js", `theme.js`)}`
);
writeFileSync(Path.join(outputPath, "js", `theme.js`), result, "utf8");

ConsoleLogger.success(`Design token theme.js (tailwind import) created.`);
Expand Down

0 comments on commit e93686b

Please sign in to comment.