Skip to content

Commit

Permalink
chore(workflows): run prettier on microsite changes too
Browse files Browse the repository at this point in the history
  • Loading branch information
freben committed Oct 4, 2020
1 parent 163802c commit 8115f5a
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/microsite-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
run: yarn install --frozen-lockfile
working-directory: microsite

- name: prettier
run: yarn prettier:check
working-directory: microsite

- name: build microsite
run: yarn build
working-directory: microsite
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.yarn
dist
microsite/build
microsite
coverage
*.hbs
templates
Expand Down
1 change: 1 addition & 0 deletions microsite/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
8 changes: 6 additions & 2 deletions microsite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
"examples": "docusaurus-examples",
"start": "docusaurus-start",
"build": "docusaurus-build",
"prettier:check": "prettier --check .",
"publish-gh-pages": "docusaurus-publish",
"write-translations": "docusaurus-write-translations",
"version": "docusaurus-version",
"rename-version": "docusaurus-rename-version"
},
"devDependencies": {
"@spotify/prettier-config": "^8.0.0",
"docusaurus": "^2.0.0-alpha.64",
"js-yaml": "^3.14.0"
}
"js-yaml": "^3.14.0",
"prettier": "^2.0.5"
},
"prettier": "@spotify/prettier-config"
}
10 changes: 5 additions & 5 deletions microsite/static/css/plugins.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@
.ButtonFilled {
padding: 4px 8px;
border-radius: 4px;
color: #69DDC7;
color: #69ddc7;
margin-top: 36px;
}

.ButtonFilled:hover {
border: 1px solid #69DDC7;
border: 1px solid #69ddc7;
background-color: transparent;
}

.ChipOutlined {
font-size: small;
border-radius: 16px;
padding: 2px 8px;
border: 1px solid #69DDC7;
color: #69DDC7;
border: 1px solid #69ddc7;
color: #69ddc7;
}

.PluginCardLink {
Expand Down Expand Up @@ -111,5 +111,5 @@
}

#add-plugin-card {
border: 1px solid #69DDC7;
border: 1px solid #69ddc7;
}
10 changes: 10 additions & 0 deletions microsite/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,11 @@
resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd"
integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==

"@spotify/prettier-config@^8.0.0":
version "8.0.0"
resolved "https://registry.npmjs.org/@spotify/prettier-config/-/prettier-config-8.0.0.tgz#8b6c2bd579ddc54887155a0721fe04e96c89f7f2"
integrity sha512-so8w32ZV42CHWxOEXcBtbNO/hLXFrQNXVmhfzhUI6dVB9cq2xjRaiqu8GjFj8LvKbWpPj+S+KwTIS4aDVWqrFQ==

"@types/cheerio@^0.22.8":
version "0.22.21"
resolved "https://registry.npmjs.org/@types/cheerio/-/cheerio-0.22.21.tgz#5e37887de309ba11b2e19a6e14cad7874b31a8a3"
Expand Down Expand Up @@ -5199,6 +5204,11 @@ prepend-http@^2.0.0:
resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=

prettier@^2.0.5:
version "2.1.2"
resolved "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==

prismjs@^1.17.1:
version "1.21.0"
resolved "https://registry.npmjs.org/prismjs/-/prismjs-1.21.0.tgz#36c086ec36b45319ec4218ee164c110f9fc015a3"
Expand Down

0 comments on commit 8115f5a

Please sign in to comment.