Skip to content

Commit

Permalink
feat(monorepo): Upgrade the base builder storm package
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Sep 15, 2024
1 parent 82940fd commit 6d39b20
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 242 deletions.
22 changes: 8 additions & 14 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pre-commit:
commands:
install:
glob: "./{pnpm-lock.yaml,lefthook.yml}"
run: "pnpm install && git update-index"
run: "pnpm install && pnpm lefthook install && git update-index"
stage_fixed: true
prepare:
glob: "**/{lefthook.yml,biome.json}"
Expand All @@ -40,20 +40,17 @@ pre-commit:
# stage_fixed: true
lint-toml:
glob: "**/*.toml"
run:
'pnpm exec taplo format --check
run: 'pnpm exec taplo format --check
--config="./node_modules/@storm-software/linting-tools/taplo/.taplo.toml"'
lint-filename:
glob: "**/*.*"
run:
'pnpm exec ls-lint
--config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"'
run: 'pnpm exec ls-lint
--config="./node_modules/@storm-software/linting-tools/ls-lint/.ls-lint.yml"'

commit-msg:
commands:
validate:
run:
'pnpm exec commitlint
run: 'pnpm exec commitlint
--config="./node_modules/@storm-software/git-tools/commitlint/commitlint.config.cjs"
--edit {1}'

Expand All @@ -66,20 +63,17 @@ pre-push:
stage_fixed: true
format-prettier:
glob: "!packages/workspace-tools/src/generators/*/files/**/*"
run:
"pnpm exec prettier {staged_files} --write --ignore-unknown
run: "pnpm exec prettier {staged_files} --write --ignore-unknown
--no-error-on-unmatched-pattern --cache && git update-index"
stage_fixed: true
format-toml:
glob: "**/*.toml"
run:
'pnpm exec taplo format
run: 'pnpm exec taplo format
--config="./node_modules/@storm-software/linting-tools/taplo/.taplo.toml"
&& git update-index'
format-readme:
glob: "**/{README.md,package.json,executors.json,generators.json}"
run:
'pnpm exec storm-git readme-gen --templates="./tools/readme-templates"'
run: 'pnpm exec storm-git readme-gen --templates="./tools/readme-templates"'
stage_fixed: true
build:
glob: "**/*.*"
Expand Down
18 changes: 0 additions & 18 deletions packages/types/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,6 @@
}
}
},

// "build": {
// "cache": true,
// "inputs": [
// "typescript",
// "^production",
// {
// "externalDependencies": ["rollup"]
// }
// ],
// "dependsOn": ["clean", "^build"],
// "defaultConfiguration": "production",
// "configurations": {
// "production": {},
// "development": {}
// }
// },

"nx-release-publish": {
"executor": "@storm-software/workspace-tools:npm-publish"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/utility-types/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type TypedArray =
/**
* Infer the length of the given array `<T>`.
*
* Check out {@link https://itnext.io/implementing-arithmetic-within-typescripts-type-system-a1ef140a6f6f this article} for more information.
* Check out {@link https://itnext.io/implementing-arithmetic-within-typescripts-type-system-a1ef140a6f6f | this article} for more information.
*/
export type ArrayLength<T extends readonly unknown[]> = T extends {
readonly length: infer L;
Expand Down
3 changes: 3 additions & 0 deletions packages/types/src/utility-types/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
-------------------------------------------------------------------*/

/**
* A utility type for specifying the type of an option for a Select or Radio form field.
*/
export interface SelectOption<T = string> {
/**
* The string value to display in the field
Expand Down
Loading

0 comments on commit 6d39b20

Please sign in to comment.