feat: Prettier and stylelint in CI
This commit is contained in:
parent
e7e8e6b84b
commit
8393218622
5 changed files with 29 additions and 14 deletions
|
@ -52,6 +52,20 @@ credo:
|
|||
- mix deps.get
|
||||
- mix credo --all
|
||||
|
||||
stylelint:
|
||||
stage: test
|
||||
image: "node:16"
|
||||
script:
|
||||
- cd apps/app/assets/
|
||||
- npx stylelint **/*.css
|
||||
|
||||
prettier:
|
||||
stage: test
|
||||
image: "node:16"
|
||||
script:
|
||||
- cd apps/app/assets/
|
||||
- npx prettier --check **/*.js
|
||||
|
||||
build_image_for_commit:
|
||||
stage: test
|
||||
image: "docker:20.10"
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
node_modules
|
||||
css/phoenix.css
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
@import "tailwindcss/base";
|
||||
|
||||
@import "tailwindcss/components";
|
||||
|
||||
@import "tailwindcss/utilities";
|
||||
|
||||
@import "@fortawesome/fontawesome-free/css/all.css";
|
||||
|
||||
@import "blog";
|
||||
@import "code";
|
||||
|
||||
|
@ -14,27 +10,28 @@ body {
|
|||
}
|
||||
|
||||
input[type="checkbox"]::after {
|
||||
content: "";
|
||||
color: currentColor;
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: inline-flex;
|
||||
color: currentColor;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
content: "";
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked::after {
|
||||
content: "✓";
|
||||
}
|
||||
|
||||
.hidden-options-toggle:checked+.hidden {
|
||||
.hidden-options-toggle:checked + .hidden {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.password-revealer {
|
||||
@apply absolute;
|
||||
height: 45px;
|
||||
width: 45px;
|
||||
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
|
||||
.hljs {
|
||||
@apply mt-6 mb-12 border-l-4 border-indigo-900 font-mono;
|
||||
--background-color: theme("colors.indigo.100");
|
||||
--background-color: theme("colors.indigo.100"); /* stylelint-disable-line custom-property-empty-line-before */
|
||||
--attribute-color: theme("colors.orange.700");
|
||||
--section-color: theme("colors.teal.700");
|
||||
--string-color: theme("colors.green.700");
|
||||
|
|
|
@ -4,7 +4,10 @@ pre-commit:
|
|||
credo:
|
||||
runner: mix credo diff master
|
||||
stylelint:
|
||||
root: "apps/app/assets/"
|
||||
glob: "*.{css}"
|
||||
runner: (cd apps/app/assets/; npx stylelint {staged_files})
|
||||
runner: npx stylelint {staged_files}
|
||||
prettier:
|
||||
runner: (cd apps/app/assets/; npx prettier --check **/*.js)
|
||||
root: "apps/app/assets/"
|
||||
glob: "*.{js}"
|
||||
runner: npx prettier --check {staged_files}
|
||||
|
|
Loading…
Reference in a new issue